Beginners - April 2011 (Page 45)

Will it do the job?
 
HI. I made a program for my homework it doesnt fulfill the task completely but i think it's gonna do the job.What do you say will it do the job or not ???? He...
[5 replies] Last: Try this: http://www.cplusplus.com/reference/clibrary/cctype/isalpha/ ... (by Computergeek01)
by nezs
Passing data structure to a class in another fille
 
Hello! I am pretty new in C++ and I apologise in advance if my questions seems silly. I have a data structure declared in main.cpp and I want to pass that da...
[4 replies] Last: Yup, did that. And your suggestion works! Thank you very much! (by nezs)
Increase in one value related to another value
 
I want to make program in which when the menu to select battery is ON. The life of battery starts increasing. Can someone tell me how to do this ? how to in...
[1 reply] : if (batteryOn)battery++; (by Athar)
Could boost::function accept arbitrary arguments?
 
//B is an arbitrary argument //N is the size of f boost::function<int(int, B)> f = {boost::bind(....), .....}; B maybe type point, type myRBTree and so on...
[5 replies] Last: In which case the best way to deal with a variant is via static_visito... (by jsmith)
resource
 
Just DL'd Win32windowsAPI, playing with it a little bit but having trouble understanding how to get an image into my project. Do I need to save (lets say a sh...
[3 replies] Last: Allegro, wxWidgets, SFML... In general, working with GUI's isn't tha... (by hanst99)
String giving wrong output
 
Ok so i making a program that by entering a date of birth it will give following output You were born on the of the in the [if {year} is greater than 2000...
[1 reply] : exchange line 34 and 30 (by coder777)
How can I implement polymorphism in this program?
 
Hi, i've got a prgram for a college system which allows a user to determine the overall grades for a student. What I want to do is add polymorphism to this prog...
[no replies]
file input output
 
I am new to C++ programming and am trying to find a way to write variables to a file and then read those variables at a later time, for something such as a save...
[1 reply] : You can use http://www.cplusplus.com/reference/iostream/fstream/ for t... (by coder777)
by pete
data iput and calculation
 
hi i have a text file which has a 12x41 sized 2d array..(let the file name be inflow.txt).i need to open the file and has to use the each data one by one in ...
[1 reply] : You can use http://www.cplusplus.com/reference/iostream/ifstream/ (by coder777)
by pieee
Class problem
 
Hey guys, I'm having trouble compiling this code, I don't exactly know what I am doing wrong as I am only new to classes. Am I even close to setting out my func...
[4 replies] Last: Yeah thanks for that. Originally when I ran the code I had multiple er... (by pieee)
Dynamic filenames
 
I'm trying to figure out how to make a filename based on the following: char *tmp; const char file = {"datos/file_"}, ext = {".txt"}; ofstream mySaveFi...
[17 replies] Last: bump - Still no luck, and I've been reading the docs and reference mat... (by ciphermagi)
Support Binary I/O
 
Which of the following supports binary I/O 1.gets() 2.fsreatm::write() 3.Puts() 4.fstream::get
[1 reply] : Why don't just look at the reference section? (by firedraco)
by Tazz
how to correct the data type problem
 
hi there please help me i was writing a program in which i declared a: const float pie=3.14; but i am getting a warning message each time as "truncatio...
[1 reply] : 3.14 is a double by default. Write 3.14f to make it a float. (by Zhuge)
looping problems
 
Okay. my function "screenOutput" is going to output to the screen. I need 6 values per line. In my main() I am to ask the user to input a search value... ca...
[3 replies] Last: ooh, I can play "post the same reply twice, too" :p on how to pass ar... (by matsom)
Error C1083:Cannot include header file
 
Hello, I am making an oversimplified, small ATM machine emulation program. I haven't completed the code yet. but when I was trying to build my half written pro...
[2 replies] Last: Yes, for both. (by devjeetroy)
output to a file
 
I have code the will output to a csv file all combinations of a give string. say the string is abc i will get: aaa, aab, aac, aba, abb, abc, aca, acb, ac...
[6 replies] Last: Is there away to output to an ms access file? I would like to open t... (by toadmar)
by mta
'Class' Type Redefinition
 
Hi Guys: I am receiving the 'Class' Type Redefinition C2011 error on the Patient class but I haven't been able to figure out why the error is showing. Could ...
[7 replies] Last: Put header guards with unique identifiers in all of your headers (by Bazzy)
2D looping help
 
Can somebody help me understand the looping process for 2d arrays? int main() { int a , x , y ={3,4,5,6}, z=0, r, c; int i=1; cout<<" r c a i"<<endl; f...
[5 replies] Last: thanks a lot.. thanks! (by k1ng310)
How could I use polymorphism in this program?
 
Hi, i've got a prgram for a college system which allows a user to determine the overall grades for a student. What I want to do is add polymorphism to this prog...
[1 reply] : The fact that you can't see where to add polymorphism should tip you o... (by Athar)
how to correct the errors?
 
Hi guys, I need your help. I am using managed c++ and I have no idea how to correct the errors I have received on my error list. Here it's the error wit...
[6 replies] Last: Maybe you could look for a C++/CLI forum. (by filipe)
April 2011 Pages: 1... 4344454647... 55
  Archived months: [mar2011] [may2011]

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