49,761 Topics

Member Avatar for
Member Avatar for program900

I am new to programming in DEV-C++ so I ran in to a few problems with my code, I am trying to create a number guessing game if you run my code its working well but I also need to have an option of "PLAY AGAIN" at the end which …

Member Avatar for WaltP
0
280
Member Avatar for NICEGUY123

I need some help, fairly new to C++ and I know a little about C. What i am trying to do is get a txt file that looks like this 4 //first number tells how many rows are coming next. 3 54 2 51 9 32 2 34 what i …

Member Avatar for vmanes
0
433
Member Avatar for FireSBurnsmuP

You see, I am writing a program that uses strings for input to determine things, and I don't want it to be case sensitive. So, I know you can go through a string and go char by char to store each char, [inlinecode]tolower()[/inlinecode]'d into another string while in a for …

Member Avatar for geinjo
0
2K
Member Avatar for pman182001

I need help with IT210 week 7 programming problems 1 and 2 pseudocode can any one give some advice?

Member Avatar for mrnutty
-1
81
Member Avatar for Phil++

Anyone know a decent one for Mac? I use Dev cpp atm at college but I'm a mac user at home and have no way of compiling the my projects. Any suggestions would be grateful, thanks

Member Avatar for jbennet
0
58
Member Avatar for sgour03

Hello, I am required to make an online airline reservation system using C++. What information do I need before starting with the project in terms of what I want to accomplish .

Member Avatar for vmanes
0
210
Member Avatar for jakethesnake86

I got the following code out of Carrano's Walls & Mirrors. I made a few changes but have tested it and it works. I'm really confused by line 19 in the .h file. Why is it structured like "void (*FunctionType)"? Why not (void*) FunctionType? or void* FunctionType? What is the …

Member Avatar for ross42111
0
131
Member Avatar for merse

In C++ we can define functions and their arguments can be not just variables, but functions also, for example: double Integral(double func(const double),const double a, const double b){...}; (without using any pointer) But can a function return with a function? like a differential operator?

Member Avatar for mrnutty
0
114
Member Avatar for Phil++

Right, so I'm trying to create like a login system and my overall goal is to do it in classes but for the meantime, I won't. So this is my main file: [code] #include <cstdlib> #include <iostream> #include "functions.h" using namespace std; void checkDetails(string user, string pass); string usernames[10]; string …

Member Avatar for vmanes
0
151
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
127
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
153
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
128
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
219
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
49
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
133
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
717
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
131
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
135
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
121
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
116
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
112
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
73
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
92
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
225
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
459
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

The End.