Is there an easier way ?
OK, I am using C and C++ (learning both). 2 questions.
1. What I am doing is I am opening a text file (while running my program) and I want to find a certain line, designated by the user based on the name he wants to call himself. On each line there is either a number or a word (name) and there are always the same number of lines of numbers between each line of charactors. What I am doing is I am scanning in the word and checking it to see if it is the right word and if it is not I will scan in the numbers into a dumby variable (one that is never used later) and repeat this with a while loop. Is there an easir way to do this ?
2. For some devilish reason when I tell the print out to a file it will not do it. I do not really know how to explain this. I will put up at my web page the game as it is and the script so if someone wants to try to help me, I think it would be easier for them to see what is happening.
My site is at:
blacksyde.virtualave.net
(no www. infront)
it will be posted under my other page.
Thanks
Won''t anyone help me ?
come on this can''t be that hard to help me....... or can it ?
come on this can''t be that hard to help me....... or can it ?
blacksyde, chill out.. your post hadn''t even been up for an hour..
i can''t help you much.. for one, i don''t have WinRAR, so i can''t unzip your game.
i don''t know how you''re reading the files.. if you''re using an ifstream, you can use the getline(const char *str,int size) member function to read one line at a time (provided it''s less than size), or (depending on how you''ve set the file up) you could use the seekg(streampos) to move streampos characters from the beginning of the file..
also, i don''t mean to be judgemental, and don''t take this wrong, but you''ve got cracks on your page.. and well, that kinda offends me a little...
i can''t help you much.. for one, i don''t have WinRAR, so i can''t unzip your game.
i don''t know how you''re reading the files.. if you''re using an ifstream, you can use the getline(const char *str,int size) member function to read one line at a time (provided it''s less than size), or (depending on how you''ve set the file up) you could use the seekg(streampos) to move streampos characters from the beginning of the file..
also, i don''t mean to be judgemental, and don''t take this wrong, but you''ve got cracks on your page.. and well, that kinda offends me a little...
hehe, sorry for complainning about no one helping me, I was just getting really frustrated with it and I had nothing better to do....
Fuzzyai:
I can see how the cracks page might offend you a little but there is nothing big up on it and probably never will be anything big. All that is there is one for visual page and one for one of those ''surf the net and make money'' things. I just find that if your tring to make a simple web page that some of the free web builders are not well put together and really bad to use and I don''t personaly want to buy the program because it is something that I am not going to use THAT much. I usually update my page like ever month or so.
Fuzzyai:
I can see how the cracks page might offend you a little but there is nothing big up on it and probably never will be anything big. All that is there is one for visual page and one for one of those ''surf the net and make money'' things. I just find that if your tring to make a simple web page that some of the free web builders are not well put together and really bad to use and I don''t personaly want to buy the program because it is something that I am not going to use THAT much. I usually update my page like ever month or so.
Somone put a lid on this thread before the piracy holy war begins.
Kressilac
Kressilac
Derek Licciardi (Kressilac)Elysian Productions Inc.
sorry about bringing that up, kressalic.. i don''t want to start another piracy war, those other threads just wouldn''t die.. i guess by writing this i''m keeping the thread alive, but oh well..
blacksyde: i personally just use html from a text editor (WinVi usually). it''s not at all difficult. the only thing that annoys me about it as a programmer is that you have such little control over html pages, unless you go all out with dynamic html.. and the control is a flaw (in my opinion) of the language.. i''m getting off subject, i always do.. out of curiousity, did you crack it yourself, or find the crack somewhere? i used to crack myself, though i never posted anything, and deleted all the programs soon after cracking them..
blacksyde: i personally just use html from a text editor (WinVi usually). it''s not at all difficult. the only thing that annoys me about it as a programmer is that you have such little control over html pages, unless you go all out with dynamic html.. and the control is a flaw (in my opinion) of the language.. i''m getting off subject, i always do.. out of curiousity, did you crack it yourself, or find the crack somewhere? i used to crack myself, though i never posted anything, and deleted all the programs soon after cracking them..
Quick note on a few HTML editors to end the piracy thing:
1) AOLPress: I''ve heard this one is very good, and it''s freeware. I was able to find the download for this at:
http://www.aolpress.com/download.html
2) Frontpage: I personally don''t like it, but a lot of people do. I think that the express version is very cheap, but I''m not sure where you could get it.
3) Dreamweaver. This one is the best. Unfortunately, it''s very expensive, so it''s probably not what you want.
-Chris
---<<>>---
Chris Rouillard
Software Engineer
crouilla@hotmail.com
1) AOLPress: I''ve heard this one is very good, and it''s freeware. I was able to find the download for this at:
http://www.aolpress.com/download.html
2) Frontpage: I personally don''t like it, but a lot of people do. I think that the express version is very cheap, but I''m not sure where you could get it.
3) Dreamweaver. This one is the best. Unfortunately, it''s very expensive, so it''s probably not what you want.
-Chris
---<<>>---
Chris Rouillard
Software Engineer
crouilla@hotmail.com
---<<>>--- Chris Rouillard Software Engineercrouilla@hotmail.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement