Beginners - April 2012 (Page 2)

Understanding pointer casting with const
 
I am a newbie programming in MSVS2008. I am struggling to understand this casting which is correctl...
[1 reply] : For the code to be const-correct, you should not be casting away the c... (by JLBorges)
#ifdefine question
 
When I coding my program in separate files, I use definition macro for file test.h like this: //-...
[4 replies] Last: > The only thing that you want to consider is making sure its unique. ... (by JLBorges)
Pointers or arrays ?
 
Hi, I'm about to start a new project about processing data stored in text file (all data are of typ...
[9 replies] Last: Thank you (by nadir CoCo)
PLZ Help me .. in Arrays .
 
In network simulation, node placement is one way to create and describe a simulated network. Write a...
[no replies]
can someone help with this tic-tac-toe project?
 
i have been c++ programming for a couple of months, using Microsoft visual c++ 2008, and i am trying...
[5 replies] Last: @newbieg - I would refrain from posting full solutions on here as far ... (by MrHutch)
Convert string number to Int
 
I know this is a very newb question to ask and all, but is it possible to convert a number in a char...
[5 replies] Last: http://www.cplusplus.com/doc/ascii/ this gives the entire table, but ... (by Danishx83)
"error: cannot convert ‘Funct’ to ‘int’ in initialization" when trying to use functors.
 
I'm trying to get the hang of functors but I get this error on line 18. I'd really appreciate it i...
[10 replies] Last: @vlad from moscow. That's brilliant. Thansk a lot for your help :-) (by waqqassheikh)
Getting ofstream junk
 
I am new to programming and I am trying my best, however I am having trouble with my output. I keep...
[1 reply] : You are calling your functions incorrectly in main. Wrong. void Rese... (by vin)
srand initialization
 
My main question is at the very bottom. The information here is supporting info. I am a fairly expe...
[4 replies] Last: My actual question however remains unanswered. Why is it bad to initi... (by codekiddy)
Arrays
 
Short code that i am trying to write. Does a couple things. Makes a 4 by 4 array with the numbers 10...
[6 replies] Last: Perfect. You have once again managed to impress me. Thank you very, ve... (by needhelp2345)
Calling a private class help?
 
#include <iostream> #include <windows.h> #include <string> using namespace std; class addClass{ ...
[3 replies] Last: setInt takes one argument so passing two arguments as you do on line 3... (by Peter87)
Math Solver
 
I am currently in school obtaining my bs in computer science and hate math and since i dont use it I...
[7 replies] Last: hehehehe... you can't be more wrong my friend, programming depends dee... (by TheDestroyer)
cant get the correct return value for calc
 
#include <iostream> #include <windows.h> using namespace std; class addClass{ public: in...
[3 replies] Last: thanks JL, it worked. (by capitolstorm)
Binary File Error
 
The code compiles but does not record (or) show the data properly. It only displays the last entered...
[no replies]
push_back(class)
 
I've got a class containing 3 floats. class a{ float x,y,z; }; And I created a vector with...
[11 replies] Last: yes (by en liten kille)
I need a lot of help
 
I'm having a lot of trouble writing this program. It's supposed to take student grades from an input...
[no replies]
getline function skipping function
 
Is the getline function supposed to stop and allow the user to enter info? How can I get it to do t...
[1 reply] : Are you using the extraction operator on cin e.g cin >> somewhere in... (by vin)
by amkmt
error C2228: left of '.printPatientDemographicInformation' must have class/struct/union type
 
I am new to C++ programming. Can anyone help and let me know what I did wrong here? I tried to creat...
[1 reply] : The part where you declare your objects is incorrect. It looks like yo... (by Zhuge)
NEED HELP ASAP
 
Ok so there is this project I have to do for my programming class. It opens a file and then computes...
[2 replies] Last: Actually I figured it out! It was something silly. I didn't put my fun... (by Andrew2172)
by JohnG
how
 
;fs
[1 reply] : http://www.cplusplus.com/forum/beginner/69677/ (by cire)
April 2012 Pages: 1234... 66
  Archived months: [mar2012] [may2012]

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