Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
32% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
4
Posts with Downvotes
1
Downvoting Members
4
2 Commented Posts
~4K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

23 Posted Topics

Member Avatar for jonspeidel

to goto the top of main try a goto statment somethin like [CODE]if(variable == 1) { goto a; } [/CODE] define a as [CODE]a:[/CODE] then whenever the statment is true it will goto that location

Member Avatar for 1ML
0
412
Member Avatar for blee93

ran the code it compiled fine ran and did what it was supposed todo what seems to be the problem?

Member Avatar for blee93
0
143
Member Avatar for smitty34

compare your code to mine should fix most your erros [CODE]#include <iostream> #include <string> #include <iomanip> using namespace std; //Global Declarations of Variables double iovertime_hours=0; double iovertime_pay=0; double iovertime_extra=0; int ihours, iwage ; string cname ; int main () { //Enter Employee Information cout << "\n\nEnter the employee name = …

Member Avatar for ninjatalon
0
265
Member Avatar for alex55

on line 32 how would i go about inputting a file name to be called by my function which im using a const char pointer for the file name line 33) error C2664: 'calculationOutput' : cannot convert parameter 1 from 'char' to 'const char *' [CODE]#include<iostream> #include<fstream> #include<string> #include<iomanip> using …

Member Avatar for jonsca
0
119
Member Avatar for alex55

how would i go about doing the std output to a file for this line? to be more clear i want it to append to the file not overwrite because i run the function multiple times outputting to the same file [CODE]std::outFile << "The area with the highest average temperature …

Member Avatar for alex55
0
143
Member Avatar for geekme
Member Avatar for ravenous
0
180
Member Avatar for alex55

I wrote a program executed it and it returned the expected output i goto modify it to work with multiple input files and now it returns garbage and crashes anyone have any idea? -the output file is commented because i am not using it yet there are no references to …

Member Avatar for alex55
0
185
Member Avatar for doublecheck

the only thing i would've changed about your code was using the endl command instead of the \n [CODE]cout << "output" << endl;[/CODE]

Member Avatar for doublecheck
0
166
Member Avatar for Gregor97

I stand by Nell Dave and Chip Weems Programming and Problem Solving With C++ so much code is given in the comprehensive edition to help you learn

Member Avatar for alex55
0
155
Member Avatar for dprakashkumar
Re: c++

what program are you referring to the majority of your programs run c++ or a similar language

Member Avatar for alex55
0
76
Member Avatar for alex55

I have a program which i need to run with 2 input files 1 is no problem but i have no idea where to start with having it run with 2 anyone have any ideas? basically heres how it goes 1)have the program run with data01.dat 2)outputs results to output.dat …

Member Avatar for alex55
0
248
Member Avatar for alex55

i have this function that should compare values and return a string based on input from the main function. However it returns no value at all does anyone see and issue with it? have checked all the input it is getting the correct values highestMontName and averagedMonth are declared globally …

Member Avatar for alex55
0
131
Member Avatar for alex55

I have this string function that should calculate the average of and array compare the values of the 12 numbers and output which month has the highest temperature -(0-11) = (Jan-Dec) -all variables not defined in the function are defined globally The problem is when I compile and run the …

Member Avatar for alex55
0
140
Member Avatar for pinky khan
Re: c++

that's old school visual studio 5.0 i remember doing that in highschool

Member Avatar for Member #870895
0
126
Member Avatar for ikiag

to further add to that i and j can also be defined as variables and can be virtually any integer you want it to be you can also input to it from a file or use user input for(int i=0; i<variable; i++) { for(int j=0; j<variable2; j++) { cin >> …

Member Avatar for ikiag
0
118
Member Avatar for alex55

Im inputting from a file to a 2d array and i dont know how to stop it once it gets to the end of the file the code i have for it so far is [CODE] for(int i=0; i<records; i++) { for(int j=0; j<month; j++) { inFile >> monthArray[i][j]; } …

Member Avatar for alex55
0
176
Member Avatar for alex55

I have this array that should be returning a value in the 50's due to the data input i am giving it but it is returning 0 everytime What the code should do is input to and array from the file then pass it to the array monthSum then it …

Member Avatar for VernonDozier
0
113
Member Avatar for alex55

so I have and for loop to find the highest number in and array how would i go about outputting the element number? [CODE]//compares the values in the yearAverage array to find the highest temperature for(int i=0; i<lineCount; i++) { if(yearAverage[i]>=highTemp) { highTemp = yearAverage[i]; } }[/CODE]

Member Avatar for alex55
0
145
Member Avatar for alex55

I have a function that should read in data from a file and add them to and array then i pass that array to another that totals the data then i want to find the average of that array and pass the max value to a variable 'max' with the …

Member Avatar for alex55
0
138
Member Avatar for burcin erek

maybe also if theres don't work try declaring a global variable and set it equal to (x+ burcin(x-1)) then just return the variable

Member Avatar for burcin erek
0
117
Member Avatar for alex55

So i have a string say string A = junk#crap i want to separate it to separate strings b=junk c=crap how would i go about doing that while throwing out the #?

Member Avatar for alex55
0
153
Member Avatar for alex55

i need to write a program that takes this style of input Enter customer name: Kristopher Ann#Nugent and seperates the name to look like this Customer name: Nugent, Kristopher Ann so far i have decided to separate the name into 3 separate character strings but i can only get two …

Member Avatar for alex55
0
339
Member Avatar for chamnab

I prefer visual studio 2010 you can get it for free if you are a student either highschool/college its really quick and easy i think heres the link [url]https://www.dreamspark.com/Products/product.aspx?productid=25[/url]

Member Avatar for alex55
0
166

The End.