- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 4
- Posts with Downvotes
- 1
- Downvoting Members
- 4
23 Posted Topics
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
ran the code it compiled fine ran and did what it was supposed todo what seems to be the problem?
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 = …
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 …
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 …
quick google search sent me to this [url]http://anjuta.org/[/url]
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 …
the only thing i would've changed about your code was using the endl command instead of the \n [CODE]cout << "output" << endl;[/CODE]
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
what program are you referring to the majority of your programs run c++ or a similar language
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 …
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 …
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 …
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 >> …
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]; } …
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 …
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]
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 …
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
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 #?
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 …
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]
The End.
alex55