Beginners - October 2010 (Page 22)

by rej3kt
Basic classes/constructor question
 
Hey all, this is my class header file, there's no problem with it as far as I can tell. The reason I'm here asking for help is because I'm failing to understand...
[5 replies] Last: Sorry to double post but I think it's all sorted my problem is with my... (by rej3kt)
can you answer me???
 
i want the codes of program that Draw a rectangle start with (5,5) The largest side length 10cm the smallest side length 5cm According to the following spe...
[8 replies] Last: Refer to the documentation of whichever graphics library you're using ... (by Athar)
by NcB
error messages!!!
 
can you tell me why ı get these errors... a6.cpp: In function ‘test duplicate(test)’: a6.cpp:33: error: no matching function for call to ‘test::test...
[1 reply] : My cat says "you have a java background. When you declare a variabl... (by ne555)
Transfering data from class
 
Hello, I have beginner problem which cant solve for few days. Basically, I understand that I don't understand to work with pointers :) My program declare cla...
[5 replies] Last: Well, I was hoping in more conrete help but I will study all what you ... (by beginplus2)
Code error
 
Hi..can some1 correct my code?what did i mistaks here?i didn't get...?please tell.. :( code(1).. #include <iostream.h> main() { ...
[6 replies] Last: ohhh ok thanks... (by student302)
Set a value by default constructor or other constructor
 
Hello, I'm trying to learn c++ but there is something I can't figure out. How do I call this class in the first if statement to change the overflowValue? ...
[3 replies] Last: Overload your constructor. Same function signature, but a change in a... (by closed account Lv0f92yv)
problems about Cimg
 
Below is my code void specificity::showText(vector<name_ID> &sacrifice, int die) { cimg::wait(100); unsigned int R = 50 + rand() % 255;...
[1 reply] : I solved the problem by myself I should study the source code as well... (by stereoMatching)
cosine approximation
 
Hello, I'm trying to work on a cosine approximation program by using a Taylor series. The basic format is: cos x = 1 - (x^2)/2! + (x^4)/4! - (x^6)/6!... ...
[2 replies] Last: Hey thanks a lot! (by SingBlueSilver)
STRUCT Library System
 
I badly need to finish this program before wednesday nextweek :( i am only a freshmen college student and i am still getting familiar of all the codes in c++...
[1 reply] : void deleteMechanism() { int idno; char name ,mname ,lname , course... (by jehlaipixy28)
Visual cpp is being screwy
 
I am 99.9% sure this should be working but it fails. What am I doing wrong? 1> letcount2.cpp 1>letcount2.cpp(9): error C2144: syntax error : 'int' should...
[2 replies] Last: ugh stupid mistakes around. I made those changes but it instantly clos... (by scrivener07)
Accepting Upper and Lowercase - else/if
 
I am trying to write a program that displays the tax rate for a couple of different states and I need the program to accept the users input of either "FL" or "f...
[3 replies] Last: You can make it even easier. See the second code snippet I posted here... (by Duthomhas)
by areid
Checking to see if something is a number with if statements
 
Okay I need to check to see if what the user inputs is a number and not another character if it is a character print error. I was thinking I could do if x is no...
[4 replies] Last: istream::peek() or read as number and fail. (by ne555)
how to do this?
 
In 2004 the cost of an average home in CITY was $390,100. In 2007 the cost was $398,600. Assuming that the relationship between time and cost is linear, dev...
[1 reply] : http://www.cplusplus.com/forum/beginner/1/ (by AbstractionAnon)
Hi just a bit of direction please
 
Hi thanks for reading i have question to complete haveing a bit of trouble i am using VB 2010 and C++ the Question is: Exercise 5: Pattern generation using l...
[4 replies] Last: thanks very much cheers i will try to get my head around it (by Mark wylie)
Acess Violation 2d array @ debug
 
My program compiles without errors but when i debug my program i get the error message "Unhanded exception at 0x0131175c in test.exe: 0xC0000005: Access violati...
[4 replies] Last: Thanks!! They should add "Like" buttons to this forum. (by ejjunju)
sentinel looping
 
write a program that will prompt for and receive your age in years and months and calculate and display your age in months.if the amount is more than 500, three...
[9 replies] Last: Don't forget to include a while loop if your teacher specifically want... (by Athar)
by ARWA
algorithm asistent!
 
hi,im trying to solve as many exersizes as i can and iv stoped in the last part of the aquestion i couldnt develop the algorithm for it.may any one guide me ...
[2 replies] Last: int day, month, year;//note that counting starts from 0 here int inc... (by hamsterman)
by kuhnsm
C++ beginner assignement with loops
 
My assignement is to display in a console a while loop to calculate and display the sum of the numbers from 1 to 100, This is my code: // while loop.cpp ...
[5 replies] Last: It worked thank you sooo much, I'll now try the for loop. Thanks aga... (by kuhnsm)
Pass arrays containing structs?
 
Hi guys, can anyone give me a steer regarding passing arrays between functions. I want to create an array from user input, so the size and content of the ar...
[2 replies] Last: Thanks i'll investigate (by berabus)
by afrg
error checking for istringstream
 
hi everyone, I'm trying to write a program for school which reads in from a text file, evaluates from scores in the file and then outputs to a new file. so ...
[2 replies] Last: wow, thanks for your quick and comprehensive response. i will try th... (by afrg)
October 2010 Pages: 1... 2021222324... 42
  Archived months: [sep2010] [nov2010]

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