The Time APP

View previous topic View next topic Go down

The Time APP Empty The Time APP

Post by CPSNAP May 10th 2015, 12:31 am

I know you guys probably already have this, which would be weird if you didn't but, here's the code.

#include <iostream>
#include <Windows.h>

using namespace std;

int main(){
int second = 0;
cout << second << endl;
Sleep(1000);
while (second >= 0){
second++;
cout << second << endl;
Sleep(1000);
}

return 0;
}
CPSNAP
CPSNAP

Posts : 68
Thumbs Up : 9
Join date : 2015-01-18
Age : 23

Back to top Go down

The Time APP Empty Re: The Time APP

Post by CPSNAP May 10th 2015, 1:05 am

Version.0.4

#include
#include

using namespace std;

int main(){
int second = 0;
int minute = second + 1 * 60;
int many = 0;
cout << second << endl;
Sleep(1000);
while (second >= 0){
second++;
cout << second << endl;
Sleep(1000);
if (second == minute){
minute = second + 60;
many++;
cout << "\t" << many << "  minute(s) has passed.\n";
}


}

return 0;
}
CPSNAP
CPSNAP

Posts : 68
Thumbs Up : 9
Join date : 2015-01-18
Age : 23

Back to top Go down

The Time APP Empty Re: The Time APP

Post by lolslayer May 10th 2015, 5:40 am

ehm, where does it print all the numbers?

pretty cool though, but it's a bit too easy to share imo
lolslayer
lolslayer

Posts : 692
Thumbs Up : 29
Join date : 2014-11-10

Back to top Go down

The Time APP Empty Re: The Time APP

Post by CPSNAP May 10th 2015, 10:04 am

lolslayer wrote:ehm, where does it print all the numbers?

pretty cool though, but it's a bit too easy to share imo
I'm working on a better one.
CPSNAP
CPSNAP

Posts : 68
Thumbs Up : 9
Join date : 2015-01-18
Age : 23

Back to top Go down

The Time APP Empty Re: The Time APP

Post by lolslayer May 10th 2015, 12:28 pm

CPSNAP wrote:
lolslayer wrote:ehm, where does it print all the numbers?

pretty cool though, but it's a bit too easy to share imo
I'm working on a better one.

ok :D
lolslayer
lolslayer

Posts : 692
Thumbs Up : 29
Join date : 2014-11-10

Back to top Go down

The Time APP Empty Re: The Time APP

Post by Neesy May 10th 2015, 6:06 pm

CPSNAP wrote:I know you guys probably already have this, which would be weird if you didn't but, here's the code.

#include
#include

using namespace std;

int main(){
int second = 0;
cout << second << endl;
Sleep(1000);
while (second >= 0){
second++;
cout << second << endl;
Sleep(1000);
}

return 0;
}


My pink bredrin has arrived
Neesy
Neesy

Posts : 931
Thumbs Up : 148
Join date : 2014-10-31

Back to top Go down

The Time APP Empty Re: The Time APP

Post by lolslayer May 11th 2015, 10:04 am

Neesy wrote:
CPSNAP wrote:I know you guys probably already have this, which would be weird if you didn't but, here's the code.

#include
#include

using namespace std;

int main(){
int second = 0;
cout << second << endl;
Sleep(1000);
while (second >= 0){
second++;
cout << second << endl;
Sleep(1000);
}

return 0;
}


My pink bredrin has arrived

lol :P

indeed, another one using colours, even with less reason -.-

neesy deserves it even more :/ (well, even isn't the right word)
lolslayer
lolslayer

Posts : 692
Thumbs Up : 29
Join date : 2014-11-10

Back to top Go down

The Time APP Empty Re: The Time APP

Post by CPSNAP May 11th 2015, 7:43 pm

Neesy wrote:
CPSNAP wrote:I know you guys probably already have this, which would be weird if you didn't but, here's the code.

#include
#include

using namespace std;

int main(){
int second = 0;
cout << second << endl;
Sleep(1000);
while (second >= 0){
second++;
cout << second << endl;
Sleep(1000);
}

return 0;
}


My pink bredrin has arrived

Yeah I meant to do that :).
CPSNAP
CPSNAP

Posts : 68
Thumbs Up : 9
Join date : 2015-01-18
Age : 23

Back to top Go down

The Time APP Empty Re: The Time APP

