Search Results

Showing results 1 to 40 of 53
Search took 0.01 seconds.
Search: Posts Made By: evilsilver ; Forum: C++ and child forums
Forum: C++ Feb 26th, 2008
Replies: 13
Solved: Print highest
Views: 1,439
Posted By evilsilver
(ummm.... i wasn't the one having the problem with the code, i know for a fact that the code i posted works... i was posting it so sfurlow2 could see how to do it, else i wouldn't have commented it...
Forum: C++ Feb 26th, 2008
Replies: 13
Solved: Print highest
Views: 1,439
Posted By evilsilver
ok, should more look something like this:

#include <iostream> //needed for cout and cin

using namespace std; //also needed...

int main(){

int counter = 0;
int highest = 0;
Forum: C++ Feb 26th, 2008
Replies: 13
Solved: Print highest
Views: 1,439
Posted By evilsilver
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....
Forum: C++ Mar 6th, 2007
Replies: 3
Views: 1,126
Posted By evilsilver
cool ty S.O.S helped a lot!!!!
Forum: C++ Mar 4th, 2007
Replies: 3
Views: 1,126
Posted By 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)...
Forum: C++ Nov 21st, 2006
Replies: 30
Views: 912,041
Posted By evilsilver
the problem with rand is that it isn't truely random, it is a psuedo random, or fake random. it has a list of numbers that it follows and though is alright for some very light things, is very...
Forum: C++ Nov 4th, 2006
Replies: 30
Views: 912,041
Posted By evilsilver
i know that is a faster way of doing it but remember that not everyone is dealing with that much memory need and may only know about cout and cin which are simpler to use and are first thing that...
Forum: C++ Oct 19th, 2006
Replies: 6
Views: 6,467
Posted By evilsilver
ok so that didn't work for me at all, it does in the borland compiler but i am currently trying to move all my stuff over to the Microsoft Visual Studio 2005 and it doesn't work in that one, the only...
Forum: C++ Sep 23rd, 2005
Replies: 4
Views: 11,116
Posted By 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...
Forum: C++ Aug 26th, 2005
Replies: 1
Views: 1,493
Posted By 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...
Forum: C++ Aug 8th, 2005
Replies: 7
Views: 1,749
Posted By evilsilver
nice man! they have a beastary and everything! glad you stumbled across this post.
Forum: C++ Aug 4th, 2005
Replies: 7
Views: 1,749
Posted By evilsilver
for the amount of dammage, it is up to whoever makes the weapon or such, i just started on this and haven't established any true variables yet, i have figured all the functions i need, declared all...
Forum: C++ Aug 3rd, 2005
Replies: 7
Views: 1,749
Posted By evilsilver
ya i was gonna do that for the lower level ones (kinda like junk items) but i want so many items like this that are set so that ppl can brag "o ya well i got this item" lol get what i mean?
Forum: C++ Aug 3rd, 2005
Replies: 7
Views: 1,749
Posted By 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...
Forum: C++ Jun 1st, 2005
Replies: 3
Views: 1,388
Posted By evilsilver
<< moderator edit: split from this thread >>

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...
Forum: C++ May 14th, 2005
Replies: 2
Views: 3,491
Posted By evilsilver
in c++ when i use the system line i play the movie in the new window and it continues with the code this maight make what i need a little more clear:

i want to do

1)do some code here
2)play...
Forum: C++ May 12th, 2005
Replies: 2
Views: 3,491
Posted By 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...
Forum: C++ Apr 13th, 2005
Replies: 4
Views: 3,685
Posted By evilsilver
alright, i will try and fix that string problem, i did get it semi working but spitting out junk at me (such as 1/4pqr lol) thank you for all your help.
Forum: C++ Apr 13th, 2005
Replies: 4
Views: 3,685
Posted By evilsilver
conserning the paycheck thing, no i don't want the brackets, with out them it only consernes the next line after the if statement. if there are no saved players, then don't display the "load player"...
Forum: C++ Apr 13th, 2005
Replies: 4
Views: 3,685
Posted By 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...
Forum: C++ Mar 18th, 2005
Replies: 5
Views: 4,197
Posted By evilsilver
ok well i got this so far, but can't get it to work, how do i get it to see what is writen in the text field?


#include <vcl.h>
#pragma hdrstop
#include <iostream>
#include <conio>
#include...
Forum: C++ Mar 17th, 2005
Replies: 5
Views: 4,197
Posted By evilsilver
i think dialog directly within code, but then again i am a newby and don't really get the question, what do you mean by a resource



as i said before, i am using borland c++ builder 3, and tried...
Forum: C++ Mar 17th, 2005
Replies: 5
Views: 4,197
Posted By 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...
Forum: C++ Mar 16th, 2005
Replies: 1
Views: 5,157
Posted By 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...
Forum: C++ Mar 4th, 2005
Replies: 6
Views: 15,451
Posted By 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...
Forum: C++ Mar 3rd, 2005
Replies: 5
Views: 3,586
Posted By evilsilver
first of all that seemed a little uncalled for, second of all i know i can use other methods that show pictures, i am a new c++ programer and am taking a class this is my first semester in it and i...
Forum: C++ Mar 3rd, 2005
Replies: 5
Views: 3,586
Posted By 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...
Forum: C++ Mar 1st, 2005
Replies: 7
Views: 2,403
Posted By evilsilver
c++

and thanx for the tip on fstream
Forum: C++ Feb 24th, 2005
Replies: 7
Views: 2,403
Posted By evilsilver
I understand that you have to save it to another file with all the stuff needed, but i don't know how to do this (i am a new programmer, the game is in dos mode and isjust input output type stuff.)
Forum: C++ Feb 24th, 2005
Replies: 7
Views: 2,403
Posted By 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...
Forum: C++ Feb 13th, 2005
Replies: 7
Views: 6,603
Posted By evilsilver
lol good point sorry.
Forum: C++ Feb 12th, 2005
Replies: 7
Views: 6,603
Posted By evilsilver
yes you can asign them with =, try this


char *test = new char [100];
test = "this works";


p.s. i tried what you said and it work.
Forum: C++ Feb 12th, 2005
Replies: 7
Views: 6,603
Posted By 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?...
Forum: C++ Feb 10th, 2005
Replies: 1
Views: 1,516
Posted By 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...
Forum: C++ Feb 9th, 2005
Replies: 2
Views: 1,583
Posted By evilsilver
AWSOME man!!! it worked, my fight (renamed battle) works!!! mad props to you man!!!
Forum: C++ Feb 9th, 2005
Replies: 2
Views: 1,289
Posted By evilsilver
yeah sorry about that it is supposed to be this.

p.s. if you right click on the "image hosted by tripod" picture, and select properties, it displays the url that the picture is at (for future...
Forum: C++ Feb 8th, 2005
Replies: 2
Views: 1,583
Posted By 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...
Forum: C++ Feb 7th, 2005
Replies: 6
Views: 6,467
Posted By evilsilver
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?
Forum: C++ Feb 7th, 2005
Replies: 4
Views: 2,652
Posted By evilsilver
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...
Forum: C++ Feb 7th, 2005
Replies: 2
Views: 1,716
Posted By evilsilver
alright i will take a look, thank you man.
Showing results 1 to 40 of 53

 


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

©2003 - 2009 DaniWeb® LLC