Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
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
~3K People Reached
Interests
Freeskiing Programming Gaming That order
PC Specs
Widows 7 Home Premium Hp Dv7 Quad Core laptop 6 gig ram nVidia gt320m graphics card
Favorite Forums
Favorite Tags
c++ x 62
Member Avatar for jonspeidel

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 …

Member Avatar for 1ML
0
397
Member Avatar for blee93

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

Member Avatar for blee93
0
132
Member Avatar for smitty34

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 …

Member Avatar for ninjatalon
0
254
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
103
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
132
Member Avatar for geekme

Hey ., need to know does turbo c work for ubuntu as well and if not what editor-cum-compiler should be used? Thanks

Member Avatar for ravenous
0
168
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
136
Member Avatar for doublecheck

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 …

Member Avatar for doublecheck
0
153
Member Avatar for Gregor97

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].

Member Avatar for alex55
0
134
Member Avatar for dprakashkumar
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
186
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
122
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
128
Member Avatar for pinky khan

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.

Member Avatar for JSPMA1988
0
105
Member Avatar for ikiag

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++;) }

Member Avatar for ikiag
0
102
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
155
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
100
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
125
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
117
Member Avatar for burcin erek

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 …

Member Avatar for burcin erek
0
102
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
143
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
197
Member Avatar for chamnab
Member Avatar for alex55
0
147