Archive for the ‘ C++ ’ Category
Trying to code something usually involves brains. My coding usually involves lack of brains[ READ MORE ]
I’ve started to hack into my marginally functional program … and I’m starting to think I’ve probably messed it up to the point of needing to start over from a clear slate. It doesn’t help that I haven’t bothered to look up the proper way to structure a “do…while”. #include <iostream> int sort[] = { 2, [ READ MORE ]
Last time, I said :: int sort[] = { [10, 2, 8, 4, 6, 0] }; // elegiac pointed out that arrays need curly braces, I like square. So I combined them. And I was wrong. I got a compile error that disappeared as soon as I removed my beloved square braces. int sort[] = {10, 2, 8, [ READ MORE ]
I’ve been busy doing the run around this week (AKA having a head cold), so I haven’t even had a chance to run this through the compiler yet… but elegiac and I have had a chance to step through the code again and see some blatant errors. #include <iostream> // namespace std; – I personally do not [ READ MORE ]
I’m working on my second C++ program. Baby steps here, as I am merely trying to implement a simple and dirty sort.This morning I wrote this out in longhand, and I haven’t debugged it or tried compiling it. #include <iostream> namespace std; int sort[] = [10, 2, 8, 4, 6, 0]; int i, x, y, z; int main() { [ READ MORE ]
Powered by Twitter Tools