coding thread

Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
Locked
User avatar
MikeDB
Posts: 1224
Joined: Fri May 13, 2005 3:09 pm

coding thread

Post by MikeDB »

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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

coding thread

Post by Red Squirrel »

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
Honk if you love Jesus, text if you want to meet Him!
User avatar
MikeDB
Posts: 1224
Joined: Fri May 13, 2005 3:09 pm

coding thread

Post by MikeDB »

conio.h?

Archived topic from Iceteks, old topic ID:3603, old post ID:29355
Cold Drink
Posts: 96
Joined: Fri Jul 16, 2004 1:04 pm

coding thread

Post by Cold Drink »

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]
User avatar
MikeDB
Posts: 1224
Joined: Fri May 13, 2005 3:09 pm

coding thread

Post by MikeDB »

oh.

Archived topic from Iceteks, old topic ID:3603, old post ID:29358
User avatar
MikeDB
Posts: 1224
Joined: Fri May 13, 2005 3:09 pm

coding thread

Post by MikeDB »

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]
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

coding thread

Post by Red Squirrel »

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
Honk if you love Jesus, text if you want to meet Him!
User avatar
MikeDB
Posts: 1224
Joined: Fri May 13, 2005 3:09 pm

coding thread

Post by MikeDB »

no just today.

Archived topic from Iceteks, old topic ID:3603, old post ID:29365
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

coding thread

Post by Red Squirrel »

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
Honk if you love Jesus, text if you want to meet Him!
User avatar
MikeDB
Posts: 1224
Joined: Fri May 13, 2005 3:09 pm

coding thread

Post by MikeDB »

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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

coding thread

Post by Red Squirrel »

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
Honk if you love Jesus, text if you want to meet Him!
User avatar
MikeDB
Posts: 1224
Joined: Fri May 13, 2005 3:09 pm

coding thread

Post by MikeDB »

Ok sorry about that.

Archived topic from Iceteks, old topic ID:3603, old post ID:29379
Locked