coding thread
coding thread
Hello there I am started to get better and better with C/C++ now I have coded my own "Hello world!" thing but how do I view it? I heard that you use CMD for that but how do I do that?
Archived topic from Iceteks, old topic ID:3603, old post ID:29349
Archived topic from Iceteks, old topic ID:3603, old post ID:29349
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
coding thread
Include conio.h in your .cpp file and add the command getch() before return 0;, then you can open it normally and you'll get a chance to view the output, easier then having to open cmd and browsing to the folder then opening it.
Archived topic from Iceteks, old topic ID:3603, old post ID:29350
Archived topic from Iceteks, old topic ID:3603, old post ID:29350
Honk if you love Jesus, text if you want to meet Him!
-
- Posts: 96
- Joined: Fri Jul 16, 2004 1:04 pm
coding thread
conio.h = CONsole IO Header file
Code: Select all
#include <conio.h>
int main(...){
...
char ch = getch();
}[code]
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3603, old post ID:29357[/size][/color]
coding thread
problems with forms
Code: Select all
Warning: fopen(data/bankrobdate94.txt) [function.fopen]: failed to open stream: No such file or directory in /home2/iceteks/public_html/forums/cybervillage/rob-bank.php on line 25
Warning: fgets(): supplied argument is not a valid stream resource in /home2/iceteks/public_html/forums/cybervillage/rob-bank.php on line 26
Warning: fclose(): supplied argument is not a valid stream resource in /home2/iceteks/public_html/forums/cybervillage/rob-bank.php on line 27
[code]
this appers when I tryed to rob the new bank a made in cibervillage.
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3603, old post ID:29363[/size][/color]
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
coding thread
hmm I'll look into that... has this been like that for long?
Archived topic from Iceteks, old topic ID:3603, old post ID:29364
Archived topic from Iceteks, old topic ID:3603, old post ID:29364
Honk if you love Jesus, text if you want to meet Him!
coding thread
no just today.
Archived topic from Iceteks, old topic ID:3603, old post ID:29365
Archived topic from Iceteks, old topic ID:3603, old post ID:29365
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
coding thread
Oh I know why, it's because it does that the first time a bank is robbed since the last rob date file is not created. I'd have to make a mechanism to create it though since it's kind of bad programming... or I can hide the error. But that can lead to some other issues like permission denied and stuff when it's not chmodded to 777.
Archived topic from Iceteks, old topic ID:3603, old post ID:29366
Archived topic from Iceteks, old topic ID:3603, old post ID:29366
Honk if you love Jesus, text if you want to meet Him!
coding thread
hello how in gods name can i change the name's of my bank and mall?
Archived topic from Iceteks, old topic ID:3603, old post ID:29368
Archived topic from Iceteks, old topic ID:3603, old post ID:29368
- Red Squirrel
- Posts: 29209
- Joined: Wed Dec 18, 2002 12:14 am
- Location: Northern Ontario
- Contact:
coding thread
Go on the link at the bottom to manage stuff
http://www.iceteks.com/forums/cybervillage/manage.php
Then click the buisiness you want and you can change the name, icon etc. btw these questions should go in the cybervillage forum.
Archived topic from Iceteks, old topic ID:3603, old post ID:29371
http://www.iceteks.com/forums/cybervillage/manage.php
Then click the buisiness you want and you can change the name, icon etc. btw these questions should go in the cybervillage forum.
Archived topic from Iceteks, old topic ID:3603, old post ID:29371
Honk if you love Jesus, text if you want to meet Him!
coding thread
Ok sorry about that.
Archived topic from Iceteks, old topic ID:3603, old post ID:29379
Archived topic from Iceteks, old topic ID:3603, old post ID:29379