Beginners - August 2012 (Page 29)

passing arguments by reference. (1,2)
 
#include<iostream> using namespace std; class something { int m_space; public: void value(in...
[21 replies] Last: @ResidentBiscuit: You need to write a copy constructor if the provided... (by ne555)
Function problem
 
Hi everyone, I've been having problems with a program I wrote and I think it has something to do with the order the functions are in. It is basicly like this: ...
[2 replies] Last: Oh! Thanks a lot. (by MaxLascombe)
Pointer to class member
 
int cl::*d; //pointer to class member int *p; cl o; p = &o.val // this is address of a specific val d = &cl::val // this is offset of generic val ...
[2 replies] Last: Thanks for replying.. (by Raman009)
by Kovs95
While(user==gullible)
 
I am continuing my basic C++ exercises. The main objective of this exercises is the following: Requires: variables, data types, and numerical operators basic i...
[8 replies] Last: kaseron, please focus on the important stuff. I don't like the use of ... (by KRAkatau)
by Zu007
addition in class.
 
#include<iostream.h> #include<conio.h> class ad { private: int n; public: void getdata() { cout<<"Enter the value of NUm"; cin>>n; } ad operato...
[1 reply] : 1)ob.n accessing private member 2)operator function should return a va... (by Akshit)
Object Oriented
 
I wonder if any one can give me video tutorial in "Object Oriented using c++" I dont know anything about it plz help me ^_^
[2 replies] Last: thnx alot (by Bassam300)
simple problem with list
 
#include <iostream> #include <list> using namespace std; int main() { list<int> lst; int val; while(cin >> val) { while(val % 2 != 0) { ...
[6 replies] Last: I don't know why ^_^ thank u so much (by Bassam300)
FRUSTRATED!
 
Having a little frustration doing this program for my class. It is supposed to a program designed to convert Fahrenheit to Celcius and Celcius to Fahrenhiet fr...
[7 replies] Last: Here: char getMenuSelection (char userchoice); Change to: char getM... (by Volatile Pulse)
by Madguy
Using system(cls) to clear only a part of the screen?
 
Hello forum, first off excuse my bad english I will try to explain my problem the best as I can and thank you very much for your help. In this program I need...
[11 replies] Last: Oh I see thanks for making it clear :) (by Madguy)
LNK 2019 on program functions
 
Hi. Just to start, I know what the LNK 2019 error means, but cannot find the source anywhere. I know the error log reports that its in the functions, so mayb...
[3 replies] Last: I fixed the error. I had to add the functions to the namespace in Pro... (by elijah2352)
High strangeness with stringstream
 
It all started when I, being a poor noob, realized that g++ doesn't support itoa. Long story short, I set out to write up a little library for myself, starting...
[3 replies] Last: @Catfish2: Ah! Somewhere along the lines I got it in my head that the... (by tragedyofhumor)
Passing Pointers / Iterators to Container
 
I am going through Lippman's Essential C++ and have some problems with the code. There is a type mismatch calling find_ver4(). Other probs are similar. Any h...
[3 replies] Last: Thank you. Volatile Pulse: Ooops. I should have stated that the error... (by eXistenZ)
defining struct strings
 
I have been building a program that will write structures to files, but I am having problems inputting values to the strings inside my struct. Here are the rele...
[4 replies] Last: Nope :) You need to instantiate your struct: character myCharacter; ... (by Lowest0ne)
how can I stop adding values
 
#include<iostream> #include<list> using namespace std; int main() { list<int> L; int num; for(int i = 0 ; i < 10 ; i++) { ...
[2 replies] Last: OK, thank u so much bro. (by Bassam300)
SSN and Phone Num formatting
 
Can someone explain how to validate format of user input for SSN and Phone Number? SSN format should be ###-##-#### and phone number should be ###-###-#### ...
[10 replies] Last: Before I add that, can you look this over and let me know if you see a... (by scu1casper)
run other .exe files
 
I have been programming a game that involves a character creator as a separate .exe file that saves your character's information to a text file which then will ...
[8 replies] Last: If that is the reason you have it separate, your program is code poorl... (by Volatile Pulse)
If statements in for loops question
 
Hey Everyone, I have a question about my code below. Why doesn't month reset to 1 once month becomes greater than 12? I keep getting 13... Thanks in ad...
[3 replies] Last: Thank you very much Vlad and Disch for your help! I can see the error... (by RastaWolf)
Make class with constant size. Help! (1,2,3)
 
I am learning to write and to read from a binary file. I want all objects to be the same size which means that the array size of the class has to be specified a...
[52 replies] Last: Ok thank you again, I thought before that I had understood everything ... (by Zerpent)
by cdf
setting display area
 
I am coding a display class and i have no idea how to do this as we did not do it in school, but it's required in the assignment - the constructor of the clas...
[2 replies] Last: Why oh why do they give you such an assignment? CanOfWorms->Open(). (by BlackSheep)
Expected A Declaration?
 
Ahhhh, thanks alot guys. I didn't even notice that haha.
[2 replies] Last: int main() ; Edit: Nin...JARRRRED! (by Moschops)
August 2012 Pages: 1... 2728293031... 45
  Archived months: [jul2012] [sep2012]

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