C++

Re: C++

Post by not_essence2 on Tue Nov 13, 2012 9:51 pm
([msg=70844]see Re: C++[/msg])

When I mean "Criticism-resilient", I mean that they're so ignorant that they completely block out your argument and dismiss it as "nerdy" stuff.
not_essence2
Poster
Poster
 
Posts: 189
Joined: Fri Sep 14, 2012 6:09 pm
Blog: View Blog (0)


Re: C++

Post by WallShadow on Tue Nov 13, 2012 10:46 pm
([msg=70845]see Re: C++[/msg])

Wow, in that case they will be dumb enough for me to control them without exerting influence over them. Either way works. They earth will still burn in both cases. <3
User avatar
WallShadow
Contributor
Contributor
 
Posts: 594
Joined: Tue Mar 06, 2012 9:37 pm
Blog: View Blog (0)


Re: C++

Post by centip3de on Wed Nov 14, 2012 12:33 am
([msg=70847]see Re: C++[/msg])

LoGiCaL__ wrote:I know it's hella late but I was bored plus it's been a while since I used c++ so here's my take on it:

Code: Select all

#include <iostream>

int main()
{
    int number, iterator, total = 0;

    for(iterator = 0; iterator < 20; ++iterator)
    {
        std::cout << "Enter a number: ";
        std::cin >> number;

        if(number > 0)
            total += number;

        number = 0;

    }

    std::cout << "Total = " << total << "\n";


    return 0;

}



You wish 'for' statements were .01 seconds more efficient than a 'while' statement.

http://ubuntuforums.org/showthread.php? ... 159&page=3
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook
User avatar
centip3de
Moderator
Moderator
 
Posts: 1409
Joined: Fri Aug 20, 2010 5:46 pm
Blog: View Blog (0)


Previous

Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests