Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

[SOLVED] Need to translate code from C# to C++

Homework c++ C# c++

  • This topic is locked This topic is locked
3 replies to this topic

#1 Gateway777

Gateway777

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 10 September 2012 - 02:16 PM

My buddy is in some trouble. He has to translate some coding from C# to C++, but he doesn't know how to do it. And he has to have it finished by tomorrow, which isn't enough time for him to learn how to do that. Can anyone help?

The code:

http://pastie.org/pr...9zm6qxzqfjqufxw

Some notes he had about it:

-takes list of product codes
-applies formula
-tests if modulate/10 == 0
-valid if does, else invalid

Not sure what any of that means or if its relevant at all (I don't know squat about programming, I'm just trying to be a good friend). Please help!
  • 0

#2 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 10 September 2012 - 02:31 PM

It'd be much more helpful if we could communicate with your friend directly.
  • 0

sudo rm -rf / && echo $'Sanitize your inputs!'


#3 Gateway777

Gateway777

    CC Lurker

  • Just Joined
  • Pip
  • 2 posts

Posted 10 September 2012 - 02:36 PM

Actually, it appears he has succeeded in finding a person to help him. Thanks for offering a friendly hand though!
  • 0

#4 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 10 September 2012 - 03:10 PM

This topic has been marked as SOLVED. If you have a similar question or topic, you can go back to the subforum and start a new topic to continue discussions.
  • 0

sudo rm -rf / && echo $'Sanitize your inputs!'






Also tagged with one or more of these keywords: Homework, c++, C#, c++

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download