49,761 Topics
| |
im making a program where i have a txt file that has names of student basically i have to pull out those names using c++ strings and set them in alphabetical order. for that i will be using a while loop that will read the students and update as to … | |
i have this code here that i have written out and im i want to convert it using functions. basically it is a geometry calculator that will let you calculate the area for any geometric object (ie rectangle, cirlce, triangle) basically i have to rewrite the code and add a … | |
[CODE]# include <iostream> using namespace std; void displayGrade (int ) ; int main() { const int SENTINEL = -1; int score; int sum; int count; int average; count = 0 ; sum = 0 ; cout << " Enter scores one at a time as requested . " << endl; … | |
[CODE]#include <math.h> #include <iostream> using namespace std; void instruction(); int calculator (char); void divide_by_zero (); float do_next_op (char, float, float); int main() { //input char input; float accum,num; // instructions (); void intruction(); accum = 0 ; do { //get input cout<< " : " ; cin >> input; cin … | |
Hello all, I am trying to finish this program, but am running into some trouble with the main() (I think). It will output the courseID, but no grade, points, honorPoints, or averages I think that I have everything overloaded correctly, but am messing up with the array of objects part … | |
Hey guys :) I'm working a project but I'm not quite sure how to start it. I'd like to be able to create a tree by typing in a line of commands - such as this "dudduud". D would stand for down, creating the first node, U would stand for … | |
I am writing a program that reads words from a file and uses a binary search to determine how many compares the program does while searching for a word that the user inputs. I got everything worked out except an issue I am having with me if statment in my … | |
Hi all, I have a .cpp code which reads a matrix from a .dat file and compute their eigenvalues. But I would like to read more matrices from the file not only one, and get the eigenvalues in the similar way. Please help to solve this, I stuck at this … | |
Dumb question really but still wanted to know. In Microsoft Word, they give you some symbols like the arrows (← ↑ → ↓) and black space(█)which are not in ASCII. Is it possible to some how tell the compiler to use these symbols even if they aren't in ASCII? If … | |
I am new in VC++. As to modify a software,I have to read contents of an .xml file. From this data I have to manipulate further, While I tried it by copying to a CString, it reads by word by word(cuts at spaces). But I need at least a line … | |
I am working with the backgroundworker and the datagridview. I have noticed a difference. I have put a loop that puts a value to one cell in the datagrid first in a buttonevent. After this loop is finished wich creates a timer textfile that tells how long the process did … | |
declare a hugo integer by array or string. Please help me! | |
Hi, We are doing some audio data collection.So I need to write a program which when run would generate a beep and record from a microphone until the next beep and save it as a wave file.This repeats for n beeps with a gap of 5 seconds between beeps. Can … | |
Guys I need to read from a text file and display to a listview I have tried google but nothing like what I am looking for, can anyone help me, Im using windows application Thanx in advance | |
I have a console game (DOS game) I created a wile ago to learn C++. But now I want to expand this game. So I started reading windows API tutorials. But I still need some help. I have no idea how to create buttons, and how to make something happen … | |
hi, ive been learning C++ from a book at home, am past the console and pretty much all the form part of the book but have a few unanswered questions. Beware this might be quite a large post, as i have no access to the net at home so am … | |
I will try to catch a few idéas of how to check changes in a large number of files. I dont know what oppurtunities there is to do that. I will have a folder that contains perheps thousands of files wich will be written to randomly. How is it possible … | |
I am having trouble deleting a string from a list. My program has to read strings from a file, then I have to delete the ones that are equal. I am a little bit lost. Any suggestions would be appreciated. | |
I need help! I am learning how to write functions but I have no idea how to start this.... could some one help me. I would really appreciate it. Thank You. I need to implement a number of useful functions using a header file and an implementation file. I also … | |
Hello everyone, I am trying to get a head start on this week's program, as it seems to be a long, albeit relatively easy, program. I wanted to double check with the experts here to make sure the flow of control for this program is correct. The assignment is as … | |
in visual c# i used to resolve namespaces by right clicking on the class name, do you know how to do the same in c++? thanks. | |
i am confused by pointers. How do we know the type the pointer points? Is it compiler specific? how do we implement delete[]? Are there any books or articles about this topic? Wait for your replies. | |
I am going back through some old code I wrote last year during school to try and refresh myself for upcoming classes. This one code I went back and tried to build it and I receive this following error: error C2059: syntax error : 'return'. I am not sure why … | |
For the sake of discussion, say I have a sphere class with a few public and private methods. Since I have this generic class I would like to define a second class that is more specific of the type, like balls, bearings, and so on. So for my second class … | |
I am getting a syntax error when I try to compile. After I write a little code I try to compile to catch any of my mistakes. In this project I am to use a class queue template that is provided by my instructor here it is [code=cplusplus] #ifndef TEMPLATEQ_H … | |
I am using Visual Studio 2005. Following two programs has the same code, just that one is CLR Console application and the other is Win32 Console application. I set a break point at int i=1 for both program, for CLR Console application, and when run to the break point, in … | |
I have to write a code that will produce a 2^n by 2^n board and then fill it (filling it isn't important, I think I got that down). Now, since my board is dynamic, any suggestions on how to deal with this. I'm passing my array from my main function … | |
In case the guys who helped me with a "pass-by-reference" function didn't see it, thank you for your help! I've only got one problem right now and thats that my program will not send data to an output file. Here's the code: [CODE]bool checkInputFile(ifstream &fin); // checks the file input … | |
I have a C++ midterm due tomorrow that I can't figure out. Here is the assignment: [code] // Use the program BtoDsol.cpp located at: BtoDSol.cpp // which converts any byte to decimal // enhance the driver program to test an additional function DtoB with a prototype of: // string DtoB … | |
I am trying to make a bank C++ program but the problem is that when the program terminates, data is lost and when I start it again, it reinitializes. Can someone tell me how to save the information in my harddrive and not my RAM? |
The End.