Beginners - November 2010 (Page 16)

by fpie22
need assistance on my hw
 
this is what
[2 replies] Last: #include <iostream> #include <iomanip> #define MAX 10 using name... (by chipp)
by murva
Find angles on a field
 
Hello, I am trying to find the angle between a reference point and other points, with given coordinates. For example, my reference point is (2,-2) and I want...
[3 replies] Last: ok, i got it. The angles I got are ok, I jst get them in rad, which is... (by murva)
Exception Handling
 
Hi guys, i am using the exception handling use to catch the errors. But the program doesn't work as i wish. I was trying to make a validation, when user try t...
[2 replies] Last: thx bro. ur post is really helpful ;) (by redevilkang)
truncation? of an integer
 
I'm building a hash table class to store acsii values of integers in an array of a set size. the problem I have is I would like to take a large value, say 34...
[2 replies] Last: that works brilliant. thank you for your response (by wash me socks)
by cheneP
class declaration
 
Hello all, In have a set of header files in a c++ project that consistently use the following syntax for a class declaration. ____________________________...
[2 replies] Last: Thanks very much. (by cheneP)
by firix
construct "the type Complex"?
 
Hi guys, I do not want the creation of the Imaginary object type in main class Imaginary{ double i; Imaginary(double ii = 0.0):i(ii){} publi...
[5 replies] Last: thank you (by firix)
Problem with my program involving multiple if statements
 
Hello im new to c++ and have a problem with the program im building. Im making a program to estimate the cost of paint and wallpaper for a decorater.I have been...
[5 replies] Last: The code on lines 107-129 and 162-190 do nothing ( has no effect on th... (by Bazzy)
How do I get struct contains some types and push it in a stack?
 
How do I get struct contains some types and push it in a stack? Please any help?
[4 replies] Last: The program stack, std::stack, your own stack structure... (by Bazzy)
Problems with pre compiled header files??
 
Hi building a program for college, kinda stuck at the first hurdle!! Im including my classes i have made in the main prog but it keeps saying this warnin...
[7 replies] Last: [quote=dalejnr88]the employee class is not defined and it's not the ba... (by coder777)
by GulHK
compile time error
 
I have a function called compr bool class1::compr(const structT1& t1, const structT1& t2) { return t1.dateTime > t2.dateTime; } and I a...
[12 replies] Last: looks like a deja vu. well instead of having a single iterator itFi... (by coder777)
C program to convert octal to binary number system..
 
i am a beginner and want to learn programs of converting number systems. now i want to convert octal to binary no. system.
[5 replies] Last: int bin_dec(int number) { int result = 0; int n = 0; i... (by firix)
by lenovo
c++ question
 
hi, who can help me for this excersise , pleaseineed help the quesions says, 1. Write a definition of a class named SudentType, which includes methods and ...
[7 replies] Last: ok, thank you!! (by lenovo)
by Citis
very big natural number
 
Is there a data type that can store any natural number? The natural number may be 0 or 121281237129432746237 or even longer.
[5 replies] Last: Thank you! How can I install gmp in a windows-like system? Is there an... (by Citis)
by Jsel
iterator problem
 
This segment of my code is giving me problems else { for (vector<Location>::iterator iter = neighbors.begin(); iter != neighbors.end(); iter++) ...
[3 replies] Last: Yea those 2 problems are exactly it. I just caught it after staring fo... (by Jsel)
What condition is this IF statement checking for? if( !variable )
 
I saw some code online of people using if statements like this. For example, they will have char variables named "complete" and "wild" and use it like this... ...
[5 replies] Last: In c/c++, anything zero is false, anything non-zero is true. true and ... (by rocketboy9000)
by Bri426
Bubble sort function
 
I'm working on a function that uses the bubble sort. Our teacher gave us this to show us how it works: Variables: List is an array (index values start at ...
[5 replies] Last: That do while statement will only ever execute once, since you will ne... (by rocketboy9000)
array of pointers - dont understand behavior
 
Hello, I need help understanding pointers, in particular in regards to an array of C-strings. I will like to direct your attention to the code segments with h...
[3 replies] Last: when you print a char * you keep printing characters till you find a... (by ne555)
by m m
undefined reference to a static variable
 
Hi Everybody, I have 3 classes, A, B and C. class A { private: int N; public: int *VectorInA; // Size N void SetN_A(int n){ N = n; } ...
[3 replies] Last: Well it isn't clear because you are trying to describe it instead of j... (by kempofighter)
by Jabem
Function Pointer passing
 
Hey guys, this is my first time posting on here and I just can't seem to get this program working the way I feel like it should. I have been working on this for...
[3 replies] Last: To use function pointers, you put a '&' before the function name, not ... (by firedraco)
C++ simple question
 
replace this do-while loop with a while loop. When u do this you will no longer need an if statement. cout << "Enter an even number: "; do { cin >> numbe...
[15 replies] Last: problem 1. ';' after while(). That just creates an empty loop. proble... (by hamsterman)
November 2010 Pages: 1... 1415161718... 42
  Archived months: [oct2010] [dec2010]

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