Beginners - June 2011 (Page 31)

error: no match for 'operator<<' in 'std::cin << x'|
 
1int breakfast(int x) 2 3{ 4 using namespace std ; 5 cout <<"How many calories did you at breakfast and before lunch?"; 6 cin <<x<< ; 7 return ...
[2 replies] Last: Thanks a lot. (by jmcghee)
Linked-List/Node/Iterator design
 
Hello, In an attempt to create a basic generic linked-list class, I am having a hard time deciding what the relationship between the List/Node/Iterator classe...
[3 replies] Last: The design you're suggesting here involves creating public methods fo... (by kbw)
verify self assignement with template class with nontype parameters
 
Hi, I've got a class template with a nontype parameter : template<typename dataType, int size = 10> class AClass {...} I want to define an assignm...
[2 replies] Last: Works fine, thanks! (by plamonster2001)
Matrix Calculator
 
Hi all, I've hit a bit of a brick wall with a project assignment I'm working on. I understand the underlying principle of what I have to do, because I've sketch...
[2 replies] Last: Hi thanks for the reply, I had a look through that article, is there a... (by ExponentialP)
Program hex to binary, err coming!
 
i am begineer in c++, please tell why the following program is not working. //Program to convert hexadecimal to binary . #include<iostream.h> #include<c...
[6 replies] Last: no, they are not the same type (hence, you can't assign them like that... (by kfmfe04)
Balancing Symbols
 
I am working on a class discussion in which I am to write a program that checks to see if /* */, ( ), { }, [ } symbols are balanced. If the balancing symbols ar...
[no replies]
by sebgar
Multiple files and classes
 
I was trying to code an example from a book but it didn't work. Maybe because the author uses visual c and i have codeblocks? I checked word by word, looks the ...
[no replies]
[issue] couting dec from ascii table, not number
 
hi, I have little problem with this code, I wanna make something like calculator where you will write scheme and it will calculate it... but when I wanna cout n...
[4 replies] Last: See http://www.cplusplus.com/reference/string/string/ Strings support... (by hamsterman)
class n object
 
Hi... with #define macro how can use Pi ..like Default Constructor which should initialize radius of the circle with value 0. User Defined Constructor w...
[2 replies] Last: means...??? Athar?? (by student302)
Program to add matrix.
 
hi guys I am not getting the right result in the program as shown below, plz help why this is happening. ALsO, I am not able to get into the if block that h...
[no replies]
by tonnot
Can I write (bin) a vector of custom type using only one line of code ?
 
I have a vector that store a complex structure of data. In example : My_vector<My_class1> My_class1 is a vector of My_class2 Myclass2 : some ints, doub...
[2 replies] Last: See here to see how to do it properly: http://www.boost.org/doc/libs/1... (by Athar)
Game
 
Hi, I'm working right now on a game. I am trying to move the map when the player reaches the end of the window, this part works so far. But my problem is how...
[1 reply] : I'd say that the collision map covers the entire playground/level whil... (by coder777)
functions and header files
 
Im doing a homework assignment for CS programming 2 and am running into an error. I get," expected primary expression before "int" on line 7. I have been deal...
[10 replies] Last: I think you might have updated it a little, can you repost/update your... (by anonymous23323124)
Basic Calculator
 
.
[1 reply] : Just remove the break and it'll be fine ;) and please don't delete ... (by xander333)
by OzIre
Have I created a proper factory function?
 
Hi I was hoping someone could tell me if the create function I use in quiz.cpp between lines 27-37 is a factory function? I have googled for what a factory fu...
[2 replies] Last: Thanks webJose (by OzIre)
Floating point exception?
 
Hey all, brand new with C++ and just got back from my second day at class. :) I'm able to successfully compile and run this program, but I am having a runtim...
[3 replies] Last: When you use the divide operator, "/", in C++, it assumes the numerato... (by shacktar)
static const member arrays
 
Why can't I do this? struct A{ static const int mStatic = { 1,3,5 }; }; Seems I have to do this: struct A{ static const int mStatic ; }; ...
[2 replies] Last: You can only define static const integral values (i.e. short, int, lon... (by shacktar)
File IO Issue
 
Hello, I am trying to do simple file IO whereby I read in three integers from a file. INPUT File: 4 4 1 4 4 1 C++ CODE: int el_shape =0; int nNodes =0; int ...
[2 replies] Last: To answer your question, line 12 and line 15 both have print outputs. (by phillion)
how do i become more advanced in C++
 
Hi, i have a book called "Sams teach yourself C++ in one hour a day" and it is working. im learning a lot about C++. but, is there a book that will teach me mor...
[1 reply] : You're learning less about C++ than you might think, as that book is m... (by Athar)
by Null
how mke operatng systm
 
This is a joke, right?
[12 replies] Last: ^Like GameFAQs, that sounds good. (by firedraco)
June 2011 Pages: 1... 2930313233... 41
  Archived months: [may2011] [jul2011]

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