Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~59.7K People Reached
Favorite Tags
Member Avatar for Bob

[B]Intro[/B] This tutorial provides a brief introduction to the random number functions that come as part of the C++ standard library, namely rand() and srand(). [b]rand() and RAND_MAX [/b] The C++ standard library includes a pseudo random number generator for generating random numbers. In order to use it we need …

Member Avatar for JamesCherrill
3
52K
Member Avatar for evilsilver

c++ I am making a game and decided to put in a bogus company animation thing, kinda like Blizzard does, but need to find a way to play the file that we made without going on in the code. ie it comes to the line to play the file (c:\evilsilver.avi) …

Member Avatar for omid80
0
174
Member Avatar for evilsilver

ok guys heres the problem (by the way i am a beginner programmer so don't laugh at the code lol) i keep getting this declaration syntax error whenever i try to compile this program (i also get a declarations missing; and compound statement missing} ) but everything in my code …

Member Avatar for az-zahra
0
371
Member Avatar for evilsilver

Operating System: windows xp hey guys, i was playing around in the command prompt of my computer and started playing with the net user command and found the user support_388945a0 and saw how it was used by microsoft and was wondering, is there anyway that i can use this account …

Member Avatar for dorkwad
0
898
Member Avatar for vegaseat

Many of you know how I like to use sound to make the old computer box more interesting. The midi file packs a lot of neat instrumental music. It is very simple to play, even in a console application, using the winmm.lib file that comes with just about any Windows …

Member Avatar for evilsilver
0
211
Member Avatar for sfurlow2

For my homework assignment, I'm supposed to get five numbers from a user and print the highest one using a loop. I'm not sure what to do. Any suggestions?

Member Avatar for sfurlow2
0
464
Member Avatar for mattyd

[B]Riddles: More challenges to make us think. [/B] [U]Rules[/U]: [LIST] [*]Post your answer\ guess [*]The person who solves the riddle correctly posts the next riddle to be solved [*]12- hour time limit per riddle (when this time is up anyone may post the next riddle)[/LIST] [I]Note: many riddle resources can …

Member Avatar for gaasha
0
1K
Member Avatar for evilsilver

hey guys, i'm using Borland 6 c++ in windows xp, now that we got that i have a problem with my program, i have recently created a password function in a programm that works so that when they try to type in their password it shows the * instead of …

Member Avatar for crazylunatic
0
794
Member Avatar for evilsilver

ok guys and gals here's my delema, i have this code: all it basically does is define two classes, one that defines the stuff for the player and his actions, the other for the enemies (or monsters) the problem is that i have funtions in both that require i include …

Member Avatar for evilsilver
0
116
Member Avatar for evilsilver

ok here is the deal, i am making a role playing game that has a step by step battle system. it was working until i decided to make a new function called gameplaychoice. now whenever i call to the battle function the progam just skips that line and goes to …

Member Avatar for Salem
0
102
Member Avatar for evilsilver

hey all, i am programmin in c++ (just so we are all on the same page lol) and using Borland compiler 3. ok here's my problem, i know how to open a file and save variables to it in order to save them for future program reference but i can't …

Member Avatar for Ancient Dragon
0
82
Member Avatar for evilsilver

hey guys, have a challenge for you guys, i am making a rpg game in c++ and need some help figurin out the creatures, and items the player will have, i know i won't get many replys to this so don't expect to get all of what i am looking …

Member Avatar for Drowzee
0
320
Member Avatar for evilsilver

<< moderator edit: split from [post=125942]this thread[/post] >> hey i got a question for you, how did you get the icon associated with your program? I have been looking for a way to do this, inside or outside the code.

Member Avatar for Electrohead
0
89
Member Avatar for evilsilver

i have this for loop in my program that i am creating but it is counting further than it is supposed to and trying to call to an unknown variable thus creating an error. here is the code that kicks back the error. [code] for (i = 1; i <= …

Member Avatar for Dave Sinkula
0
79
Member Avatar for evilsilver

ok here is the problem i recently installed windows xp on a new pc, it is running almost perfectly one problem, sometimes when you click on the start menu it restarts with out warning (the menu doesn't open, it just restarts. and it isn't the polite "windows is now shutting …

Member Avatar for JoetjeF
0
132
Member Avatar for evilsilver

ok so i am a hs student learning some c++ and recently learned the fstream function and tried to make a load save type thing for a programm i am courently makeing. as far as i can tell the coding is correct but it isn't saveing or loading the file …

Member Avatar for evilsilver
0
213
Member Avatar for evilsilver

ok i am a new programmer and am running in windows xp and 98 and am using the borland c++ builder 3, I am trying to make a window that will simply ask the user to input a string (called pathname) and store it to another file for use in …

Member Avatar for Tight_Coder_Ex
0
216
Member Avatar for evilsilver

ok i know how to use mciSendString, it is mciSendString("[play/stop] [path to file]",NULL,0,NULL); , (for audio is what i am using it for) but i don't understand what the NULL,0,NULL is for, can anyone help me? and another thing is there a way to make the file i play with …

Member Avatar for Dave Sinkula
0
213
Member Avatar for evilsilver

I am trying to get my program to display multiple files for a user to choose from to load, this is the general code i tried but don't know how to actually put it as (the for loop is what i am having the trouble with) [code] ofstream save; ifstream …

Member Avatar for evilsilver
0
75
Member Avatar for evilsilver

(for reference i am in c++, windows, borland 3 compiler)hey guys here is what i want to do, i am trying to save a file using <fstream> but want the player to pick a name to save the file as, so to do that i have to modify the string …

Member Avatar for Narue
0
179
Member Avatar for evilsilver

ok here is my question, i use borland c++ builder 3 and in a book i found an example for a graphics.h program which is supposed to work but i have heard that this only works in dos mode not in windows (which i am running in) is there another …

Member Avatar for 1o0oBhP
0
120
Member Avatar for evilsilver

hey i am making a game and decided that i want to put a load/save option in it and was wondering if anyone here knew how to do this, (the program has to be able to close, open again and load the progress from before). I am running in windows …

Member Avatar for vegaseat
0
180
Member Avatar for evilsilver

I am trying to make a program that needs to compare a string. here is a basic program of what i mean, i want it to say "it worked" but it seems to only read as not true. anyone know how to do this? thanx for any help. [CODE]#include <iostream> …

Member Avatar for jimFan
0
134
Member Avatar for evilsilver

ok lets see if anyone can find the problem i have searched long and hard for this. i have a battle function and for some odd reason when ever i win the battle it loops the if statement saying that i am victorious 3 times (doing all the math and …

Member Avatar for Coding Mage
0
171
Member Avatar for evilsilver

lol i have tried and tried and look and ignored it for a long time. but i just can't find this problem or find it's solution anywhere. Here it is i have a function called fight i need to call to it often but for some odd reason whenever i …

Member Avatar for evilsilver
0
113
Member Avatar for evilsilver

ok guys lets see if you can see what's wrong with my program i have so far. it is for a role playing game but when you choose to "attack" in the program, when i play it, it won't let me attack now. the problem would be in the gameplaychoice …

Member Avatar for evilsilver
0
94
Member Avatar for evilsilver

hey all, my problem is this, i recently learned how to play a midi file in the code snipet area. but i couldn't figure out how to get the program to switch sound files when i want. idealy i would like to have one file start out in the beginning …

0
72
Member Avatar for hopeolicious

I downloaded borland compiler but I dont know how to use it can someone help me

Member Avatar for evilsilver
0
105
Member Avatar for evilsilver

ok is there a way to play a music file in c++. and are you able to display a .jpg image in c++ instead of just bitmap files? any help would be greatly apreciated.

Member Avatar for evilsilver
0
96
Member Avatar for seeplusplus

alright, this program i wrote pops a menu up letting me choose one of the four options, after i choose an option, and it does that function, how do i get the menu to pop back up again so the user can choose another option? instead, my program does the …

Member Avatar for Intel
0
244