- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 4
- Posts with Downvotes
- 1
- Downvoting Members
- 4
- Interests
- Freeskiing Programming Gaming That order
- PC Specs
- Widows 7 Home Premium Hp Dv7 Quad Core laptop 6 gig ram nVidia gt320m graphics card
so im taking the advice of 1ML, seems like a smart guy, and starting a second thread for the controversial, main calling, system calling, devil code, anyway i did take your guys advice and cut out the main calls and reduce everything to one fuction. however! ladies and gentlemen we … |
|
Hi, I began file I/O and I did exactly what it said in the book I was using and it doesn't seem to work for some reason. Am I doing something wrong? [CODE]#include <iostream> #include <fstream> using namespace std; int main() { ifstream fin("hello.txt"); if (fin.is_open()) cout << "It's good"; … |
|
Can someone please help me with this code? I have already taken out some of the errors, and my instructor says to make sure my brackets are enclosed. When I do this though I get more errors???Help!!! #include <io> #include <string> #include <iomanip> using namespace std; //Global Declarations of Variables … |
|
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 … |
|
Hey ., need to know does turbo c work for ubuntu as well and if not what editor-cum-compiler should be used? Thanks |
|
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 … |
|
Hello all, I'm new to programming and I came across the practice problems thread and tried one of the beginner ones: "Make a program that allows the user to input either the radius, diameter, or area of the circle. The program should then calculate the other 2 based on the … |
|
I have had no previous programming experience and want to start learning C++. T was hoping if you could reccomend a good book. P.S. I've been thinking about [I]C++ Primer Plus[/I]. |
|
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 … |
|
Iam using graphics.h header file for the first time.plz tell me how the following program is written: write a program to print "Hello world" three times in different colors and fonts with yellow background colour using graphics.plzzz give me the answer. |
|
how to announce a table in c++? i know it goes with "for" for (int i=0;i<10;i++;) {for (int j=0;j<10;j++;) } |
|
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 … |
|
this program is trying to add from 1.. to x with return function. but when I enter 10 sum is 54 which is wrong. 1,2,3,4,5,6,7,8,9,10 = 55 [CODE]#include <cstdlib> #include <iostream> int burcin(int); using namespace std; int main(int argc, char *argv[]) { int x; int ft=0; cout << "enter the … |
|
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 … |
|
WHO know the best C++ Compiler for window 7 64 bit ?? thx for reply |