51,593 Topics

Member Avatar for
Member Avatar for krankzinnig

Hello, I am writing an OOP wrapper for the SDL libraries and am coming across an issue. I am trying to make a GLUT like call back system for the render loop and etc and getting strange results. Here is my code for my draw function that uses the call …

0
46
Member Avatar for daviddoria

With this code: [url]http://www.rpi.edu/~doriad/Daniweb/maxflow/[/url] If I run [code] g++ Example.cpp graph.cpp [/code] with g++ 3.3, everything works fine. However if I run the same command with g++ 4.4, I get this error: [code] Example.cpp:(.text+0x38): undefined reference to `Graph<int, int, int>::Graph(int, int, void (*)(char*))' [/code] Does anyone know how I can …

Member Avatar for StuXYZ
0
132
Member Avatar for shashanderson

STAFF PERSONNEL SYSTEM required to develop a Win32 console application to enter, search, edit and view personnel information of the staff in the company based on different access priority. This application will be used by the Human Resource personnel, staff and the administrator of this application. The main purpose of …

Member Avatar for Phil++
-1
155
Member Avatar for shashanderson

STAFF PERSONNEL SYSTEM required to develop a Win32 console application to enter, search, edit and view personnel information of the staff in the company based on different access priority. This application will be used by the Human Resource personnel, staff and the administrator of this application. The main purpose of …

Member Avatar for Phil++
-5
129
Member Avatar for Jalwes

Hi all. I have an assignment for class (obviously I am new to this), that requires us to read from a file and then print out the first 22 characters from each line within that file. I have tried using getline and get, but can't seem to get it to …

Member Avatar for csurfer
0
266
Member Avatar for willgr

Hello, I have the following code in c++. [ Windows Vista / Visual C++ 2008 ] It works fine if you pass 5 links in the "multiq" at first. If you pass any more than that it works fine again (populating the map "buffer" correctly) but then it crashes right …

0
52
Member Avatar for ENCHTERP

Hello: Is it possible to declare a variable with multiple data types. for example in my program I would like to declare my variable as int or char depending on the situation the variable is in as an example. declare variable C int K =cin(); if( K ==4) C = …

Member Avatar for ENCHTERP
0
3K
Member Avatar for Saadulla

Hello everybody, I wanna help to writing this program. Q/ Write Prog. that generates Random Binary sequenced by Using shiftRegister o f Length (10). thnx 4 Help

Member Avatar for Saadulla
0
136
Member Avatar for valkerye

I'm having a bit of an issue with a while loop in a program I'm working on. I am attempting to use a while-eof loop to read float numbers from and input file and simply rewrite those files to a created output file. My issue is that the while loop …

Member Avatar for VernonDozier
0
734
Member Avatar for new programer

Howdy Folks! I've been asked to write a program that reads in an interger N and calculates The factorial ... I wrote this yesterday but it does not seem to work .. here's the code : [CODE] #include <iostream> using namespace std; int main() { int i=0; int s=1; int …

Member Avatar for warbird43
0
135
Member Avatar for jack c++

what does: "expected init-declarator before "int" "expected ','or';' before "int" "expected constructor, destructor or type conversion before'=' token" "expected unqualified-id before '=' token" mean? what do all these compile errors mean? this is my code with most errors. [CODE]int x; ,x = 153; [/CODE]

Member Avatar for jonsca
0
137
Member Avatar for mayanktalwar

[CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); int k=0; int x; cout<<"input the no whose no of zeroes is to be calulated at the end in its factorial"; cin>>x; for(int i=1;i<=x;i++) { while(i%5==0) { k++; } } cout<<k; getch(); } [/CODE] hey in the above code it does not give compilation …

Member Avatar for warbird43
0
123
Member Avatar for ross42111

[QUOTE]I have put in all the bool operators - If the user inputs and invalid letter the while loop is supposed to ask the user to try again until a correct letter is entered. I have programmed using a while loop, switch statement and char at the same time. If …

Member Avatar for VernonDozier
0
119
Member Avatar for paruse

How to change the color and size of output in C++? How to Draw columns? I'm a beginner... Pls help...

Member Avatar for warbird43
0
117
Member Avatar for zumair

why float and int data types have different size ranges while they both need same number of bytes?

Member Avatar for warbird43
0
74
Member Avatar for warbird43
Member Avatar for Lukezzz

I am trying to Convert this Long String to an integer but when running the code, I get an error that tells that the inputstring is in an incorrect format. How can I convert this string so I will get the ouput integer: 41517 ? [code] String^ ba = "41516.7095211088"; …

