- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
32 Posted Topics
Re: [QUOTE=aylina][font=Comic Sans MS][color=blue][/color][/font] [font=Comic Sans MS][color=blue]my question is, for the functions on choosing random numbers in a specific range, what should i do to make the cout one by one?[/color][/font] [font=Comic Sans MS][color=#0000ff]As in, like the function given above, it gives the whole 20 outputs at once, but what i … | |
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) … | |
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 … | |
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 … | |
Re: Awsome man i was wondering how to do this, just one problem. i got it to play one song but i want it to swich to another one aswell, how do you get one mid file to stop and the other to start? | |
Re: by having a variable ( i.e. int highest; ) and using an if statement after the cin to check if it is higher or lower than the one they just input, then keep the higher of the two stored there.... | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
<< 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. ![]() | |
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 <= … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
(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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
Re: I like Borland, of course i have never used anything else. it was the program i first got and the one that i am learning with so i understand it somewhat (the exe thing i have no idea what other file types it will save as aswell but i bet … | |
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. | |
Re: first of all answer me this, i noticed that in the show card info function you have it make a for loop and then if it is the right ssn it displays the info, i was wondering why you used a for loop here, it will cause the program to … | |
Re: you can also control the min and max numbers the rand will use by using the format avariable = rand() % (highnumber) + (lownumber); (highnumber and lownumber don't have to be variables you may use integer values you actually want instead) here is a simple program that roles dice as … | |
Re: there is another way too. whenever you want the program to pause so the user can read what it says you can type in getch(); and it will pause the program until the user presses anykey. (usefull for when you wish to display multiple pages of information.) for example: [CODE]#include … |
The End.