49,761 Topics

Member Avatar for
Member Avatar for Foxtildawn

i get a couple error messages when i try to compile this program...I dont understand how to fix them and i was hoping for some help.....The error messages i get are: error C2146: syntax error : missing ';' before identifier 'inData' error C2501: 'ifstream' : missing storage-class or type specifiers …

Member Avatar for Narue
0
187
Member Avatar for sinB
Member Avatar for vegaseat
0
79
Member Avatar for Foxtildawn

im trying to insert a number into an array but when i insert a number it deletes the last number instead of increasing the array size by one....this is the code i have: void Insertion(float T[100],int size) { float target = 0.0; cout<<"Enter the number you are inserting"<<endl; outData<<"Enter the …

Member Avatar for 1o0oBhP
0
88
Member Avatar for Foxtildawn

im trying to insert a number into an array but when i insert a number it deletes the last number instead of increasing the array size by one....this is the code i have: void Insertion(float T[100],int size) { float target = 0.0; cout<<"Enter the number you are inserting"<<endl; outData<<"Enter the …

Member Avatar for jwenting
0
79
Member Avatar for yvonnemo

Hi, I'm having trouble on transfering "input.txt" over to "output.txt" what command shall I use with C++ language? Anyways below is the question I needed to answer on monday, anyway help will be very very appreciated. write a program to compute numeric grades for a course. The course records are …

Member Avatar for Siersan
0
248
Member Avatar for cameronius

Hello all, i am new to C++ and im writing a little encryption program for fun. It requires the user to enter a 'passkey', which is a string (numbers, and letters). Then the program defines the ASCII value of all of the characters, and places them in the string - …

Member Avatar for Siersan
0
288
Member Avatar for crq

STILL trying to figure out how to link files in C++ in a UNIX environment!! i just don't get it. how do i make .o files? what are they for? how do you "link" them with other stuff and "run" them. all i am capable of is g++ somepgm.C and …

Member Avatar for Dave Sinkula
0
156
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
101
Member Avatar for rpgplyrff8

This is my 1st time working with C++ and im trying to learn the lanuage. I am writing a program that figures out the total sales data for five products. The code for the program is: #include <iostream> #include <iomanip> using namespace std; int main () { int product; int …

Member Avatar for Narue
0
121
Member Avatar for crq

hi there. i am on a UNIX system and am writing a template code called Array.h. it is called by a Test2.C file which does nothing more than declare a T object of type int. Array<int>. i am getting all kinds of compile errors. have been over it and over …

Member Avatar for Narue
0
190
Member Avatar for tat2dlady

Does anyone know how to use an array of files? The array is defined as: fstream F[10]. I have 10 temp files that I need to use but am not sure how to open these temp files or write to them. I have a counter to keep up with which …

Member Avatar for tat2dlady
0
119
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
158
Member Avatar for crq

hey folks, i have a template created that holds an array of type T elements. my problem is this ... i am converting this code from a souped up Array class that takes ints as it's elements to this template Array<T> class that will hold T elements. in the original …

Member Avatar for Narue
0
221
Member Avatar for Tester2

I would like to transfer a file from a server to a user for the user to read. I would like to be able to insure that the user can view, but not save or print the file. I am willing to write a user tool to enable viewing and …

0
87
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
595
Member Avatar for nicki7823

I did most of this program, but it has a couple of problems. Every time I get to the end of the program the Highest numerator is always five regardless of what I entered. The next problem is the Highest denominator entered does not show up. Instead a lot of …

Member Avatar for Dark_Omen
0
144
Member Avatar for trixiestrat

I got this assignment for school. I figured out most of it, but one part is really stumping me. The assignment tells you to have the user enter in a dollar amount between $0 and $100, and to give an error message if it's out of the range. I figured …

Member Avatar for Narue
0
141
Member Avatar for Robson85

Hi Iv'e almost completed this programme built for calculating a pilots fuel consumption on various flight distances. I have done most of it at college and now tried to execute it at home and there is an error. I am unsure whether it is just that my compiler is a …

Member Avatar for Dark_Omen
0
188
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
553
Member Avatar for xxraveteddyxx

I need some free-ware compiler information..i just need a c++ compiler thats decent..anyone that can help please let me know...thanks. :eek:

Member Avatar for eastgate
0
80
Member Avatar for iseekknowledge

i have read a few threads and am amazed at how much help you get here. I just started learning C++... anyway here is my delema i am working on a program that you have to enter a number but the seccond number has to be less that the first …

Member Avatar for Narue
0
93
Member Avatar for Khishin

I have just started using C++ after a year or two of a BASIC language, and I wanted to do something that required some logic, but not a lot of different commands. I decided to do a tic tac toe playing program where your opponent was the program. The way …

0
97
Member Avatar for Asif_NSU

I have written this program to convert a decimal number to a number of any base. The resulting number has been put into an array and so can be of any size. But the decimal number that i take as input is limited by the range of int. What i …

Member Avatar for Asif_NSU
0
170
Member Avatar for nico

hi everyone am trying to write a very small interactive program that 'thinks' of a number in the range of 0 to 99 and asks the user to guess it , problem is when i compile it (using devc++) I get errors (six to be exact) I don't know what …

Member Avatar for arifilipe
0
3K
Member Avatar for sid3ways s13

Hello everyone, I've been browsing this forum for small while and have gotten some great information out of it through searching so I thank you very much for that. Currently though I have a C++ program I have to write for class that inputs the full name of the student, …

Member Avatar for alc6379
1
944
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
114
Member Avatar for crq

in working on this pgm, i have made notes to myself ... questions that keep popping up. if anyone wants to clarify some of these concepts for me .... 1. are TRUE and FALSE keywords? if a method says return (TRUE); will it work? 2. const on END of method …

Member Avatar for 1o0oBhP
0
153
Member Avatar for inderjeet singh

HI, I m using VC++ editor for C programming and i want to move cursor one row up in my terminal window. I have tried interrupt using Inline assembly but when i execute the programm Error comes "access voilation " . I m using Windows XP OS. What should should …

Member Avatar for 1o0oBhP
0
130
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
186
Member Avatar for seeplusplus

Hello, i have to write a program using C++ that will store 3 characters into 3 variables, and using pointers i have to rearrange the order in a function. so if c1, c2, c3 have the value 2,4,6....using pointers i have to switch the values of c1, c2, and c3 …

Member Avatar for Chainsaw
0
141

The End.