Member Avatar for Lukezzz
0
96
Member Avatar for ging ging

Write a program that will allow randomized 0..100 numbers and the 15 generated numbers will serve as the input to ur binary search tree. The program should then print out the contents of your BST using preorder, inorder, and postorder traversals, store the result in the text file ( bst.txt)Recall …

Member Avatar for Agni
0
135
Member Avatar for Web_Sailor

suppose I have a file like below and I would like to create 3 output files based on my first field .. .i.e, 1 /2/3. Thats means 3 lines will go to the three files [CODE] 1 AAAAAA BBBBBB CCCCC 2 DDDDDD EEEEEE FFFFF 3 GGGGGG HHHHHH IIIII 2 copy …

Member Avatar for csurfer
0
230
Member Avatar for javamum

can someone please help me?! I have been working on this C++ project forever and I can't seem to get it. I am trying to write a program that will find the root of the following equation using the bisection method: x(1 + [summation from 1 to M of (Kj*Nj)/(1 …

Member Avatar for Amponsah
0
463
Member Avatar for ge6a93

Hello i want to code a bouncing ball which bounces when touches the end of the screen sides. I'm using VC++ 6.0. Thanks in advance for your help.

Member Avatar for Campbel
-1
76
Member Avatar for vegaseat

Python has some powerful functions, like the math expression evaluator eval(). You can embed this function and others in your Development C++ code. All you need to do, is to download and install the free Python Development Pak and feed the Python code in the form of a string to …

Member Avatar for Shantha.D
1
5K
Member Avatar for SFletch

I've written a small web db app, designed to sit within another page (in an iframe). It is designed to be called with a parameter (or two). iframe html calls Default.aspx?Parameter=4 The default page does nothing except check for the existance of the parameter and store it a session state …

Member Avatar for kvprajapati
0
135
Member Avatar for nirveshverma
Member Avatar for program900

can any one solve this, i tried no idea A function called “menu” that displays a main menu. This function should return the choice of the user.

Member Avatar for vmanes
-2
99
Member Avatar for Web_Sailor

Hi I was trying to do a type checking in my input file while reading it. I am getting some compile time errors. Compile time error report is :- [CODE]NEW.cpp:26: error: invalid conversion from ‘char*’ to ‘int’ NEW.cpp:26: error: initializing argument 1 of ‘int isdigit(int)’ [/CODE] [CODE] Line 26 is …

Member Avatar for Web_Sailor
0
238
Member Avatar for jeyson

a program that will ask a location and selete the item in that location[code][/code]

-3
61
Member Avatar for Web_Sailor

Hi, I was wondering if there is any way to get the largest size of a multimap key / value. I mean something like this:- if there are 4 values in a multimap:- [CODE] my name is web_sailor [/CODE] Suppose I want to get the maximum size key / value. …

Member Avatar for Web_Sailor
1
1K
Member Avatar for hongfan

Hello! Say I have an array called BBag[3], how would I write a function void remove(int val) that removes an occurence of val in BBag? thanks! Hong

Member Avatar for jeyson
0
525
Member Avatar for ging-ging

Correct any Error.... This is the code given to us by our teacher... help me add some code... or delete unnecessary code... coz u see when u compile it.... heres the output : [B]Input choice 'b' to break: [/B] It is success, but the real goal here is the AVL …

-1
52
Member Avatar for punchinello

What does "container " refer to when talking about such programming languages like C++? Thank you very much!

Member Avatar for punchinello
-1
60
Member Avatar for ENCHTERP

Hello what would be the best way to return a pair<> via a structure Let me further explain. Below is the type of struct that I want to use: //compass.h struct Compass { pair<int, int> C; pair<int, int> E; pair<int, int> W; pair<int, int> NE; pair<int, int> NW; pair<int, int> …

Member Avatar for ENCHTERP
0
97
Member Avatar for thisisanfield.1

[CODE]430850 First Name Last Name 8 GHZ 1950 YFD 2400 LUO 1950 GXV 350 KKH 1550 IDU 1000 EWT 350 UJU 1100 47760 First Name Last Name 5 ZCW 1850 KQY 1050 EWM 300 MFG 2050 OLW 1200 [/CODE] Here is an example from the input file. The first number …

Member Avatar for Ancient Dragon
0
94
Member Avatar for kustrle

