• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Who feels like debugging C++ code?

So yea, I wake up 15 minutes ago and the first aim I get is for help. I dunt see it, so here we go, atot.

link to software forum post with code

no matching function for call to 'std::basic_istream<char, std::char_traits<char> >::getch (char[200]) line 24

invalid conversion rom const char* to char line 27

I guess I can send out gmail invites and post pictures of just babes if requested. But, nothing until its solved.

Thanks for the help all. If you guys want gmail invites or whatever, just reply. I told her thats what we found, and I'm taking a shower and going out to buy new tires.
 
You should post this in the software forum and use the "attach code" feature. Then, if you still insist on having an OT post, you can link that thread and not make us read that horrible, FT formatted mess above.

Thanks. 🙂
 
Originally posted by: Kyteland
You should post this in the software forum and use the "attach code" feature. Then, if you still insist on having an OT post, you can link that thread and not make us read that horrible, FT formatted mess above.

Thanks. 🙂

Aw crap. I shoulda known better. Post made in software. Forgot that included programming too. 😀
 
Well first off on line 24, I don't know why they are using cin.getch(input) to grab a character out of an array... that's giving all sorts of compile errors.

Then on line 27 input = "\0"; is trying to set an entire array to a constant. they don't specify the location in the array.

Line 31: wrong function call on an array to get it's length. strlen can't be called on an array.

Lines 47 and 48 are both incorrect. 47 has a bad punction call, 48's call is missing a parameter to push

Line 51: also trying to compare an entire array to constants.

Line 92: pow function not found, need to include the math lib

 
no matching function for call to 'std::basic_istream<char, std::char_traits<char> >::getch (char[200]) line 24

invalid conversion rom const char* to char line 27

You're passing a const char * to something that takes a char. Read the docs for istream::getch() and go from there.
 
Who feels like debugging C++ code? Indians feel like debugging C++ code. And they'll feel like it a lot quicker and for less money. :laugh:
 
Originally posted by: MacBaine
Well first off on line 24, I don't know why they are using cin.getch(input) to grab a character out of an array... that's giving all sorts of compile errors.

Then on line 27 input = "\0"; is trying to set an entire array to a constant. they don't specify the location in the array.[/i]

int I was set to 0 up top, at the start of main


Line 31: wrong function call on an array to get it's length. strlen can't be called on an array.

she says you can, so neh
[/i]
Lines 47 and 48 are both incorrect. 47 has a bad punction call, 48's call is missing a parameter to push

got you on line 48, but whats wrong with line 47?

Line 51: also trying to compare an entire array to constants.

Line 92: pow function not found, need to include the math lib



 
Originally posted by: flawlssdistortn
Who feels like debugging C++ code? Indians feel like debugging C++ code. And they'll feel like it a lot quicker and for less money. :laugh:


ignorant noob :disgust:
 
Originally posted by: Zombie
Originally posted by: flawlssdistortn
Who feels like debugging C++ code? Indians feel like debugging C++ code. And they'll feel like it a lot quicker and for less money. :laugh:


ignorant noob :disgust:

c'mon laugh with me... you were askin for it anyway, posting in "off topic" 😉
 
Back
Top