Beginners - November 2011 (Page 15)

what happens when EOF occurs but there is more? (1,2)
 
I am using Windows so EOF would be <ctrl-d> right? what is those ascii characters occured in a file halfway through it and how do I avoid it if it truely ends ...
[22 replies] Last: Ok Thanks (by Onceler)
Replacing parameters with structure type
 
So I made a struct for vehicle: struct Vehicle { string category; int occupants; }; And, Now i have to Replace string and int paramters with 1 Vehicle s...
[1 reply] : string GetRecommendation(Vehicle vehicle); (by Peter87)
My code is grayed out. What does that mean? using MS visual.
 
This is my header file: #ifndef ARRAY_H #define ARRAY_H #include <iostream> using namespace std; namespace list { template<class class_type> ...
[2 replies] Last: ^^^That fixed it (by bool maybe)
How to include api classes
 
How would I include a api class in a program. I'm assuming that I would need to include a header file. After that I assume that I would would just create a ne...
[1 reply] : For working with an API you need to read up on that API's documentatio... (by fafner)
Nested loop question
 
How would I include a nested loop to make the out put of this code look like this 1 12 123 1234 12345... Etc Cout<< "please input a positive number" <<e...
[3 replies] Last: Recommend what? You already have a for loop i = 1 to num. Now you need... (by hamsterman)
Need Assistance with Build
 
In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and assigned a numeric score. A p...
[no replies]
I am getting infinite loop using recursive function :(
 
Hello there, Thank you for your time. I am having a small trouble here , trying to print out an array using a recursive function, I think I solved like 90% of t...
[15 replies] Last: Argh! Guess I wasn't paying enough attention to remember I need to ac... (by ascii)
by Thetr
Program help :D
 
I challenged myself with a program... Basically user has to input five numbers, and computer has to order those five numbers from larger one to smaller one.. I ...
[3 replies] Last: I think that everything I did is fine... I am asking for the next part... (by Thetr)
by sc0tt
need help to understand in Arrays
 
I am doing a lesson in C++ and i am in a part where we are working with arrays. I am reading the book, but it is not really standing out to me what i am need...
[3 replies] Last: string array? There are many ways to handle strings. If you use const ... (by Peter87)
Validating user input for numeric values
 
Hi, I'm new to C++ and ran into a problem trying to validate user input for a double value. This is what I've tried to do so far (after putting together what I'...
[5 replies] Last: Hey, thanks a lot for your help! Just one more thing: I need to store ... (by silvery)
error: lvalue required as left operand of assignment
 
Point2D Point2D::operator+(Point2D param) { Point2D temp; temp.getX() = getX() + param.getX(); temp.getY() = getY() + param.getY(); return (temp)...
[5 replies] Last: Okay i figured out. solved (by Tampopo)
whats malloc good for in "real" programming?
 
Whats malloc good for ? is it good when you know exactly whats going to be in memory constantly as your programming is being executed? Is it like declaring v...
[2 replies] Last: malloc() is good for obtaining uninitialized storage, e.g. when prepar... (by Cubbi)
Newbie question
 
been a week since i started learning c++, im trying to write a program for Fibonacci series using loops but i was not able to think of some logic so i took help...
[8 replies] Last: I used unsigned because the Fibonacci sequence does not include negati... (by wolfgang)
Overriding error.. pls advise me
 
I kept getting this error: Line3D.h:18:13: error: invalid covariant return type for ‘virtual Point3D Line3D::getPt1()’ Line2D.cpp:41:9: error: overrid...
[3 replies] Last: Thanks (by Tampopo)
Access Violation error
 
I'm having a problem understanding a particular error that is crashing a programing I'm trying to fix. bool Enemy::CheckCollision(ICollidable* pOtherObject)...
[3 replies] Last: I've tried initialising OtherPositionXY and I get the same problem. I... (by jamesbouckley)
Help with a program in Code:Blocks
 
Hey everyone! I want to create a program. That program it must read a name (characters) and if the name is different with the name which I choose it display a m...
[5 replies] Last: Thanks again for helping me. Now I want to convert the *.cpp file into... (by pelopidas)
tell me if this is correct way to get values
 
i have a program it looks styntactically wrong class fire { private: string ACC; public: fire(string a); string gettypeoffire(string AD)...
[2 replies] Last: so take out the string in the parameter (by BLACKHULK)
can i use memshift on vectors the way you do with arrays?
 
I used to use the following function to remove a value from an array and insert it elsewhere: void memswap(int * arr, int src, int dest) { // store the...
[2 replies] Last: why insert/erase? The efficient solution, if I was able to follow your... (by Cubbi)
by moot1
help
 
hello i need help. why when i press "y" it does restart but it doesent let me choose how many numbers i want to use. why? #include <iostream> using names...
[6 replies] Last: Thx alot (by moot1)
Human Error
 
Somewhere in this code, I'm have an error in my logic. As you can see in the beginning of the do while statement, I want to find out the length of BiNum, line...
[4 replies] Last: Again, I solved my problem. Thanks everyone for your help. (by Da0omph)
November 2011 Pages: 1... 1314151617... 65
  Archived months: [oct2011] [dec2011]

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