49,761 Topics

Member Avatar for
Member Avatar for TravisC555

[code]//Program adds, subtracts, multiplies, or divides any two numbers that the user enters. #include <iostream> using std::cout; using std::cin; using std::endl; int main() { char operation = ' '; int num1 = 0; int num2 = 0; int answer = 0; cout <<"Enter A (add) or S (subtract) or M …

Member Avatar for TravisC555
1
176
Member Avatar for meriem

Hi everyone, Can You please help me with the [B]Round-Robin scheduler [/B] [B]algorithm (C language)[/B] My program will use as a Datastructure a doubly linked list to hold processes( I will represent my process as: Id(char*), Priority(int) ( a process with priority n will have n CPU time slots) and …

Member Avatar for ~s.o.s~
1
350
Member Avatar for scootersays

In my SQL Users table each user has a unique ID and a unique Alias. I need to randomly pull Aliases from my User table and match them with a different users User ID in another table, the Activities table. The end result would be a random pairing of team …

Member Avatar for ~s.o.s~
0
119
Member Avatar for hoosier23

any idea what i am doing wrong? [quote] Error 3 error LNK2001: unresolved external symbol "private: static float SavingsAccount::annualInterestRate" (?annualInterestRate@SavingsAccount@@0MA) Savings.obj [/quote] SavingsAccount.h [code] #ifndef SAVINGSACCOUNT1_H #define SAVINGSACCOUNT1_H using namespace std; class SavingsAccount { private: static float annualInterestRate; float savingsBalance; public: SavingsAccount() { annualInterestRate = 0.03; savingsBalance= 2000; } float …

Member Avatar for Salem
1
183
Member Avatar for Fatshadow

Just wondering if anybody here has any experience of writing programs in C or C++ to use and manipulate the Master File Table, to restore previously deleted files?.....

Member Avatar for Salem
0
1K
Member Avatar for CurtisBridges

[COLOR=#000000]Need help creating this to these instructions, mainly with the part where I call an existing files that has already been created and saved in Notepad as attached.(File one and File two). Below are the directions and some code. I think you will be able to tell what I’m trying …

Member Avatar for CurtisBridges
0
98
Member Avatar for bajanstar

hi, can someone help me with writing down a recursive algorithm for traversing a binary tree in reverse-postorder that also returns the rank of each node? So far i have (and i know thatit isnt much but this problem giving me issues). [code] postorder: save current posistion if(lchild) move to …

Member Avatar for Rashakil Fol
1
95
Member Avatar for CurtisBridges

Hi everyone. Iam a beginning C++ student having trouble with a simple one column char. aray. what I'm trying to do is : display the value of the seventh element of chaacter array f. Wich shoud b 6 if a=0. Please help. Below is my code, so far: [[COLOR=#0000ff] #include[/COLOR][COLOR=#000000] …

Member Avatar for ~s.o.s~
1
1K
Member Avatar for hoosier23

This is a simple Rectangle calculator that uses classes. Ok, so I keep getting errors like. [quote] Error 1 error C2660: 'rectangle::getLength' : function does not take 0 arguments Error 2 error C2660: 'rectangle::getWidth' : function does not take 0 arguments Error 3 error C2660: 'rectangle::getLength' : function does not …

Member Avatar for hoosier23
0
365
Member Avatar for nanodano

Hi everyone, I have a simple setback in my program. I'm not the best way to go about doing this. I'm trying to do it in the simplest way possible. I have an input file that looks like this 2.5 600 -2 10 20 30 I want to sort each …

Member Avatar for WolfPack
0
100
Member Avatar for ToySoldier

Been working on this project for last 2 nights. Cant get rid of this error message on my [B]last method PAIR::area() [/B]. It's defined at the bottom of my program. Everything else compiles... builds... executes just fine. Rusty on the basics and trying to figure out methods.... here is my …

Member Avatar for ToySoldier
1
102
Member Avatar for sameer.mastek

I want to call a TCL script from a C++ code. Can anyone give me the suggestion to achieve so!

Member Avatar for Salem
1
211
Member Avatar for shailesh1064

Hi friends, I have a program written in c++. This program is working 100% but it accepts only keyinput and displays output on the screen. I want to modify this program such taht it takes the input from infile (input.txt) and send the output to (output.txt). Please help me to …

Member Avatar for ~s.o.s~
0
71
Member Avatar for Ajay Raj

Hi can anny one help me out optimizing the follwing issue: [COLOR=navy][COLOR=navy]A C++ class has the following member:[/COLOR][/COLOR] [COLOR=navy][COLOR=navy] int status_[75];[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]During performance analysis it was found out[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]that the class (its object) was performing unsatisfactorily[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]making it a necessary candidate for optimization.[/COLOR][/COLOR] [COLOR=navy][COLOR=navy]The following additional information was also found …

Member Avatar for andor
0
184
Member Avatar for Sashar400

[COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <iostream>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000]<iomanip>[/COLOR] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] <cmath>[/COLOR] [COLOR=#0000ff]using[/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] main()[/COLOR] { [COLOR=#0000ff]char[/COLOR] choice; [COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]int[/COLOR] arraysize=20; [COLOR=#0000ff]int[/COLOR] num[arraysize]; [COLOR=#0000ff]do [/COLOR]{ cout<<"I will give you the Sum,Mean,Var & the Std Dev of any series of numbers?Y/N:"<<endl; cin>>choice; [COLOR=#0000ff]if[/COLOR](choice =='Y'||choice =='y') { cout<<"How many numbers will you enter? (up to 20)?"; cin>>num[arraysize]; [COLOR=#0000ff]for[/COLOR] …

Member Avatar for rinoa04
1
190
Member Avatar for sameer.mastek

Hi I would like to know how could we communicate between VC++ and TCL. I've tried it using SWIG. that was call for C++ function by TCL. Can a C++ give a call to TCL module. What is the ICE? Is it related to C++ and TCL communication somehow?

Member Avatar for sameer.mastek
1
399
Member Avatar for seanlo

hi, In recently, I have a mission for porting a source code from Pro*C. And the database is changed from Oracle to Mysql. The part of original source code(Pro*C) is shown below: char i_id_no[13+1]; char accn_name[16+1], account[7+1], b_no[20+1], code_type[1]; int ii; : : EXEC SQL DECLARE cursor_1 CURSOR FOR SELECT …

Member Avatar for seanlo
1
525
Member Avatar for Zabby

Hi is there anyone willing enough to help me solve my problem. I'm using both Dev C++ 5 in windows and g++ in Linux to compile this code but was unable to do it successfully. Can any one help mi pliz [code] #include <cstdlib> #include <iostream> using namespace std; // …

Member Avatar for risby
0
147
Member Avatar for ToySoldier

Hi, Appreciate any help. My code compiles... builds.... executes just fine. Only problem I'm having is... I cant figure out how to get PAIR::big() to simply print out the larger #. When I execute... it displays... the Larger # like I want... but then for some reason it displays the …

Member Avatar for ToySoldier
1
144
Member Avatar for Sashar400

I have #include<iomanip> header also and it's still not working.I am getting 2 dec places but it's .00 Why is that?Please help. here is the code cout << showpoint << fixed << setprecision (2); cout<<"The Mean is "<<mean<<endl; also this code is not working ,when I use the [ ] …

Member Avatar for iamthwee
0
592
Member Avatar for n3st3d_l00p

[code] cin.ignore(); cout << "Enter lecture notes/tutorials location.\n"; cout << "e.g C:/Lecture Notes/lecture01.ppt"; cout << ">>>"; getline(cin,lectut_loca); cout << "Enter lecture notes/tutorials name: "; cout << "e.g lecture01.ppt"; cout << ">>>"; getline(cin,lectut_name); string copy = "copy"; copier = copy + " " + lectut_loca + " " + lectut_name; const …

Member Avatar for Salem
0
211
Member Avatar for mikeallen

I'm completely new to C++, and my teacher gave us a card game to do for our first assignment. The card game has to deal a hand of five cards and determine whether or not it contains a flush, a pair, a straight, three of a kind, or four of …

Member Avatar for mikeallen
1
495
Member Avatar for Akks_3

hi I have a Borland C++ 5.5 command compiler. I needed to plot a graph using a C++ program. However, I discovered that there were'nt any graphics library (pls correct me if I'am wrong). So I copied graphics.h and BGI files from a Turbo C++ compiler. But I can't still …

Member Avatar for alexwinger
0
2K
Member Avatar for matrimforever

Hi, I'm trying to write a program that computes interest and check fees and then prints a new calculated balance. So far it works okay, but seems like I have a lot of unnecessary work. Can someone help me simplify it down plz? ps: The premium acct has no check …

Member Avatar for ~s.o.s~
1
119
Member Avatar for compshooter

I am trying to grab an input file and outfile file from the user. I can grab the input file no problem, but Dev C++ just steps right over the following line... [code] cin.get(ofname, 150); //grab filename from user[/code] Here is some more of the code. Does anyone have any …

Member Avatar for compshooter
1
98
Member Avatar for Quan Chi2

I'm trying to use input from a text edit box to delete a file. The input from the textbox will be the file location and the delete button will use DeleteFile() to delete the file. [img]http://img436.imageshack.us/img436/5578/deleteboxvn0.png[/img] Do you know what I mean?

Member Avatar for Han1977
1
122
Member Avatar for herge

Hi All: I have downloaded C++ 2005 Express from Microsoft. I then run a date + time program, the compiler says the functions I am using are deprecated, and I should use localtime_s. So You go to Microsoft, search for localtime_s. You throw the example code into your compiler. Bingo …

Member Avatar for WolfPack
1
412
Member Avatar for RichC

I created a random number game where the user tries to guess the number using a while statement with three ifs in it for high low and correct number. but after the user guesses the the number it ends the while and the program. How can I make it so …

Member Avatar for RichC
1
126
Member Avatar for gampalu

Hi I'm using visual c++ express since yesterday and I have an error that visual c++ 6.0 didn't detect :p I think it can be some program configuration... :o [CODE] 1>------ Rebuild All started: Project: IUCUNN, Configuration: Debug Win32 ------ 1>Deleting intermediate and output files for project 'IUCUNN', configuration 'Debug|Win32' …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for darkeinjel04
Member Avatar for andor
0
104

The End.