Beginners - October 2010 (Page 35)

never gives "Wrong date of birth or death"???
 
#include<iostream> #include<conio.h> using namespace std; void main() { int monthb,dateb,yearb; cout<<"Jnab plz enter ur date of birth="<<endl; cin>>date...
[1 reply] : Seriously, stop posting new topics with EXACTLY the same code in it al... (by Kyon)
what is wrong here???
 
"C:\age calculator\age calculatorr.cpp(68) : error C2447: missing function header (old-style formal list?)" tried to find the error...but was unable!!! #...
[4 replies] Last: Another note: Lose the habit of using void main() , every time you u... (by Kyon)
Installing Qt Libraries
 
I Want to run this code on Ubuntu Linux but i obviously need to install the Qt library onto my computer. Where do i download this from and where do i save these...
[1 reply] : http://qt.nokia.com/downloads/sdk-linux-x11-32bit-cpp http://doc.qt.n... (by Albatross)
by JamesZ
question regarding classes
 
Hey everyone, I am having trouble with a program dealing with Poker hands. I used 2 separate Classes, Card and friend class Hand(containing 5 cards), with the a...
[4 replies] Last: i dont know already this kind of topic beacause my instructor is alway... (by acDz)
Templates
 
Hi can someone help me finish the rest of this code? functions.h #ifndef __FUNCTIONS_H__ #define __FUNCTIONS_H__ #include <iostream> #include <strin...
[6 replies] Last: Awesome thank you so much for the guidance and help (by swalton)
Variables in System Commands?
 
I'm not sure if this is really much of a noob problem or not, but since I am a noob to C++, I think it's probably best to post it here. If you're familiar wi...
[2 replies] Last: It works! Thanks for the quick help. (by closed account j6XEy60M)
code structure
 
The code i am developing involves a lot of number crunching. I am interested in separating the functions which perform the numerical calculations from the class...
[2 replies] Last: Thanks for the suggestions. Significant portion of my code is symbolic... (by cpluplusrat)
Reading 2 diffrent lines into array
 
Hello there, I wrote a code that uses algorithm of bubble sorting, but it works only if I input one line (set) of numbers like: 4(how many numbers I want to ...
[3 replies] Last: Nevermind, solved this, topic to close. (by youknowitsme)
read txt increment words
 
I am workng on a progam to read txt in a file and print it to the screen. Every fifth word I sub an underline till eof. I have to read in each char. My issue is...
[1 reply] : have a char last , before inFile.get(ch) , swap(last, ch) .... (by hamsterman)
Confusing
 
Time &Time::setTime(int h, int m, int s){ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ } why are there two Time class declaratoins?.. sho...
[2 replies] Last: Right, like any other return type declaration. Thanks a bunch. (by Analyzer)
Code compiles but no output
 
Our instructor gave us this code (from char c to endl;). It should print out the ASCII characters from 1 thru 127 in 16 rows (he briefly showed us that it works...
[9 replies] Last: Thanks guys I have class this morning and will run it by the professor... (by alpha49er)
school project: recursion and binary trees
 
ok... what i need to do is make a recursive function that returns either true or false after seeing if one tree is a subset of another tree. bool subset_t...
[2 replies] Last: first define a function to see if two nodeas are equal bool equal(no... (by hamsterman)
by tonnot
A strange class definition at h and cpp
 
I have found at QT files then next 'way' of declare a class : Anybody can help me to understand it ? At file.h : class QLCDNumberPrivate; At file cpp ...
[1 reply] : That's what QT does. Lots of macros. The result is class QLCDNumber... (by hamsterman)
ifstream extraction limiting
 
I'm trying to be a safe programmer, controlling extraction to guarantee no buffer overruns. However, if the data (text) in the stream has no white space that a...
[3 replies] Last: Try below see how. while ( TestWords.getline( TestWord, 6 ) ) { ... (by sohguanh)
classes
 
I am trying to learn classes in c++, in the header file, do we always have to include the #ifndef #define. and also can we include other libraries in the header...
[1 reply] : You need to include every header which is declaring symbols you are go... (by Bazzy)
Returning *This
 
Why would you ever return a *this pointer in a memeber function of a class? for example: Time::Time( int hr, int min, int sec ){ setTime( hr, min, sec )...
[7 replies] Last: ........ =.= hihi Pardon me for asking.. i tried to read for a few ... (by teapotz)
Question about possible errors in a program.
 
Greetings Everyone, Once again I come to you with a completed homework assignment. However, even though this is completed, I would like to know the ways in w...
[9 replies] Last: So the code as it stands now is as follows: #include <iostream> ... (by Flynn380)
by saicam
error C2106: '=' : left operand must be l-value
 
Hi guys, Can anybody help me in this kind of error?..I'm actually reading a file text and I'm trying to save the string in some variable but I cannot save it be...
[1 reply] : You can't use the assignment operator like that with C - style strings... (by mike246)
Function at Top vs at the Bottom?
 
Can somebody explain the difference and effect of creating the Function at the bottom vs Top please? I am a bit confused.
[2 replies] Last: Thanks. (by knighthonor)
How do you recognize multiple user inputs and extract a sentinel value (1,2)
 
User puts in as many numbers as they want and then use -1 to say they would like to stop inputting numbers. IE: Input your numbers: 4 20 28 299 65 83 -1 ...
[22 replies] Last: I DID IT! Love you bros. Thanks so much for the help. Albatr... (by HipHopPotatoe)
October 2010 Pages: 1... 3334353637... 42
  Archived months: [sep2010] [nov2010]

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