Forum: C++ Jun 15th, 2004 |
| Replies: 6 Views: 5,679 yea... i had to use that one time in school because i was programming in a MAC lab and they didnt have windows.h for me to use Sleep() with... |
Forum: C++ Jun 14th, 2004 |
| Replies: 6 Views: 5,679 it should work, it works perfectly fine for me... in my dev-cpp compiler it counts with thousands of a second or something so 2000 is 2000 thousandths which makes 2 seconds... *stops and takes a deap... |
Forum: C++ Jun 11th, 2004 |
| Replies: 2 Views: 10,853 could you give an example of code... i dont know what you mean by this SAFEARRAY thing... it sounds interesting... be smart kids and practice your SAFE HEX... :p |
Forum: C Jun 11th, 2004 |
| Replies: 1 Views: 3,096 i dont know why im asking this... im just curious. I have dev-cpp compiler and i was experimenting with header files and reading them expanding my knowledge... and im just wondering what the... |
Forum: C++ Jun 11th, 2004 |
| Replies: 6 Views: 22,455 actually, if i was paying attention in class, i believe it's the other way around. logical operators such as || (or) && (and) etc. come before mathamatical operators, <= (less than or equal to) !=... |
Forum: C++ Jun 11th, 2004 |
| Replies: 6 Views: 5,679 yea... it's very useful... here's the code:
#include <iostream>
#include <windows.h>
#include <cstdlib>
using namespace std;
int main()
{
cout << "Hello..."; |
Forum: C++ Jun 7th, 2004 |
| Replies: 7 Views: 7,168 Nevermind, I got it to work perfectly but thank you for the examples...:D |
Forum: C++ Jun 4th, 2004 |
| Replies: 7 Views: 7,168 is it possible you could paste the code for conio.h so i can make the header for it. im working with code warrior and it doesnt have it because it sucks... if you could, thanks... |
Forum: C++ Jun 2nd, 2004 |
| Replies: 7 Views: 7,168 could you give us an example of code that when you press the up arrow it says up, then ends the line and the same for the other three arrows? i just want to see an example really... thanx |
Forum: C++ May 25th, 2004 |
| Replies: 5 Views: 24,716 A header file is made up of pre-processor directives, classes, namespaces etc. a good place to look at is cplusplus.com (http://www.cplusplus.com/doc/tutorial). look at the classes, objects and... |
Forum: C++ May 21st, 2004 |
| Replies: 13 Views: 28,098 make a game that uses dice. you roll 2 dice and you are rolling against the computers 2 dice. make the dice random and whoever has the bigger sum wins or gets 1 point... i dunno, start with that and... |
Forum: C++ May 21st, 2004 |
| Replies: 9 Views: 2,700 i hate making decisions for people but in my opinion do c++... its good... so just do it... |
Forum: C++ May 2nd, 2004 |
| Replies: 12 Views: 5,928 actually there is a way around that... you could cout a bunch of back spaces...
cout << "\b\b\b\b\b\b";
or you could cout the ascii equivilent;) |
Forum: C++ May 2nd, 2004 |
| Replies: 4 Views: 33,536 there is a really helpful library called <algorithm> that can help you with string manipulation and comparing etc. look it up online or a book or something...
good luck |
Forum: C++ Apr 29th, 2004 |
| Replies: 12 Views: 4,789 ok... visual c++ is exactly the same as any other compiler except its a lot easier to use because it has many things built into it... anything in visual c++ can be done in any other version... |
Forum: C++ Apr 22nd, 2004 |
| Replies: 5 Views: 3,305 well... maybe you haven't read enough... you should start with the simplest program in c++, the "Hello World!" program. you must first #include any header files you need for the specific program,... |
Forum: C++ Apr 22nd, 2004 |
| Replies: 21 Views: 43,877 the using directive is almost like the #include command. it is using the namespace std (or standard) held in the iostream header file. what it does is it lets you use the line:
cout << "Hello"; ... |
Forum: C++ Apr 14th, 2004 |
| Replies: 21 Views: 43,877 |
Forum: C++ Apr 14th, 2004 |
| Replies: 9 Views: 8,700 |
Forum: C++ Apr 13th, 2004 |
| Replies: 9 Views: 8,700 thats easy...
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int x = 0; |
Forum: C++ Apr 13th, 2004 |
| Replies: 21 Views: 43,877 i wrote it a while ago but anyways...
Dice Game
/*
Name: Dice Game
Author: Bleek
Description: Game
Date: N/A
Copyright: N/A
*/ |
Forum: C++ Apr 8th, 2004 |
| Replies: 21 Views: 43,877 i have my first game code of a dice game you can look at if you would like. ill post it if you reply back, it displays the dice using characters... its simple but i like it. |
Forum: C++ Mar 31st, 2004 |
| Replies: 4 Views: 46,640 hey... im in a c++ class at school but i also program at home. my teacher refuses to teach me graphics and i wanted to know if there was an easy way to just basically cout a graphic. if this is... |
Forum: C++ Mar 31st, 2004 |
| Replies: 7 Views: 11,681 I'm really sorry about bringing this up again but the Sleep(); function isnt working for me. i included ctime. could someone give me an example of code for this that works? (I'm using the dev-cpp... |
Forum: C++ Mar 24th, 2004 |
| Replies: 3 Views: 2,738 www.cplusplus.com (http://www.cplusplus.com) but nothing is better than a book. SAMS teach yourself c++ in 24 hours is awesome. but go through the lessons really slow. also, nothing compares to a... |
Forum: C++ Mar 21st, 2004 |
| Replies: 7 Views: 11,681 how do u pause a command in c++? i know how to pause using system("pause") or cin.get() but i want to know hot to make the program sleep for a certain ammount of time... like vbs' wscript.sleep... |
Forum: C++ Mar 21st, 2004 |
| Replies: 2 Views: 14,137 the random number generator (srand) usually uses time as its string. the
time(NULL) is held in the ctime.h library and it takes i think the ammount of seconds from some date in the 70's and does an... |
Forum: C++ Mar 21st, 2004 |
| Replies: 12 Views: 5,928 if its just in the dos screen
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
cout << "Hello World!" << endl; |