Beginners - May 2011 (Page 40)

memory error after returning a class
 
Hi, I have two different classes each in a separate header file and a .cpp file. In the main function I create an instance of each class and then call a test ...
[2 replies] Last: Thankyou very much, I didn't know about copy constructors. the follow... (by fredhenry)
First Collision Detection Program
 
Wasn't really sure where to post this, it's really just a little program I wanted to share with everyone because it's my second graphics project and 1st collisi...
[1 reply] : Nice. I have a question. Do you only keep track of the position of y... (by m4ster r0shi)
by Ayelix
Are auto variables stored in the stack?
 
My last C++ class test had a question which read "Write an example of using memory on the stack" or something along those lines. I didn't know any way to use t...
[2 replies] Last: Great, thanks! (by Ayelix)
Google can't answer me..
 
Hai. I'm pretty new to C++, and i was wondering if i could make a program to open a .txt file, and then delete something in it and type something new instead...
[2 replies] Last: That is, IF you need to use C++... Will the substitution be the same ... (by moorecm)
by tmso
Object Keeps Falling out of scope. HELP!
 
I'm clueless as to why creating an instance of an object while in a conditional statement would "go out of scope" once you leave that conditional statement. He'...
[3 replies] Last: look into polymorphism. (by hamsterman)
About my Task
 
Hello guys, I have to write this program but i don't understand to the problem. Please show me the way or can you write a seample? Thanks. Problem is ...
[3 replies] Last: thanks a lot. (by oguzuslu)
enumerations
 
hello everyone!i have some problem using enumerations. suppose we have enum fruit{apple,banana,mango}; main() { fruit a=apple; cout<<a; the problem ...
[11 replies] Last: @Mohamad Fouad..i dont use g++ compiler i am using borland c++ 5.02 co... (by nomijigr)
Arrays: I have a word in an array as an element, how do I count the letters?
 
Homework help I have a word pulled from a text file and put into an array. How do I then load that word into a separate array, so that I can count the number...
[4 replies] Last: ack, didn't realize you've changed the topic (and rewritten the questi... (by matsom)
How do you move on after a scanf without pressing "enter".
 
I am trying to get a string from the user and move on without requiring the user to type "enter" scanf("%s",&random);//scan printf("%s",random);//echo of the...
[4 replies] Last: I want to scan a sting and print something on the same line next to ... (by fierball)
error
 
Hi guys im trying to write a program that keeps track of events using log file(txt files) but i get an error when i use this studNumber = "..\\Log Files\\"...
[11 replies] Last: Got the solution from my lecture , i just needed to code studNumber._c... (by allytrice)
Error - undefined class.
 
Hi again. I get two errors which I can't locate. I would be very grateful if you could help me (again :) ). Headquarters.h: //DONE #ifndef HEADQUART...
[1 reply] : Look at the preprocesser output so you can see what's actuall being pa... (by kbw)
by Hyl
Help with pointers!
 
Hi guys, I can't seem to count the number of cs in my string. Which parts am I doing it wrongly? By the way, I can't change my function headers as they are give...
[6 replies] Last: Thanks a lot! You made my day! (by Hyl)
function without return value
 
can anyone show me some example of function without return value coding and give some explanation please...its hard to understand this topic by just reading a b...
[2 replies] Last: thanks dude...i understand it now... (by fakhruz3105)
need some explaination...
 
hello guys... what is & in this function declaration means? void swap(int& i, int& j)
[2 replies] Last: ok...thx a lot... (by fakhruz3105)
by badny
2 simple things with strings in C++
 
Hi there. I just need some help to do two stupid things (I´m really a beginner). Question 1: How can I initialize an empty string? I´m doing: char nam...
[4 replies] Last: Sorry about code block use. Didnt know that. Man, u just did the sa... (by badny)
by mdk85
Help needed in ATM programming
 
hi i have written a program for A T M . i have finished the program and its working i wanted to add few more steps . when i enter the correct account number it ...
[2 replies] Last: waqqassheikh , that was unhelpful. I had to modify the program to ge... (by kbw)
by Kivuis
Needing help making my first program
 
Hi all :) I'm an absolute beginner (started yesterday, using wxDev-C++) and am trying to make a very basic console program that once launched shows: Di...
[1 reply] : Save all the messages in a double dimension array. In your case as yo... (by writetonsharma)
by ARWA
massage dosent want to be shown what is the problem
 
this is the program in c please may any one know way is that the code has no broblems just the output #include <stdio.h> void main ( ) { int i,j,k, m...
[1 reply] : it should be %s and not %S. ** make it a habit of posting beautiful ... (by writetonsharma)
Help with Hangman Game
 
Newbie here, need help with my code for Hangman. Here is my code // Hangman.cpp : Defines the entry point for the console application. // #include "stdafx.h...
[9 replies] Last: @GodPyro Thanks, you have been of great help. (by ShadeKoopa)
Headers
 
Hey guys... can anyone help me with the header files ? I mean how to make a header file and use it in the source file...
[7 replies] Last: @ GodPyro Thanks for prompt. I corrected mistake. @ filipe It's j... (by SimpleIce)
May 2011 Pages: 1... 3839404142... 48
  Archived months: [apr2011] [jun2011]

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