Beginners - June 2010 (Page 15)

Looping
 
I have an assignment to write a program asking the user to input 2 integers then output the addition of the integers from smallest to largest (eg, input 2 & 6, ...
[3 replies] Last: It seems to me that you are not very familiar with loops... Take a loo... (by m4ster r0shi)
by brama
console output formatting
 
I am sorry, but I need a quick help what would be analog to this function in C to C++ printf("%5d", var) cout << var ????????? but how to format it to t...
[10 replies] Last: - having to parse a format string That's not such a big problem. Alt... (by helios)
by Gio
Else + If problems
 
I am making a basic calculator to help me laern the basics of C++. However, I get the message c:\documents and settings\gio\my documents\c++ programs\text ga...
[4 replies] Last: Eventhough other people have already helped you, you could also make a... (by kaduuk)
variable-named arrays
 
Hi! I have a problem with homework. I need to create an array for each letter from a to z. I tried to do that with loop. Looks something like that. for (char...
[4 replies] Last: Got it, great solution, thanks (by player09)
by xyzt
Accessing protected members of template base class
 
I have a problem with template class inheritance. I have a base template class and a deriving class from the base class. I can not access the protected member o...
[4 replies] Last: magnificence, I use g++ 4.4.2 js.mith, yes it solved the problem. Th... (by xyzt)
by svexo
fatal error LNK1120: 2 unresolved externals
 
Hello , Ive made a litle program with the process class but can't solve the following erros : Error 1 error LNK2028: unresolved token (0A000007) "int __cd...
[2 replies] Last: So you're mixing managed and native code? Ummmm...I've never seen c... (by svexo)
c++ push_back doesn't work as it is supposed
 
I have a class symbol_table that has a vector of objects of another class row_st.also I have an enter method where inserts objects of row_st with a passed name ...
[no replies]
by Kamo
Writing programs that interact with other programs...
 
I'm relatively new to programming and have always had an interest in finding out how to write programs that interact with other programs, particularly on Window...
[no replies]
by SoloXX
Classes: duplicated outputs & an uncertain function?
 
Hi all again, I'm now in my 3rd week of my C++ course and I have a few little issues I need explained to me. The Hangman game in question is NOT supposed to ...
[10 replies] Last: Hey m4ster r0shi....your suggestion worked. My showHiScore(1000) displ... (by SoloXX)
by mjking
Changing the value of a char array in another function
 
I'm having some problems with pointers. Help would be much appreciated. I'm trying to change the value of a character array inside a function. My code is spl...
[5 replies] Last: Thankyou very much. That's really helpful. (by mjking)
Problem with Pointer
 
Hello, I'm writing a simple programm that calculates the distance between two points and the length of the line connecting several points. #include <iostre...
[5 replies] Last: You probably forgot to qualify the names in your function definitions. (by filipe)
by Citis
linking error in glut.h
 
I tried to compile the following code: #include <GL/gl.h> #include <GL/glut.h> void display() { glClear(GL_COLOR_BUFFER_BIT); glFlush(); } ...
[6 replies] Last: Thank you, I found the field and added the -lglut-lGLU-lGL but still... (by Citis)
Code Blocks
 
I'm trying to compile and run my codes using code blocks but a message suddenly appeared. It states that " ENCODING CHANGED. The saved document contained charac...
[6 replies] Last: By the way,--- Code::Blocks 10.05 released. I'm not informed about th... (by mainframe639)
Programming Buttons
 
I would like to create a calculator program in Visual C++ that has 4 radio buttons for each of the 4 operations, 2 text boxes to input 2 numbers the user wants ...
[1 reply] : With Visual C++, you can create a Windows Forms application that can d... (by sammy34)
Getting the actual stored values out of arrays
 
Hi, I've been trying to fill up an array and then get the values back out later in the same method but can't get anything other than memory addresses (my deb...
[5 replies] Last: The error _was_ elsewhere in the code -- thanks all! (by captainclogs)
console game
 
Hey i'm new in c++ and i have this simple console game. In which i can't make the bot move, when i'm not moving. #include <iostream> using namespace std; #...
[3 replies] Last: The console is a terrible medium for games. Getting this to work how ... (by Disch)
Read, Resize and Write Image
 
Hello, My task is to read an image (with any kind of format), resize it and write it back to the disk (with a specific format, such as BitMap) without using ...
[10 replies] Last: It seems to me like that up till now since it will take me longer time... (by materithe)
by r3n311
DevC++ avast virus!!!
 
whats with this simple makes a virus?? OMG im a malware progammer!! #include <iostream> using namespace std; enum lol {x,y,z}; int main() { ...
[3 replies] Last: http://www.cplusplus.com/forum/articles/7312/ (by Duthomhas)
by r3n311
getting the size of string
 
this is my second day learning C++ so i dunno exactly what im doin, i wnated to create a program that lets you enter a name and if the name youve entered is ...
[7 replies] Last: thanks jecaestez, ive tried length() and it seems dont work if you don... (by r3n311)
by column
myDll.dll + myDll.h - is it enough?
 
Hello, I have "hello world" application that uses simple function from dll I have compiled (myDll). Is it enoug to have just myDll.dll and myDll.h to compi...
[no replies]
June 2010 Pages: 1... 1314151617... 26
  Archived months: [may2010] [jul2010]

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