Newby Members Show Off their latent skills

CMPC :: Computing :: Programming :: C++

Go down

Newby Members Show Off their latent skills

Post by zodiacescuchion on Thu Dec 03, 2009 2:21 am

#include <iostream>
using namespace std;
int main () {
int n, f;
cout << "How much time 'till we fire cap'n?" << '\n';
cin >> n;
f=n;
while (n>f-3) {
cout << n << ", ";
--n;
}
cout << "\n" << "uggghhh i'm tired o' waitin'" ;
for (n=5; n>0;n--) {
cout << n<< ", ";}
cout << "FIRE" << '\n';
return 0;
}
avatar
zodiacescuchion
Skid

Posts : 28

Back to top Go down

Re: Newby Members Show Off their latent skills

Post by Admin on Thu Dec 03, 2009 2:33 am

one thing to remind people of, don't just post the code.


follow some rules: always put the code in the code format (i.e.
Code:
 yourcodehere
. I let you guys use BBcode for a reason you know >.>


secondly first describe your program before you just spit it at us.


if you do those two things then everyone will be happy.


also you forgot to put some time between your counts.

use batch for that.

hmm i should post a tutorial on highly used batch commands.... I SHALL!
avatar
Admin
Pirate King

Posts : 559

Back to top Go down

Re: Newby Members Show Off their latent skills

Post by zodiacescuchion on Thu Dec 03, 2009 2:54 am

whenever i press bold this random comes out of no where and my text doesnt even turn bold[
avatar
zodiacescuchion
Skid

Posts : 28

Back to top Go down

Re: Newby Members Show Off their latent skills

Post by zodiacescuchion on Thu Dec 03, 2009 2:55 am

I addressed the last problem. Im sorry im such a newb. Im making progress here.
lemme try again
This code is simply about inputting an amount of time untill your soldiers fire but i was bored so i added a twist
Code:

Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main () {
   int n, f;
      cout << "How much time 'till we fire cap'n?" << '\n';// ahh the faithful lieutenant who turns out to be a douche
         cin >> n;// you the cap'n giving orders
         f=n;
         while (n>f-3) {
            cout << n << ", ";
            --n;
            Sleep (2000);
         }
         cout << "\n" << "uggghhh i'm tired o' waitin'" ;// see what i mean
         for (n=5; n>0;n--) {
            cout << n<< ", ";
         Sleep (100);
         }
         cout << "FIRE" << '\n';
         return 0;
}
nevermind what i said
avatar
zodiacescuchion
Skid

Posts : 28

Back to top Go down

Re: Newby Members Show Off their latent skills

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

CMPC :: Computing :: Programming :: C++

 
Permissions in this forum:
You cannot reply to topics in this forum