General C++ Programming - April 2010 (Page 6)

take characters until 'enter' is pressed
 
HELLO!!! i am having trouble with char. i want to keep taking words until 'enter' is pressed. but my programme only takes one word and, whatever i type aft...
[no replies]
Simulate a clock
 
Write a program that simulates a clock. Your program should allow a user to set the time of the clock and then check whether the time set is a valid time. Assum...
[no replies]
Books about portable build systems?
 
People, in a need of a portable build system, which could also be used to cross-compile and test code on more than one compiler at once, I've came here to ask ...
[5 replies] Last: By writing "build system" I meant the software entity, which is in tot... (by KarlisRepsons)
by clio78
problems with looping
 
I have a c++ problem regarding looping. I am writing a program which will include a problem similar to below. 1) ok, i am writing a program that asks the us...
[2 replies] Last: thanks bazzy. sorry for double posting (by clio78)
Stacks with chars as pointers...a bit confused.
 
So I'm supposed to create a stack that checks to see if brackets are balanced; IE, {()} is balanced where as {(}) isn't. I've figured out the algorithm to check...
[4 replies] Last: Oops, that's what I meant. Thanks! (by Renascent)
Overwriting a specific entry in a file
 
I need some help overwriting a balance amount in two files, currently all I have it do is find the entry in the one file, read in all the information, and than ...
[1 reply] : The file is not a fixed-format file (meaning that each field may vary ... (by Duthomhas)
Error
 
i keep getting an error saying " fatal error C1075: end of file found before the left brace '{' was matched.
[1 reply] : decent formatting of your code would show the error: int inputFile... (by closed account z05DSL3A)
Calling a function with delay
 
Hi all, I have a function void CMaskCntl::getloc() which gets the location coordinates. I want to call this function again and again after a certain delay...
[1 reply] : #include <iostream> #include <ctime> void doSomething(); int... (by closed account 1yR4jE8b)
Where to find a task queue implemented by C++ for Open MPI ?
 
hi Where can I find the source code for a task queue implemented by C++ for Open MPI ? I search it online, but cannot find it. Any help is apprecia...
[no replies]
pow ambiguous call to overloaded function
 
I found this code for the non recursive implementation of towers of Hanoi. But when I compile the program, I get the error: "error C2668: 'pow' : ambiguous call...
[1 reply] : 1) pow() doesn't take 2 ints. It takes floats, doubles or long doubl... (by Disch)
by mdb
passing text from file and arranging in ascending order
 
Hi, I have some text in this file. data.txt ( i need to make courseName run in ascending order) maths abcd1244 A 3 english abcd1255 B 3 spanish abcd12...
[5 replies] Last: Man, forgot all about this thread as i was busy trying other methods a... (by mdb)
by CDS
Display function (1,2)
 
Hello there I'm new at creating and calling void functions and also the bool value. I have written this program to evaluate if a the user inputs a right triangl...
[20 replies] Last: Ok...will do, thanks again......see ya in the next program! :-) (by CDS)
by dkaip
How i can have global outputFile with local value?
 
Hello, i have fileforimport and outputFile globals, but the a must be local. Can it happend with some way? global char fileforimport ; locals sc...
[6 replies] Last: use variable static may be can help (by qabil)
Capture a still frame from a USB camera
 
Hello, my idea for a program is to use the user's USB web camera to take a picture and display it on the screen. What i have so far is: #include "SDL/SDL.h...
[no replies]
by AJM
Using GetFileSizeEX() and progress bars
 
Hi, I'm using the following code to get the file size in bytes of my 'in file'. I'm using GetFileSizeEX as I'd like to support files larger than 4GB: L...
[1 reply] : There isn't. A progress bar is a percent object. If you choose the ... (by Duthomhas)
c++ file read and write syntax
 
Can anyone help me with C++ syntax please. I need to read in a file created in Notepad with 25 rows On each row there is a mixture of 8 variables (strings, ...
[6 replies] Last: One or more of these ought to help. http://www.cplusplus.com/forum/ge... (by Duthomhas)
Assing value to object
 
Hi, could anyone provide me solution(modfication) in below program for compiling code #include<iosream> using name std; class test { public: in...
[7 replies] Last: hmm that's true anway thanks alll for quick help (by agoswami)
by Keaser
Don't understand this error message
 
My program compiles fine but when I run it I get this: Unhandled exception at 0x000000ff in mkeasal_proj6.exe: 0xC0000005: Access violation reading location 0x...
[2 replies] Last: Oh yeah, you're right. Thanks. Copy and paste isn't you're friend if... (by Keaser)
border test for simple battleship game
 
-having problems debugging border detection code -does not allow me to move at all when in any corner -when approaching regular borders, players will cross ov...
[1 reply] : For your border checking wouldn't you want to allow them to move to 0 ... (by zoerb)
How to design a console ?
 
I want a make a user-defined console in c++ which can accept user input and display something . I want to customize the console window size , test color , windo...
[8 replies] Last: Why, yes, I am. (by chrisname)
April 2010 Pages: 1... 45678... 24
  Archived months: [mar2010] [may2010]

This is an archived page. To post a new message, go to the current page.