Beginners - October 2011 (Page 7)

by ggg123
Guidance required in making a GUI ?
 
Hello, I have made a store inventory system in console in C++. I would like to know how can i convert it into full fledged graphical user interface. An...
[3 replies] Last: Start with this: http://www.winprog.org/tutorial/start.html Once the... (by JMJAtlanta)
Second Permutation algorithm
 
Hi all, I also have 3 other codes that I need a comment for them. I will post 2 others in other posts. Thanks #include "stdafx.h" #include <iostream> #in...
[no replies]
Generate Permutations algorithm
 
I have a code that generate permutations of n elements. I need a step by step commentation for this code. Can someone help me with this and tell me what kind of...
[no replies]
Mode Program Help.
 
I think everything is right but it is still not working. Wonder why. Here is my function. Help please. And I am not allowed to use pointer on this. SO just arra...
[11 replies] Last: i changed that as well thanks (by biplav17)
running program
 
I have trouble running this program. I get an error saying "end of file found before the left brace '{' " #include <iostream> using namespace std; int main...
[2 replies] Last: Yep, your "while" loop has braces, but your "main" function is missing... (by JMJAtlanta)
Merge_Sort complete version
 
#include <iostream> using namespace std; int a ; void merge(int,int,int); void merge_sort(int low,int high) { int mid; if(low<high) { mid=(low+hig...
[no replies]
by Bradd
while and if statements... not sure how to loop. If you could be of any help that would be amazing!
 
In this code I am trying to write a code that will count the number of 0's and the number of 1's from a ifstream... My result should look like this: Sample c...
[3 replies] Last: Thanks for sharing Azagaros. This was also my issue with my project bu... (by triciahope)
Error Message box
 
Any problem with this? #include <windows.h> using namespace std; int main() { int choice; LPCTSTR Caption = L"Application Programming Interface"; ...
[1 reply] : Delete lines 2, 3, and 4. In windows, WinMain() takes the place of mai... (by JMJAtlanta)
A book - is it any good?
 
I just borrowed a book about C++ from my local library. "C++ Primer Plus - Fifth edition" By Stephen Prata Anyone got any experience with this book? B...
[1 reply] : A great book, well organized in my opinion. Many hear say it is better... (by JMJAtlanta)
Compiling errors after declaring instance of class
 
Compiler: VC++ '08 OS: Windows 7 Starter Edition I am trying to create a sort of text RPG, but I haven't programmed in a few weeks, and am not sure why I get t...
[1 reply] : Class definitions must be terminated with a semicolon (line 23). (by JMJAtlanta)
Get Line
 
I want to read certain lines from a file, let's say the 4th and the 1st lines. First I used getline (which I read from here: http://www.cplusplus.com/forum/begi...
[3 replies] Last: Two ways: Close and reopen the file. Then read again. filein.close()... (by wolfgang)
declaring problem.
 
I am struggling with finishing this program. it says that "studentType" is not declared. well its suppose to be "studentType studentList". any help would be gre...
[11 replies] Last: In addition, it is better to use .h file like a reference and source..... (by behzadkh)
Visual Studio 2010 Error
 
Getting Error: Expression must have a (pointer-to-) function type. Its in the last function. #include <iostream> #include <fstream> using namespace std; ...
[2 replies] Last: when i put the semi colon after the c); i get another error at the fir... (by ant1989)
Prime Number Calculator
 
Hi! I'm having a bit of an issue with my prime number counter/calculator. #include <iostream> #include <cmath> #include <iomanip> using namespace s...
[1 reply] : Your isprime() has 2 problems: 1. The variable 'first' on line 12 is ... (by coder777)
Help with counter
 
So i've made a big function that will handle the main game mechanics. Lets say that the word is 'excellent'. Right now it will output: _ _ _ _ _ _ _ _ _ Guess...
[2 replies] Last: You need to turn the type 'found' int vector<int> on line 41 you can ... (by coder777)
Content of a vector
 
Lets say you have a vector holding chars, and you type in that char again. How do you check if the vector is already containing that char?
[1 reply] : std::find(v.begin(), v.end(), ch) != v.end() (by coder777)
setting a character array with spaces?
 
I'm reviewing for an exam tomorrow, and the old tests I've seen include the question: Given the following code, in a single line set my_string to have the va...
[3 replies] Last: thank you shacktar, strcpy is what they're asking for. been pulling my... (by Smooth23)
Simple 2D Graphics
 
Hi, I've been learning C++ for a little while now, making my own little programs and such, and I would like to add some graphics. The graphics only need t...
[3 replies] Last: Have you looked into Boorland Graphics? This is for drawing like you ... (by H4CK3R)
Cannot figure out, why this isn't running entirely.
 
It starts the program and it prints half of what it is supposed to and then stops and says windows cannot run it. Help. // Hero's Inventory // Demonstrat...
[6 replies] Last: And now that I look at the code in the book with where you identified ... (by Thaddeusmnky)
by gh24
Lpsolve Questions : anyone good with it?
 
Hey, I am struggling to use lpsolve dynamically. I have an input of length and size unknown. I know how to make lpsolve work with constant size and length ...
[no replies]
October 2011 Pages: 1... 56789... 59
  Archived months: [sep2011] [nov2011]

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