1st question: What is Rich Text Box exactly used for? 2nd question: How to make it have transparent background? I actually composed a window forms application in VC and added Rich Text Box it into it. When I try to change background color (I open color list from Properties and …

Member Avatar for ImMoRtAl-
0
93
Member Avatar for Ponomous

Hey, i am trying to write a program that will evaluate n!/(k!(n-k)!) right now i am just trying to get the basic formula without the factorials to work ( i can just do a function call later and get the actual values) but no luck. all the variables have values …

Member Avatar for Ponomous
0
149
Member Avatar for sparksterz

Ok this is driving me nuts. I'm working in C++ and trying to delete an element from a vector It's going something like this (dirPath is a stack of directories, and dirPtrs the list of what a directory points to) [CODE] for(int i = 0; i < dirPath.top().dirPtrs.capacity(); i++) { …

Member Avatar for sparksterz
0
367
Member Avatar for yuha

I am working on displaying student name, test score, average marks and grade as an output. This is what I have been working on, but still I couldn't manage to display the output.. The input must be get from the user and, which is the student name and the test …

Member Avatar for csurfer
0
150
Member Avatar for carrese04

my teacher told us to "make a program that will print the first 10 consecutive numbers starting from 1 using the while and do" but i don't know how to do, i hope you can help me guys, thanks

Member Avatar for Gaiety
0
123
Member Avatar for calypso&noname

Hi again and thanks for the help! PROBLEM: Only every other number entered by the user is registered by my program, except the last number, which is always registered. [B]How can I get the program to register every line? And what is causing it to skip an input line in …

Member Avatar for drjay1627
1
158
Member Avatar for Jo@n

Hello, I found a dll of gmp at [url]http://www.cs.nyu.edu/exact/core/gmp/[/url] and want to use this in borland C++ builder 6. But it doesn't work. Can anybody help me? How can i use this dll in borland?

Member Avatar for JPerez45
0
219
Member Avatar for Muneeb49

Help me out , This code only print First part till white Space For example if i give Input "Jhon Kane" the it only prints "jhon" kindly help me with some code which print the whole Name[code]#include<iostream.h> #include<stdlib.h> #include<conio.h> main() { char *c; c=new char[20]; cout<<"please Enetr the string :"; …

Member Avatar for mrnutty
0
102
Member Avatar for daviddoria

I have written an integration function (of one variable) [code] double integrate(double (*f)(double), const double a, const double b) [/code] However, now I want to integrate a function of one variable, but the c++ function has an additional parameter: [code] double f(double x, bool flag) { if(flag == true) f …

Member Avatar for mrnutty
0
280
Member Avatar for gottlieb78

Hi Once again a newbie posting the same homework assignment! I´ve searched alot for this problem but I´m probably not good enough in searching because I just can´t figure this out. My main problem now is to insert the airplane layout into the 2D array. I was trying to do …

Member Avatar for ImMoRtAl-
0
876
Member Avatar for rasheed1982
Member Avatar for debasishgang7

hey all.... I already know C++.But now i want to make some GUI based application(like calculator....etc) with C++. I have decided to do that with c++ bcoz i think,application(.exe ) made by c++ is the one one which can be run without any kind of frame work installed in computer.(Example...VB.Net …

Member Avatar for Ancient Dragon
0
156
Member Avatar for RohitSahni

Hi All, I am writing a code in C++ to implement Login screen which will accept user name and password from the user. Now my main concern is to hide that password to be sceen by the user. suppose my password is "Rat420" so at the time of typing anything …

Member Avatar for shashanderson
0
241
Member Avatar for Neeraj Ranjan

Hi,,,,,, Anybody can help me i need library management code in c++ or better say i have to submit as assignment so plz help me.

Member Avatar for csurfer
-3
58
Member Avatar for Baseball400

Hey guys I'm new to C++ and our teacher I guess expects us to know what were doing and we don't so we have to make a program that Input the following: Product Description: String Variable Wholesale Cost: 2 decimal positions Quantity Ordered: whole number Packaged: C for a case, …

Member Avatar for Grn Xtrm
-1
111
Member Avatar for Rugged

So I'm in third year Physics and I'm down to do a project in C++ in a few weeks. I've got a weak background in the subject (mostly limited to simple calculations, can't do images or user interaction appart from cin, much to my dismay >.<) but I'm going to …

1
44
Member Avatar for kushbhatta

dear friends, i am a beginenr in visual c++. for the sake of my project i need to learn visual c++ graphical application part. what actually i require is to make a track (say like eight) to move a object/car. the car should be controlled using the keyboard up-down keys. …

Member Avatar for kushbhatta
-1
109

The End.