Post by CPSNAP May 11th 2015, 8:07 pm

This is version 1.6

#include
#include

using namespace std;

int main(){
int secondsA = 0;
int second = 0;
bool Minpass = false;
int manyMin = 1;
cout << second << endl;
Sleep(1000);
//-------------------------------------------------------------------
while (second >= 0){
while (second != 59){
second++;
cout << second << endl;
Sleep(1000);
if (second == 59)
Minpass = true;
}
while (second == 59 && Minpass == true){
secondsA;
cout << manyMin << ":" << secondsA << endl;
secondsA++;
Sleep(1000);
if (secondsA == 60){
secondsA = 0;
manyMin++;
}
}

}


return 0;
}
CPSNAP
CPSNAP

Posts : 68
Thumbs Up : 9
Join date : 2015-01-18
Age : 23

Back to top Go down

The Time APP Empty Re: The Time APP

Post by Heatguts May 11th 2015, 11:41 pm

lolslayer wrote:ehm, where does it print all the numbers?
The console. It's like print in python or basic. If you mean the command, it's cout.
Heatguts
Heatguts

Posts : 1243
Thumbs Up : 101
Join date : 2014-01-28

Back to top Go down

The Time APP Empty Re: The Time APP

Post by HatchetHaro May 12th 2015, 9:52 am

Forgive me, but...
I don't get it. How do I execute that code?
HatchetHaro
HatchetHaro

Posts : 68
Thumbs Up : 19
Join date : 2013-08-17
Age : 26

Back to top Go down

The Time APP Empty Re: The Time APP

Post by lolslayer May 12th 2015, 10:37 am

Heatguts wrote:
lolslayer wrote:ehm, where does it print all the numbers?
The console. It's like print in python or basic. If you mean the command, it's cout.

Thx ;D
lolslayer
lolslayer

Posts : 692
Thumbs Up : 29
Join date : 2014-11-10

Back to top Go down

The Time APP Empty Re: The Time APP

Post by CPSNAP May 12th 2015, 6:27 pm

HatchetHaro wrote:Forgive me, but...
I don't get it. How do I execute that code?

You need Visual Studio 2013 or what I use, Ultimate.
CPSNAP
CPSNAP

Posts : 68
Thumbs Up : 9
Join date : 2015-01-18
Age : 23

Back to top Go down

The Time APP Empty Re: The Time APP

Post by Heatguts May 12th 2015, 9:57 pm

You need a C++ compiler. There's definitely more than those two. I pasted it into an online one and it didn't work. The specific error was the inclusion of the module or whatever you call it in C++ and maybe that's Visual Studio specific, or just not accessible from an online compiler.
Heatguts
Heatguts

Posts : 1243
Thumbs Up : 101
Join date : 2014-01-28

Back to top Go down

The Time APP Empty Re: The Time APP

Post by CPSNAP May 12th 2015, 9:59 pm

Heatguts wrote:You need a C++ compiler. There's definitely more than those two. I pasted it into an online one and it didn't work. The specific error was the inclusion of the module or whatever you call it in C++ and maybe that's Visual Studio specific, or just not accessible from an online compiler.

No your right, and don't compile it online it might most likely give you errors.
CPSNAP
CPSNAP

Posts : 68
Thumbs Up : 9
Join date : 2015-01-18
Age : 23

Back to top Go down

The Time APP Empty Re: The Time APP

Post by lolslayer May 13th 2015, 3:01 am

make it online compatible : 3
lolslayer
lolslayer

Posts : 692
Thumbs Up : 29
Join date : 2014-11-10

Back to top Go down

The Time APP Empty Re: The Time APP

Post by CPSNAP May 13th 2015, 8:17 pm

lolslayer wrote:make it online compatible : 3
Okay I'll try.
CPSNAP
CPSNAP

Posts : 68
Thumbs Up : 9
Join date : 2015-01-18
Age : 23

Back to top Go down

The Time APP Empty Re: The Time APP

Post by lolslayer May 14th 2015, 4:05 pm

CPSNAP wrote:
lolslayer wrote:make it online compatible : 3
Okay I'll try.

thx ;D
lolslayer
lolslayer

Posts : 692
Thumbs Up : 29
Join date : 2014-11-10

Back to top Go down

The Time APP Empty Re: The Time APP

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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