Newby Members Show Off their latent skills
2 posters
CMPC :: Computing :: Programming :: C++
Page 1 of 1
Newby Members Show Off their latent skills
#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;
}
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;
}
zodiacescuchion- Skid
- Posts : 28
Re: Newby Members Show Off their latent skills
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.
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!
follow some rules: always put the code in the code format (i.e.
- Code:
yourcodehere
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!
Admin- Pirate King
- Posts : 559
Re: Newby Members Show Off their latent skills
whenever i press bold this random comes out of no where and my text doesnt even turn bold[
zodiacescuchion- Skid
- Posts : 28
Re: Newby Members Show Off their latent skills
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:
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;
}
zodiacescuchion- Skid
- Posts : 28
CMPC :: Computing :: Programming :: C++
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|