49,761 Topics

Member Avatar for
Member Avatar for Foxtildawn

I keep getting this error message and I cant figure out how to fix it. Im not sure whether I have been trying to fix it for to long or somehting that maybe im not seeing the problem: ItemType::ItemType' : error in function definition or declaration; function not called it …

Member Avatar for Narue
0
164
Member Avatar for compshooter

I have a couple of questions about the main function. Do you need to put the ; after the last }? Do you need to put a return statement before the last }? If so, what number do you put in the (), i.e. return (0), return (1), etc. What …

Member Avatar for vegaseat
0
151
Member Avatar for ap39769

I am a new member of the free Unix sdf.lonestar.org. I tried to compile and run a C++ program I wrote, but it would not let me compile. I wonder if it's because I haven't paid the $36. Arpa membership fee yet. Does anyone know if this is the problem??? …

Member Avatar for Narue
0
72
Member Avatar for steosaur(oWn)

i can't for the life of me figure out how to write int num; num = rand() %. ... i need a range of 0 to 1 I want to store either zero or one to num. That is my goal. plz help (i'm a noob obviously)

Member Avatar for steosaur(oWn)
0
81
Member Avatar for evilsilver

hey i am making a game and decided that i want to put a load/save option in it and was wondering if anyone here knew how to do this, (the program has to be able to close, open again and load the progress from before). I am running in windows …

Member Avatar for vegaseat
0
181
Member Avatar for pmorones

My homework assignment is to implement a class that represents a set of integers. Each set object may contain up to 100 integers. The main program will allow the user to create up to 10 different Set objects and perform actions on them. Actions such as return the interaction, union, …

Member Avatar for Fasola
0
170
Member Avatar for maizen

Okay, I'm trying to do my homework, but my code isn't doing what I want it to. What I'm trying to do is have the user enter a file name and then the program will output the number of words in the file. It works fine the first time through …

Member Avatar for Dave Sinkula
0
348
Member Avatar for hopeolicious

[CODE][#include <iostream.h> void initialize(int& coke, int& pepsi, int& dry, int& hires); void sales_type(char& sale_type, int& brand, int& quantity, int& coke, int& pepsi, int& dry, int& hires); //void clearline(); void purchased(int& brand, int& quantity, int& coke, int& pepsi, int& dry, int& hires); void sell(int& brand, int& quantity, int& coke, int& pepsi, …

Member Avatar for Narue
0
126
Member Avatar for flory

Hi, guys I needs someone to help me.I do have difficulties to understand functions in c++. If you can help with more tutorials.I will saved.. Please,even some good web sites where I can practice. Thanking you in advance

Member Avatar for Pmaster
1
195
Member Avatar for klmbrt

:?: I am attempting to write a C++ program that has the results of a T/F test. It takes the information from a data file and then it compares the students answers to the correct answers. I have two problems. First the data file has the first 8 characters as …

Member Avatar for Tight_Coder_Ex
1
103
Member Avatar for Dani

[b]Declaring Objects[/b] When one works with classes, each instance of the class which is defined is known as an object. C++ is an extremely object oriented language (perhaps not so much so as Java, however). In OOP, or Object Oriented Programming, one can easily perform multiple tasks on objects which …

Member Avatar for Pmaster
0
144
Member Avatar for computerages

Hello everyone! I am planning to build a database application for my school to maintain school lockers. However, I have a few questions regarding that application: [list=1] [*]Is it possible to use access databse with C++? [*]Is there anyway to authenicate a user with C++? [*]How shoud I go about …

Member Avatar for Narue
0
157
Member Avatar for chanz

[FONT=Comic Sans MS][SIZE=2][COLOR=Magenta]Write a program which reads a text from a file declared by the user. If the file does not exist a message should state this and the program should be terminated. If the file opens with success the program should read the text and then output the uppercase …

Member Avatar for BountyX
1
229
Member Avatar for TheWorld

hi all ;) i'm fairly new with c++ and i'm having some problems with a dynamic array of structures. I've declared the array with the syntax structname *pointername= new structname[3]. Now, if i try to assign to one of the structures members a value the compiler (visual c++ 2003) gives …

Member Avatar for Dave Sinkula
0
134
Member Avatar for Lapari

I am new to c++. May anyone please help me with what need to be done here? SetRate(RateType aRate) In the function, SetRate(RateType aRate), you need to set the tax rate (mRate)for the RateType being passed in. But what is the rate? For LiveInWorkIn - 1.6%, LiveOutWorkOut - 0%, LiveOutWorkIn …

0
71
Member Avatar for Tight_Coder_Ex

[b]kimfalk[/b] posed a question about static functions in a class in [url="http://www.daniweb.com/techtalkforums/thread19241.html"]http://www.daniweb.com/techtalkforums/thread19241.html[/url] to which my reponse was duly correct by [Quote=Narue]You're mixing up your statics. :) static is overloaded for too many different uses. In a class declaration, static means that the name belongs to the class and not to …

