Search Results

Showing results 1 to 28 of 28
Search took 0.01 seconds.
Search: Posts Made By: Bleek
Forum: C++ Jun 15th, 2004
Replies: 6
Views: 5,634
Posted By Bleek
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,634
Posted By Bleek
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,739
Posted By Bleek
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,067
Posted By Bleek
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: 21,989
Posted By Bleek
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,634
Posted By Bleek
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,120
Posted By Bleek
Nevermind, I got it to work perfectly but thank you for the examples...:D
Forum: C++ Jun 4th, 2004
Replies: 7
Views: 7,120
Posted By Bleek
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,120
Posted By Bleek
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: 23,943
Posted By Bleek
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: 27,550
Posted By Bleek
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,678
Posted By Bleek
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,892
Posted By Bleek
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,040
Posted By Bleek
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,774
Posted By Bleek
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,281
Posted By Bleek
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,465
Posted By Bleek
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,465
Posted By Bleek
i shall do that...
Forum: C++ Apr 14th, 2004
Replies: 9
Views: 8,503
Posted By Bleek
for next time ;)
Forum: C++ Apr 13th, 2004
Replies: 9
Views: 8,503
Posted By Bleek
thats easy...

#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
int x = 0;
Forum: C++ Apr 13th, 2004
Replies: 21
Views: 43,465
Posted By Bleek
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,465
Posted By Bleek
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: 45,966
Posted By Bleek
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,580
Posted By Bleek
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,719
Posted By Bleek
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,580
Posted By Bleek
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: 13,854
Posted By Bleek
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,892
Posted By Bleek
if its just in the dos screen

#include <iostream>
#include <cstdlib>

using namespace std;

int main()
{
cout << "Hello World!" << endl;
Showing results 1 to 28 of 28

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC