49,761 Topics

Member Avatar for
Member Avatar for afg_91320

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 …

Member Avatar for Ancient Dragon
0
64
Member Avatar for afg_91320

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 …

Member Avatar for dumparun
0
165
Member Avatar for Se7Olutionyg

[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; …

Member Avatar for Denniz
0
106
Member Avatar for Se7Olutionyg

[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 …

Member Avatar for Denniz
0
251
Member Avatar for hezfast2

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 …

Member Avatar for ArkM
0
90
Member Avatar for obsolucity

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 …

Member Avatar for ArkM
0
489
Member Avatar for mathrules

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 …

Member Avatar for mathrules
0
115
Member Avatar for begyu

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 …

Member Avatar for Lerner
0
273
Member Avatar for DemonGal711

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 …

Member Avatar for DemonGal711
0
86
Member Avatar for arunkr6

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 …

Member Avatar for Ancient Dragon
0
86
Member Avatar for Liszt

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 …

Member Avatar for Liszt
0
290
Member Avatar for concavang
Member Avatar for AutoC

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 …

Member Avatar for dmanw100
0
41
Member Avatar for Traicey

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

Member Avatar for Liszt
0
100
Member Avatar for mybluehair2

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 …

Member Avatar for marco93
0
117
Member Avatar for Balinor

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 …

Member Avatar for Balinor
0
116
Member Avatar for Liszt

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 …

Member Avatar for Liszt
0
81
Member Avatar for vrga

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.

Member Avatar for JustinJose12002
0
150
Member Avatar for jazzyangelz

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 …

Member Avatar for Denniz
0
88
Member Avatar for MylesDBaker

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 …

Member Avatar for Denniz
0
246
Member Avatar for serkan sendur

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.

Member Avatar for Ancient Dragon
0
225
Member Avatar for panpanf

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.

Member Avatar for grumpier
0
132
Member Avatar for buddha527

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 …

Member Avatar for buddha527
0
253
Member Avatar for DLightman

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 …

Member Avatar for DLightman
0
333
Member Avatar for JustLearning

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 …

Member Avatar for Alex Edwards
0
144
Member Avatar for jack1234

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 …

Member Avatar for Ancient Dragon
0
743
Member Avatar for DemonGal711

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 …

Member Avatar for DemonGal711
0
118
Member Avatar for PaladinHammer

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 …

Member Avatar for Freaky_Chris
0
544
Member Avatar for oceanicblack

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 …

Member Avatar for stilllearning
0
222
Member Avatar for sohamghosh

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?

Member Avatar for sidatra79
0
140

The End.