64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tommy_tucker198

I have decieded to learn c++ just wondering what compilers you would all suggest? thanks

Member Avatar for alsoagirl
0
183
Member Avatar for tuskyballer

I'm about 3 weeks into my C++ class. I already made a simple program below that calculates grade averages and received an A. Now my teacher wants me to turn in three variations of it, replacing the goto with a while, do while, or for loop. I have experimented and …

Member Avatar for Stack Overflow
0
716
Member Avatar for cap2361

ok, help!!! I'm totally lost. I have to use a file stream program and add names to file, then keep count of file names, then display the count of names entered and the names entered. Use a loop to enter names until prompt to end. these are just two of …

Member Avatar for cap2361
0
149
Member Avatar for ghaney1
Member Avatar for ghaney1
0
1K
Member Avatar for DaveSS

:?: Hi i am in my first C++ class and have already written two simple C++ programs. Im working on another using functions. I have to write 3 functions to calculate the area, cost, and retail price for wooden boxes and a main function to have the user input information …

Member Avatar for DaveSS
0
122
Member Avatar for s47221288

Hi, I'm a thai student ... now i have a premiership project but i can't pass this problem that is , How to random matching football team ? example I have 4 team in `vector<string>` name [0]=a [1]=b [2]=c [3]=d I want to matching them such as week 1 : …

Member Avatar for s47221288
0
108
Member Avatar for migthyjohn

i hate C++. i have been working through the C++ for dummies book, and i have yet to make any sense out of it. the only thing that i have been able to grasp is the i/o parts. it is so hard. maybe i havent given it a chance to …

Member Avatar for Siersan
0
117
Member Avatar for mrb260478

Can somebody help me in getting cursor position using C++ Programming language on a UNIX operating system. :cool:

Member Avatar for vegaseat
0
119
Member Avatar for roscioeak@direc

Can anyone direct me where to go for doing stacks in C++. I have to make a program using stacks but can you initialize a stack with given values? If so can you give an example?

Member Avatar for vegaseat
0
104
Member Avatar for Dani

I am taking a Computer Graphics course where we are doing some c++ programming using the OpenGL API. I'm writing a C++ program in Visual Studio.NET, where I've installed GLUT (Open GL Utility Toolkit). OpenGL, itself, apparently comes with VS. The only include that I have in my one-file program …

Member Avatar for Intel
0
1K
Member Avatar for ITman

can any one give me C program for ROUND ROBIN ALGORITHM . please needed urgently

Member Avatar for ITman
0
115
Member Avatar for ah01

#include <iostream> #include <stdio.h> #include <iomanip> using namespace std; struct person { char name[15]; int Idnum; int *testscores; float average; char grade; } *student, freshman; //////////// function prototype /////////// void allocate_memory(int number_students , int number_scores); void get_data(int number_students ,int number_scores); float validate_score(int score); void print_results(int number_students ,int number_scores); void release_memory(int …

Member Avatar for vegaseat
0
178
Member Avatar for master Blacktop

Konrad Zuse, a German engineer, completes the first general purpose progammable calculator in 1941. He pioneers the use of binary math and boolean logic in electronic calculation. Colossus, a British computer used for code-breaking, is operational by December of 1943. ENIAC, or Electronic Numerical Integrator Analyzor and Computer, is developed …

Member Avatar for brain-nerd
0
423
Member Avatar for tones1986

the code compiles but when i try running the .exe it closes. It looks liek for the 2 seconds its up it works, but then it closes itself. What am i doing wrong? heres the code: #include <iostream> using namespace std; int main() { // sets variables to be set …

Member Avatar for bombe
0
602
Member Avatar for cymbalistic1

Hello, I'm new to this site and this is my first post. I got an assignment where I have to do a QuickSort on 100,000 numbers first and then combine QuickSort and BubbleSort so that the BubbleSort comes in for the last 1,000 numbers. The information is to be exported …

Member Avatar for cymbalistic1
0
101
Member Avatar for chound

I get 2 strings. I remove all the characters present in both the 2 strings.I count the no. of characters left. How do i do this in C++?

Member Avatar for vegaseat
0
177
Member Avatar for 40ounce68

anyone know where i can get the answers for the exercises...Im stuck on some of these...

Member Avatar for vegaseat
0
106
Member Avatar for tones1986

I have this banking program that has a savings, checking account set up. The user has 4 options. Checking, Saving, Balance, and monthly maintenance. The checking option is all correct and never comes out weird...u can deposit everything and withdraw without any probs. If i do that -- then i …

Member Avatar for tones1986
0
149
Member Avatar for Alfarata

I am writing a program in C not C++ how do I allow the user to input a name for the file, but not the extension. I will use the extension .csv always.

