11 March 2016 - Forum Rules
Started by InfamousKnight, May 08, 2013, 08:52:45 AM
Quote from: InfamousKnight on May 08, 2013, 08:52:45 AMI don't care that my algorithm is a bit messy its just my way of coding.
Quote from: furrykef on May 09, 2013, 01:15:20 AMYour way of coding sucks.
Quote from: KaioShin on May 09, 2013, 05:36:38 AMYou can find out what's wrong with 2 minutes in a debugger looking at what your code actually does.But I guess debugging is one of those hipster things that no real(tm) programmer needs anyway, right?
Quote from: InfamousKnight on May 09, 2013, 11:49:46 AMAlso, I COULD have used else if but in some compilers it's either elseif or its else if and I didn't feel like switching it if I did it wrong.
Quote from: LostTemplar on May 09, 2013, 02:53:10 PMWhat are you talking about? If it's C/C++ it's always "else (if)". There's no keyword elseif in the language. And even if you were unsure it's just a matter of trying to compile it, the compiler will tell you if it's wrong. Considering the scale of your programs that's a matter of ten seconds, if that. Also: Syntax highlighting. Also, about your problem regarding the input of 2-D data, I don't think you're doing it wrong per se. What exactly is the problem? If you want to read line by line from a text file, you can use std::getline to read the next line into an std::string and iterate over its characters.
Quote from: InfamousKnight on May 09, 2013, 03:05:12 PMMy programming teacher...
Page created in 0.071 seconds with 19 queries.