48,985 Topics

Member Avatar for
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
156
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
226
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
131
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
69
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
109
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
102
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
267
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
119
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
80
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
96
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
188
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
421
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
164
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
88
Member Avatar for alsoagirl

I have read in problems "INFIX" AND CHANGED THEM TO "POSTFIX" or RPN notation, however i need to evaluate the problems and i can't get this to work. I am not sure where to go from the infix to postifix i have. Please help. My Stack.h is just a basic …

Member Avatar for alsoagirl
0
100
Member Avatar for tommy_tucker198

I have decieded to learn c++ just wondering what compilers you would all suggest? thanks

Member Avatar for alsoagirl
0
177
Member Avatar for blackdove

Can someone help me please? I've got 17 errors and 3 warnings. The main problem is that it keeps telling me that "Triangle" isn't a class name :confused: i'm so confused. Could you also help me with any other problems that you see? Thx in advance. (list of errors at …

Member Avatar for blackdove
0
221
Member Avatar for tonja1196

I am working on a lab and having trouble developing a class to run with the program. I have completed all the arithmetic for the program but not sure how to included the functions in with a "class". The instructions are to develope class called "rational"- and should contain the …

Member Avatar for prog-bman
-1
115
Member Avatar for tuskyballer

I'm about 3 weeks into my C++ class. I already made a simple program below that calculates grade averages and received an A. Now my teacher wants me to turn in three variations of it, replacing the goto with a while, do while, or for loop. I have experimented and …

Member Avatar for Stack Overflow
0
707
Member Avatar for nanodano

Hey guys, I am trying to write a section of a program that reads in data from a file and stores the data into an array. The problem is the length of the file can vary, and I need to know how many items to store in the array.(I really …

Member Avatar for Tight_Coder_Ex
0
96
Member Avatar for ohnbabygal

hi im tryin to read some info (both characters and integers) from an input file and save them into the sorted list. it is a big project and i cant put all the files i have over here. so i'll just put the part im having a problem. i have …

Member Avatar for Dave Sinkula
0
109
Member Avatar for seeplusplus

alright, here i have this code i wrote....but it tells me now i have to have a public member function that will add two rational numbers, and have the result be stored in reduced form.......hmmmmmm......heres my code: RATIONALL [code] #include <iostream> using std::cout; using std::cin; using std::endl; class rational { …

Member Avatar for Dave Sinkula
0
116
Member Avatar for Morinar

Okay, I need to read in a binary file from stdin and stick it in an array. The file contains binary representations of floating point numbers. I need to make sure that my array is sized properly based on the number of elements. It is quite easy to do with …

Member Avatar for Dave Sinkula
0
132
Member Avatar for cap2361

ok, help!!! I'm totally lost. I have to use a file stream program and add names to file, then keep count of file names, then display the count of names entered and the names entered. Use a loop to enter names until prompt to end. these are just two of …

Member Avatar for cap2361
0
145
Member Avatar for DaveSS

:?: Hi i am in my first C++ class and have already written two simple C++ programs. Im working on another using functions. I have to write 3 functions to calculate the area, cost, and retail price for wooden boxes and a main function to have the user input information …

Member Avatar for DaveSS
0
117
Member Avatar for Lapari

Hello, can anybody help me please? I am new to C++. I need help with assignment that calculate income tax. thank you. instruction: ******* 1.Set up a project called CTax. 2.Add to your project a class called GRTax. 3.The member variables for this class are: float mTaxableIncome, float mTaxRate, and …

Member Avatar for murschech
0
107

The End.