49,761 Topics
| |
I'm new in c++ programming. I have to do a program to save data from classes (Student, Teacher and Statistics). What may i use to save that values? (File, sql...) and how to use. If some one show me a litle program....:icon_smile: | |
I was reading the GPA score thread but it didn't help me any. i am suppose to be making a program that should prompt the user to enter up to 30 GPA's which are stored in a single dimension array. each time the user enters a GPA they should have … | |
Hello once again everyone, my previous [URL="http://www.daniweb.com/forums/thread141733.html"]problem [/URL] appears to be resolved right now thanks for everyone who has helped. I have to make the following derived class [quote] Your LField class is derived from your Field class and represents a line field. Upon instantiation, an LField object receives between … | |
Few Questions: Passing by values(copy of the value) or references(actual value)? - What is the difference minus the two mentioned? - What is the better choice? - etc? Also this is a more general quesiton OOP, with most languages its better to learn and use OOP then just programming a … | |
I need help with my project. I don't understand how I would approach the following situation and need some advice/suggestions. I am using a file to read info necessary for the project and using classes to access the data. class Car { public: void CarInit(string& make, string& model, string& color, … | |
[code=language] #include <iostream> using namespace std ;char (name)[20]; int helps; void (checkOutVillage) (void); int main(void){ { std==cout << "Please Enter Your Name!" << std==endl; cin >> name; std==cout << "You Are On A Great Quest" << name; << std==endl; std==cout << "There Is A Small Village In Trouble. Should We … | |
Hello everyone I have to create a class that has the following: [quote] Your Field class is the base class from which you will derive all other Field classes. Your Field class has the following public member functions, all of which are virtual: * void display() - does nothing here, … | |
Please compare the two codes below why is the first one displaying output to monitor where as the second code is displaying some unwanted characters. CODE 1 ..... #include <fstream.h> #include <string.h> void main() { fstream File("test_file.txt",ios::out | ios::in | ios::binary ); char arr[13]; strcpy(arr,"Hello World!"); //put Hello World! into … | |
Hey guys, We're trying to work with a driver program for our robot. If we can grab the x and y coordinates of the Mouse we could send them to the controller for driving. Does anyone know how to capture the mouse movement into an integer? | |
I made a script and it keeps saying error C2144 and fatal error C1004 [CODE] #include <iostream> using namespace std ;char name[20]; int helps void checkOutVillage (void); int main(void); { std::cout <<"Please Enter Your Name!" <<std::end1; cin >> name; std::cout << "You Are On A Great Quest" << name std::end1; … | |
Is procedural animation the same as tweening? I have looked on the net but get different answers. BattlingMaxo | |
:'( Hi geeks!, since I started programming I have never used qsort() for sorting. I also tried to consult books but, 'little or no success!'. Can anyone who know better help me to understand qsort() function. Please do it with an example! Happy forever even faced with c++! | |
can someone explain the difference between get functions in C++... like get() or getline() and on what situation should we use any of these functions, | |
I am working on a Matrix class that will eventually do a lot of stuff, but early on I have already hit a snag, how do I initialize (in a constructor) the 2D vector I have declared. [code=c++]//matrix class #ifndef MAT_CLASS #define MAT_CLASS //template <typename T> using namespace std; class … | |
can anyone write a program tofind sum of 2 numbers using friend function and programti implement digital clock | |
help me make a code please... i need a code when you pick one of the menu then the menu you pick will show up... then when you press anything it will go back to menu again.... can someone show me the code please???.... Thanks...... | |
Project Title : Student Grading System Purpose : Calculate the grade and sort the result in descending How the user operate the software: 1) user run the software 2) an interface show on the screen 3) user keyin Input file name (example:studentsmarks.txt) 4) user keyin Output file name (example:studentresult.txt) 5) … | |
It seems that writing ascii files changed significantly from c to c++. It moved from file pointers and things like that to being very easy, like [code] ofstream myfile; myfile.open ("example.txt"); myfile << "Writing this to a file."; myfile.close(); [/code] However, from googling it seems that binary file reading/writing has … | |
Ok I have been working on a basic calculator for C++. The only problem is that I don't know how to make it so if you divide by 0 it couts something. Anyone help. I know it would be possible with if/else statement. Heres the code so far. [CODE=C++]#include <iostream> … | |
C++ program that input rectangular matrix A nxm (integer) and finds out the indexes of most occurred element and counts how many times he occurs. I just can't do it :( | |
Ok so I am going to be switching to an ubuntu linux machine soon to do all of my coding and I was wondering if anyone has a reference to the function calls you can use with it because I am used to windows programming so now in my code … | |
Hey everyone, A friend and I are trying to figure out how to interface C++ 2008 with COM ports for our robotics team. Is there a simple "template" we could go by, or is it different for every device? Could someone provide an example of how to transfer data to … | |
Hi I was wondering how to create a window to run my programs in. It talks about it in many posts but I couldn't find anything on how to actually make one. I have no idea where to start so you will need to tell me pretty much everything (e.g. … | |
write a program that will read the weight of a package of breakfast cereal in ounces and output the weight in metric tons as well as the number of boxes neede to yield one metric ton of cereal | |
Hi ppl, im back here, but now with an array problem.. this time im doin a simple program to compare the numbers in an array n then say how are they ordered.. user must type those numbers.. [code=plusplus] #include "stdafx.h" #include <iostream> using namespace std; void comparison (int number[]); void … | |
hi there, iv came here not for myself but for the sake of my little bro who is currently stressing out big time with a program he making for a project. the problem he has is that his partner who he teamed up with has now decided to leave his … | |
hello do the member functions of a class occupy memory or just the member variables occupy memory? | |
i just started a new programming course and feel absolutley overwhelmed compared to my last one, we have to wrtie a program for the game of life. could somebody point me in the right direction, i am so confused right now... [url]http://www.comp.mq.edu.au/units/comp125/assignments/ass1/assignment1.html[/url] thanks! [CODE=cplusplus] #include <iostream> #include <fstream> #include <string> … | |
Hi, Can any body explain me about overloading concept of () operator? I need to know why do we need to overlload () operator and how do we achieve that? Thanks in Advance | |
Hi guys, I just got a headache trying to work with some files with .wlc extesions. I would like to know which applications open such files and how can i access the content. URGENT PLEASE. |
The End.