Beginners - July 2010

'Bitmap' was not declared in this scope
 
Hello, anyone know what is the header for Bitmap? When i try compile Bitmap myBitmap; i get the error: 'Bitmap' was not declared in this scope. Im ...
[16 replies] Last: Thanks a lot Athar. Im able to save the .bmp file now but i still have... (by temporaryavailable)
Game
 
So I have this project and im almost done, I just need help with a string. I have to create a hangman game and have the user input the word to guess....thats w...
[1 reply] : That's done by getline(cin,word); (by Athar)
error using random functions
 
Hello, I am trying to execute the following program and I get an error. The error says that 'main' must return 'int'. I tried adding return 0 both within the...
[2 replies] Last: thank you! I'm considering it - this is around the 10 mistake I have ... (by margiesam)
atoi issue, cannot get integer value for a character
 
I am hoping someone can help me. I am reading the book C++ Programming Fundamentals (CyberRookies) and I have encountered an issue and I can't figure it out! ...
[3 replies] Last: Hello PiMaster, Thank you for your response. I tried the program yo... (by margiesam)
by V0idZ3
C++ learning cd/ easier tutorial?
 
Hello cplusplus users. I'd like to start learning c++ programming language. I recently moved into the USA so my English fails and I also lack vocabulary so i...
[5 replies] Last: The http://www.cplusplus.com/doc/tutorial is great for beginners. It w... (by HooklessFastener)
by Morph
Web Programming with C++
 
Is it possible to do ? If it's possible how ?
[16 replies] Last: The documents are called the help/documentation and Google. Search for... (by Athar)
by ali1
covert between char* to cstring.
 
I have two problem in my app. fstream file; file.open(filePath.GetString()); file.seekp(0, ios::end); int length = file.tellp(); file.seekp(0,ios::...
[1 reply] : When you want to read strings, you should use >> operator, std::getlin... (by hamsterman)
Should a static object be dynamically allocated?
 
Example: namespace System { class Context { public: static Context* Create(){return new Context;} Program* GetProgram()const{return Program_Ptr;} ...
[1 reply] : If you want to destroy a dynamically allocated object, static or not, ... (by hamsterman)
double to CString with dynamic number of decimal digits
 
string.Format(_T("%5f"), number); I want to convert double-type value to CString, but the problem is that if value is 13, the CString will be "13.00000" (a...
[4 replies] Last: I don't use windows but I don't see why you can't do this: doub... (by Galik)
variable initialization
 
I've a doubt regarding the following syntex. int x(10); what the above line actually do.. does it just assign the value to x or anything else happens ...
[1 reply] : Does the same as int x=10; The above is not an assignment either, it ... (by Athar)
by takure
what are "+=" and "-=" ?
 
can anyone tell me what does "+=" or "-="mean? for example; int main() { int start,end; cout << "Enter the boundaries( start, end): "; cin >> start ...
[1 reply] : See: http://www.cplusplus.com/doc/tutorial/operators/ (by Athar)
New to the forum Math formula issue
 
Hi every one I'm new to this forum and would greatly appreciate some help with a formula. I am currently doing a class at home on c++. I have to write a prog...
[2 replies] Last: Also, it's supposed to be h*(2*r-3), not h(2*r-3). You can slightly im... (by helios)
by DKB
Mouse Clicking
 
Hey, so I just was making a program that basically makes the mouse click, cause i thought it would be cool to get a few thousand clicks on that facebook clickin...
[2 replies] Last: GetTickCount() returns the number of milliseconds the program has been... (by helios)
by Reguba
Various Questions
 
Hey there! And so begins my trek into the world of C++! I have become quite fluent in Java and have begun to pick up C++, it's moving along quickly but certa...
[7 replies] Last: Depends on whether you want to return dynamic objects that the caller ... (by helios)
Basic Encrypt/Decrypt of file: Having problems when EOF is encountered
 
My program is encrypting a text file that says the following: Two of the most important things in your LIFE right now are your HEALTH and yor EDUCATION. You...
[4 replies] Last: Hey thanks a lot ya i didnt realize that. Works perfectly. you the man... (by bradp33)
Exiting a while(cin>>..) loop
 
Hello everyone, I wrote the following code and can´t exit the while(cin>>buf) loop through the command prompt,I tried pressing the enter button but didn´t wor...
[1 reply] : That operator>>() overload only returns false when the user's input ca... (by helios)
Sorting Two Arrays
 
I am having issues with this program I've been working on. The program is supposed to take a menu item (up to 100 items) and number of calories from the user. ...
[2 replies] Last: Great, thanks for your help. I changed a few things (got rid of the d... (by slg5094)
Passing two vectors into a function??
 
These are the two vectors that hold derived objects from the base classes Alclass and Axclass. vector <Alclass> avector; vector <Axclass> xvector; If I ...
[4 replies] Last: No worries. Thanks. (by AlphaBravo)
by Mreza
currect code, wrong resault.
 
Hi! my name is reza. I write this code: //This program uses switch with char variable. #include <iostream> using namespace std; #include <conio.h> int m...
[1 reply] : Works fine for me... I'm using: Win7 Code::Blocks (IDE) BTW,... (by PiMaster)
Class inside another class
 
Guys, how can I instantiate a class inside another class? I tried the normal way and did not work. class listaSequencial { public: // Cri...
[10 replies] Last: Yes!!!!!! It works!!!!!!! Thank you very much!!!!!! (by brazyuri86)
July 2010 Pages: 123... 31
  Archived months: [jun2010] [aug2010]

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