Beginners - December 2008 (Page 13)

Modifying Old Video Games with C++??
 
I am an amateur (very amateur) game modder but one thing that puzzles me is that it would seem that the older a game is the easier it should be to mod yet I fin...
[2 replies] Last: Oh man, "reverse engineering" is 4-letter word when it comes to progra... (by motter28218)
Heaps
 
I am studying for my final tomorrow so i redid my heap assignment. When i run this just sits there waiting for some input. I think the problem is in my upHeap f...
[4 replies] Last: The program is in an infinite loop because size is growing by one each... (by kbw)
by preeve
copy chars to array but remove a character
 
Hello all, I need to copy the contents of a variable (called resource) into an array (called fname) but omit the "/" forward slash that appears at the beginn...
[1 reply] : Just use an if in your loop to test whether or not the char to be co... (by Duthomhas)
string char to int
 
how can we convert a string char to an integer??????? suppose string s1 = 23 then cout<< s1+10l; gives an error........how to do that?
[1 reply] : There's basically two methods: The C method involves a call to atoi()... (by helios)
Deleting[] a char*[]
 
When I run the following code, the compiler tells me "Debug Assertion Failed!... Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)..." The compiler break...
[8 replies] Last: new char is Java syntax What? Says who? new char (no ), new char*... (by helios)
by HJ1226
mathematics program
 
hello! i am in a beginniers comp sci class and i am trying to write a program where the user can enter an algebraic expression using +, -, and * only (ex. a+b*c...
[1 reply] : http://www.cplusplus.com/forum/beginner/6132/ (by helios)
Looping program back to the beginning
 
I have created a mortgage amorization program for school. After fixing over 100 errors I have got the program to work. However, I have tried to no avail to loop...
[2 replies] Last: Thanks for your tip. Your example gave me an idea. I added a bool stat... (by mistymoon1966)
by zoldri
ASCII space invaders
 
Hi i am very new to c++ and and this forum and i am trying to make an ASCII space invaders game while i learn. i have got a main menu function and am able to cr...
[18 replies] Last: i cnat figure out how to kill the bad guys; when they get shot they j... (by zoldri)
?: conditional operator
 
I am trying to use the ?: operator so that it doesn't return anything if the condition is false: cout << "whatever I want to say..." << (newline==true ? e...
[2 replies] Last: Thanks for explaining :) (by user name)
by sashko
problem with function that count the symbols in identificators in *.c files
 
I need to count the symbols in identificators in .c files and I make that piece of code FILE *fin; char row , path ; int count=0,i; ...
[1 reply] : All these type lines are wrong if(row !='='... (by jsmith)
by zzz
wrong answer(polynomial)
 
please take a look at this find (x-a)*P(x) //P(x) = p n x n + p n-1 x n-1 + ... + p 0 a, n, p 0 , p 1 , ..., p n is given. Input: 1.5 1 1.5 1 Output:...
[no replies]
Can not declare an int as a number
 
Hello. I am trying to make a Tic Tac Toe program and when I have to make something to check if the block is taken or not, I'm going to use an int. When the b...
[12 replies] Last: Oh jeez, that is pretty complicated, lol. Thanks for your help, I'll t... (by bluezor)
program which checks the answers to a test-paper
 
i have to solve this problem and i dont know how: At an exam the students have to answer 30 qustions with multiple choices (a,b,c..) i have to make a program ...
[1 reply] : No one will do your homework for you, so please dont ask "solve my pro... (by Scipio)
by II15X
Does it hurt to have to many Directory?
 
I realize at first this sounds confusing, and if you get it, it sounds stupid. But I was wondering if you could use it like a simple pre-layout. Here is what...
[5 replies] Last: Whoops. I did mean compile time. One of these days I'll learn to spe... (by g0dwyn)
Two-Dimensional Array
 
For some reason every time I run this code: #include <iostream> using namespace std; int main() { int arrey = { {1, 2, 3}, {11, 12, 13}, ...
[2 replies] Last: Thanks (by willia23)
by Sathed
classes and vectors
 
Okay, so I'm having a bit of a problem... I'm trying to open a .txt file, if it opens, send the string to my class to open and read the data in to a vector. I...
[2 replies] Last: For what concerns your constructors, you have to remove the void typ... (by Bazzy)
by sweni
Snake (Blinking problem)
 
Hello everyone I have a problem with my snake game. When i play it blinking because i use system("cls") so it looks like the snake is moving. Here is the code p...
[2 replies] Last: Not really, you could avoid blinking just by redrawing characters need... (by Bazzy)
already defined in functions.obj
 
Greetings all and thank you in advance for any help you can provide. I am relatively new to C++. I took a beginners class in college but that was about 6 year...
[7 replies] Last: I have discovered that if I make my functions file a functions.h file ... (by Fredbenz)
by rom87
Simple word encrpt
 
Hi for some reason when words are entered there is a extra decrypt value ? also how would i make scanf exept whitespaces so that a user could enter a sentence ...
[no replies]
c string question
 
i have a question that confusing me alot we know in c++ to declare an pointer-based string we use the code char * ptr; cin>>ptr; but my question is tha...
[4 replies] Last: Line 8 is wrong... you need to make a char array instead. thank y... (by yamen ajjour)
December 2008 Pages: 1... 1112131415... 17
  Archived months: [nov2008] [jan2009]

This is an archived page. To post a new message, go to the current page.