Member Avatar for Narue
0
233
Member Avatar for dal4488

Hi, I'm totally new to C++ and so far am extremely confused. I was wondering if anyone could give me any help with one of my assignments. Basically I don't know where to even start. I think if maybe someone can help me get started maybe I can figure this …

Member Avatar for vegaseat
0
607
Member Avatar for potential

hello guys. :confused: just a question about vectors: (sorry if it seems stupid, but i really don't know much about vectors) is it possible to return a vector or a pointer to vector from a function? if so, how? thanks in advance.

Member Avatar for potential
0
106
Member Avatar for Tomas Lopez

Ok, I've been trying to find and solve the problem with this source code by using the ddd debuger and I just can't. Here is the code. //lab1.cc, a driver for list.cc //CSCI 1120 //Will Briggs #include <iostream.h> #include "list.h" main () { Item Letters [MAX_ITEMS]; int num_letters = 0; …

Member Avatar for Tomas Lopez
0
173
Member Avatar for eastgate

:cry: I have written this in [B]TCLite v1.x (Successful!) [/B]but when I ran it on BloodShed DevC++ v4.9.9.1 (Latest from Blood) it won't work!.. arrgg.. I need this functionalities.. ;-(.. for educational I typed [B]exactly[/B] these... [code] [COLOR=DarkOliveGreen] #include <iostream.h> #include <conio.h>[/COLOR] void main () { int mark; int sum; …

Member Avatar for eastgate
0
621
Member Avatar for evilsilver

lol i have tried and tried and look and ignored it for a long time. but i just can't find this problem or find it's solution anywhere. Here it is i have a function called fight i need to call to it often but for some odd reason whenever i …

Member Avatar for evilsilver
0
117
Member Avatar for MissSneakyPaws

This is going to sound silly but i am really struggling to delete my internet history and search history. As others use my pc i do not want people to know what i have been searching for but it automatically comes on the drop down menu when the type a …

Member Avatar for vegaseat
0
197
Member Avatar for dr.danno

I am looking for ideas for a program that I am trying to build. I need to have two pictures, one blurred and one clear. The blurred picture will cover the clear picture so it appears blurred. I need the mouse to appear as a sight glass so when the …

Member Avatar for vegaseat
0
88
Member Avatar for f_escobar82

I am writing a Win32 Console application and I need to change the font size to 18x10 pixels. I think this can be done with a function in windows.h but Im not sure which one or how to do it.

Member Avatar for kc0arf
2
4K
Member Avatar for tad73831

First, let me say I am NOT asking for someone to write this program for me. I have to see how functions and operations are used in programs to learn to use them in my own program. And I need help understanding how to use rand() in the program I …

Member Avatar for evilsilver
0
352
Member Avatar for dr.danno

I am looking for ideas for a program that I am trying to build. I need to have two pictures, one blurred and one clear. The blurred picture will cover the clear picture so it appears blurred. I need the mouse to appear as a sight glass so when the …

Member Avatar for 1o0oBhP
0
133
Member Avatar for helmica

hi all am having hard times since yesterday trying to solve this problem. Declare the following two integer lists: int a[] = {5, 8, 4, 1, 7}, b[] = {12, 3, 15, 6, 23, 1, 2}; int sizeA = sizeof(a)/sizeof(int), sizeB = sizeof(b)/sizeof(int); list<int> list1(a, a+sizeA), list2(b, b+sizeB); Use the …

Member Avatar for vegaseat
0
190
Member Avatar for Sam Lehman

hi, i've got a bit of a roadbump in my work. I need to set all of the money values to have two decimal points on the end, but my current program only adds two places if there are more than one. right now, i am multiplying the value by …

Member Avatar for Sam Lehman
0
206
Member Avatar for dallin

I have a Distance Structure that includes Miles, Feet, and Inches. The user inputs these amounts 3 digits for miles, 4 digits for feet and 2 digits for inches. Not all of the time the user will input the full number of digits, when the user doesn't input the full …

Member Avatar for Dave Sinkula
0
112
Member Avatar for migthyjohn

i have a book to learn c++ and i have a peice of code that they are saying to compile and it is showing an error on line 15. here is the code: // // Program to convert temperature from Celsius degree // units into Fahrenheit degree units: // Fahrenheit …

Member Avatar for migthyjohn
0
107
Member Avatar for magnolia

Here is a little of my program: struct Town { int population, outbreaks; }; const int MAX_ROWS = 39; const int MAX_COLS = 39; void GetInfRate(Town[][MAX_COLS], int); //some other functions int main() { Town coordinates[MAX_ROWS][MAX_COLS]; //I load my data // I display menu, etc. } void GetInfRate(Town c[][MAX_COLS], int MAX_ROWS) …

Member Avatar for magnolia
1
154
Member Avatar for Peter Mugizi

Can somebody help me. I need to convert a programme from Qbasic to Java. Any help is much appreciated. Peter

0
125
Member Avatar for wildkms725

error reads: body has already been defined for function 'main()' program is as follows: search.h file [code]// display files in a directory #include <stdlib.h> #include <dir.h> #include <dos.h> #include <string.h> #include <iostream.h> #include <fstream.h> ofstream outfile("output.dat",ios::out); class dispfiles { public: int showfiles(void); char allfiles[MAXPATH]; private: char *getdirectory(char *path); char curdir[MAXPATH],temp[3]; …

Member Avatar for vegaseat
0
207
Member Avatar for vegaseat

Why are the standard header files in C++ so non-standard? Particularly iostream seems to be the most dialectal. Enough to make the whole language a mess to work with!

Member Avatar for vegaseat
0
146
Member Avatar for Real-tiner

HELP! We are 8 years into a 12-year study, and our original computers are failing. There is a serious possibility that the study will not be completed, because we cannot find computers which are compatible with our equipment and which can do the job. We need to be able to …

Member Avatar for Real-tiner
0
219
Member Avatar for dallin

I'm using the abs() function in a probability calculation using float and int variables however I'm getting error messages. What I'm trying to do is get a decimal answer using abs() but it appears to only accept integer variables? How do I get the abs() to give me a a …

Member Avatar for Acidburn
0
98
Member Avatar for cricket

I am just learning C/C++. My problem is to determine if a character is or isn't within an array then returning an appropriate message to the user. I've only gotten this far using 'strchr' without much success. Any suggestions or help would be appreciated. Should I be using pointers instead …

Member Avatar for vegaseat
0
163
Member Avatar for dallin

I have a column of floating point data that I need to right justify and align the decimal points. Help. Data looks something like this. 30.768 1.345 .430

Member Avatar for vegaseat
1
5K
Member Avatar for sinB
Member Avatar for vegaseat
0
84
Member Avatar for yvonnemo

Hi, I been trying this problem for 2 days and monday 31st is the due date :( I tried to use a while loop but the numbers I get are not even close. What I did on the [B]Enter your code[/B] is the codes below the question [code] //******************************************************************************************** // …

Member Avatar for yvonnemo
0
105
Member Avatar for dallin

In C++ visual studio .net, I'm dividing two integer variables and trying to put the answer in a double variable. How do I get two integers to divide and give me a double data variable answer? Thanks doub_a = inta / intb .75 = 9/12

Member Avatar for dallin
0
162
Member Avatar for ysong00

I created this 2d array consisting of morsecodes: char m[57][6] = {".-..-.", "", "", "", "", ".----.", "-.--.-", "-.--.-", "", "", "--..--", "-....-", ".-.-.-", "-..-.", "-----", ".----", "..---", "...--", "....-", ".....", "-....", "--...", "---..", "----.", "---...", "", "", "", "", "..--..", "", ".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", …

Member Avatar for vegaseat
0
96
Member Avatar for letmec

I love graphics programming through C & C++, I have worked a lot, but i am still very far away from bmp files, Can any one tell me how i can access bmp file through C, C++. Thanks in advance :rolleyes:

Member Avatar for dalaharp
0
609
Member Avatar for Kate

hi there. I've been battling with this for a while now, and really need some help!! I have five files full of 100 numbers each, they are labelled 1.txt, 2.txt up to 5.txt. I want to read these files in and put them all in an array: `files[5][100]` so I …

Member Avatar for Chainsaw
0
323
Member Avatar for compeat

hi! I have a problem about "[B]range of data types[/B] ".I work on program that require long digits .in "boland c++ 5.2 's help" range of long is [B]4294967295[/B] . but why this sample program doesn't work??!! [CODE] int main(){ long a=4294967295,b; b=a; return 0; }[/CODE] CAN YOU HELP ME? …

Member Avatar for Dave Sinkula
0
563
Member Avatar for BIT_SAIKAPIAN

Hi everyone, I have done BIT, but in other words I completed it just to have degree not as a career. But now I am very much interested in it to take it as career. I have set a goal of 6 months to do best learning c++ and java …

Member Avatar for jwenting
0
116
Member Avatar for Acidburn

Hello, Can anyone point me the direction of getting a linux verision that comes with a .cpp compiler? so you enter gcpp filename.cpp which compiles the code and runs it in a konsole? I've got mandrake and Suse siting here.... Cheers

Member Avatar for kc0arf
0
188

The End.