Member Avatar for Tight_Coder_Ex
0
129
Member Avatar for Cherrio

Can someone help me find the error that keeps this prg from running thanx [code] #include <iostream> #include <vector> using namespace std; int main() { vector<int>v(1,1); v.push_back(2);v.push_back(3);v.push_back(4); vector<int>::iterator i=v.begin(); vector<int>::iterator j=i+2;cout<<*j<<""; i+=3;cout<<*i<<""; j=i-1;cout<<*j<<""; j-=2; cout<<*j<<""; cout<<v[1]<<endl; //output 1 (j<i)?cout<<"j<i":cout<<"not(j<i)";cout<<endl; //output 2 (j>i)?cout<<"j>i":cout<<"not(j>i)";cout<<endl; //output 3 i=j; i<=J&&j<=i?cout<<"i and j equal":cout<<"i and …

Member Avatar for Cherrio
0
111
Member Avatar for Jaron

1)UNIX operating system uses [B]Round robin Time slicing with multilevel feed back.[/B] Assume that there are [B]10 processes [/B] waiting in a queue which is implemented as a [B]linked list of PCB’s [/B] ( process control blocks). Assume the PCB have information about [B]Process ID , CPU burst time required …

Member Avatar for Dave Sinkula
0
103
Member Avatar for KUJhawks

Hello everyone, I have just started learning C++ and I am trying to write a program that reads from a file (scores.txt) and then prints the average of these numbers to the screen and print to another file named "average.txt." I have written some code but when I compile I …

Member Avatar for Gnome_101
0
137
Member Avatar for Lorita

Hi, I need help changing this code to reference the variables rather than using the return statement. This is as far as I have gotten and my brain is mush...Please help. Thanks! #include <iostream.h> #include <conio.h> void main() { int numDrawers; int x=0; double total; //int getDrawers(); //int getWood(); double …

Member Avatar for compshooter
0
270
Member Avatar for jonnie83

This is my first attempt at creating a program and I am having great problems. The program is meant to scan a file and increment a counter if specific words are found. Can anyone let me know where I'm going wrong,Thanks #include <iostream> #include <fstream> #include <string> #include <iomanip> #include …

Member Avatar for Acidburn
0
131
Member Avatar for mattbros

On all software programmes whether trying to print images or documents or anything I get the message: Microsoft runtime error with programme.exe and abnormal program termination which then closes the programme I am working on. Can anyone help please......grateful again to you all Lee

Member Avatar for caperjack
0
32
Member Avatar for roeschh2

i am having a problem with a function i am writing that takes in a txt file and stores the data in 3 arrays. The data file is always rows containing three numbers such as 1 2 3 2 3 4 5 6 7 8 9 10 with each column …

Member Avatar for roeschh2
0
82
Member Avatar for apcxpc

Hi all. Here are two questions to begin with: 1. What is the difference between the C++ standard library, and the C++ standard template library? 2. You know how Java has the API & documentation info. for all classes available? Where can I find similar documentation for the C++ standard …

Member Avatar for Narue
0
97
Member Avatar for hopeolicious

I know everything that i want to do but i never did a menu before so i dont know how to go about doing so if at all possible can someone post a sample program that uses a menu-selection with subprograms for each. This here is something like what i …

Member Avatar for Narue
0
194
Member Avatar for Jaron

1)UNIX operating system uses Round robin Time slicing with multilevel feed back. Assume that there are 10 processes waiting in a queue which is implemented as a linked list of PCB’s ( process control blocks). Assume the PCB have information about Process ID , CPU burst time required , amount …

Member Avatar for Intel
0
422
Member Avatar for missy

#include <iostream> using namespace std; #include <string> #include<cstring> int main() { char list1[50][31],list2[50][31],list3[100][31]; int i, size1, size2, i1, i2, i3; char ch; int inf; ifstream indata; ofstream outdata; // read each list while(inf.peek()= EOF) { inf>> list1; i++; size 1=i; i=0; } while(inf.peek()= EOF) { inf>>list2; i++; } size 2=i; …

Member Avatar for Intel
0
165
Member Avatar for OurNation

I want to learn a good programing languge and was wondering if c or c++ is a good languge to learn I know HTML and some Java. :(

Member Avatar for frrossk
0
111
Member Avatar for os008

Hi, i want the best program to compare CPP files, i tried Araxis and Beyond Compare and ExamDiff, all compare good, BUT, the problem is that i want a program which compares the WHOLE file, then gives me the REAL differences, meaning ..., let's say there's a TEST1::TEST2 (int x) …

Member Avatar for os008
0
145
Member Avatar for Ian13

Im just beginning on C++, and one of the main problems that Ive encountered that I would like to get past is the fact that with simple programs you can only enter one thing, and after the code executed after that function is done, all you can do is press …

Member Avatar for Dave Sinkula
0
90

The End.