Beginners - July 2011 (Page 39)

Help required in forming a binary sequence
 
Hello, The overall concept on this piece of code is to transmit a message that comprises words (decimal numbers with a range -127 to 128). To do this, I need...
[2 replies] Last: Hello Turbine, I'd be grateful if you could elaborate a bit more on... (by anthony1947)
VC++ 10 Ignoring preprocessor directives
 
Hi, I'm having some issues probably because of my lack of experience but I can't see it through. This code has to be with OpenGL and I'm using Visual Visual C...
[4 replies] Last: @Framework It's more like: Header_C.h int my_var = 0; Sourc... (by khanser)
by Gene
Putting a Pair of Chars into a Vector
 
Hello, I have this piece of code here for (int i = 0; i < num_genes; i++) { cout << "Reading Gene Description For Gene " << i+1 << "..." << endl; ...
[4 replies] Last: Problem Solved, just changed the char to a string (by Gene)
end program (loops)
 
I am adding the final touch to this assignment where I have to end a program after 3 invalid password tries. I have it so you only get three tries, but it still...
[6 replies] Last: its so that if it doesnt return 1, it returns something, such as 0. if... (by dong shi)
Button event
 
How to do a button event? I want to have a program that presses a button repetedly for example: when i fire up the program it should spam 1 key like "E" over ...
[3 replies] Last: oh, heres a thread simular to yours: http://www.cplusplus.com/forum/un... (by dong shi)
by Justin
Noob question...
 
I need an explantion of how, bool works, or when to use it...
[7 replies] Last: its a operator that equals the oppisite of the true or false value so... (by dong shi)
by alhanz
Removing a specific text from a textfile
 
Problem Solved Thx!!
[4 replies] Last: Bump (by alhanz)
Closing program when user inputs wrong data
 
Hi, this is my first post here so if I make some mistake feel free to let me know. I'm in the process of working through a beginners C++ book ("I've had one cla...
[4 replies] Last: Oh yea, stupid me i just used && for my allegro code :3 (by closed account GbX36Up4)
by wtf
How would you define integer cotantiation?
 
when 1 of the integers (primarily the one to be 'added') is negative? The following code works for positive intergers but not for negative integers. (Not only ...
[5 replies] Last: I don't know how I made that mistake, fixed now. Agreed, concatenat... (by Turbine)
math calculations and variables
 
A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charg...
[7 replies] Last: This maybe one issue. You have said this int paintPerGallon will ta... (by Turbine)
problem with functions
 
I am writing a program to run a tictactoe game but cant seem to figure this out having trouble with my occupysquare function and the other two being illegal w...
[1 reply] : I am unfamiliar with this. enum CheckForWinner { WIN }; char TicTa... (by Turbine)
HELP PLEASE: Program involving input/output file streams
 
My program is supposed to take input from a file and output it to another file. The input file should be in a format like this: first_name1 last_name1 score1...
[3 replies] Last: You could replace the following code, with what is below. I only di... (by binarybob350)
by lcam2
strings
 
Write a C++ program tha tcreates studnet grade reports. student Name : Student Id Number: __________________________________________ course code cours...
[3 replies] Last: Hi guys, thanks for your suggestions. I've been working on the code a... (by lcam2)
how to apply array correctly?
 
Hi, I would like to ask something about multi-dimensional array. Recently i got an assignment that request me to write a program for airplane ticket reservation...
[3 replies] Last: You need to initialize each char in availability to '*' in your first ... (by binarybob350)
Problem with string variable in a class
 
I'm trying to declare a string variable as a private class variable. However, when I compile, I get " 'string' does not name a type in function int main() ". ...
[8 replies] Last: Neither am I. If you find anything on the reasons why, leave it here ... (by eidge)
Reading txt file and processing txt
 
I'm trying to write a program that opens a txt file if it exists and reads user information from there within. Now this requires me to read individual lines the...
[1 reply] : If all the data for each staff member consists of the same thinge E.g... (by Turbine)
C++ Help
 
I am having some difficulty with this. Here is what I got so far: // DaysOfTheWeek.cpp : main project file. #include <iostream> #include <string> using n...
[2 replies] Last: Yeah, I can't see what your trying to do with setDay(), it just doesn'... (by Turbine)
Is there a way to do something like this? (initialising pointers)
 
class someclass{ private: int x; public: someclass(int x1); }; someclass::someclass(int x1):x(x1){ } int main(){ int x; someclass *a; if( x < 0) a = new ...
[3 replies] Last: Sick yes it does sorry to have wasted your time. (by chr15chr15)
by Alexlf
cout causing functions to inexplicably fail
 
I'm trying to make a simple program to read back a large number of files and parse the data. To help me I've created a few functions that I can call to speed up...
[4 replies] Last: Ah, thank you very much! I'd never heard of reinterpret_cast before. N... (by Alexlf)
checking available values for sudoku
 
I'm making a program to play sudoku. I just wanted to know if there was a more efficient way to check if the value the user inputs in a square is a valid value....
[1 reply] : Any way you do it, you'll still need to check rows, columns and a squa... (by hamsterman)
July 2011 Pages: 1... 3738394041... 54
  Archived months: [jun2011] [aug2011]

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