General C++ Programming - November 2012 (Page 32)

by Katson
How can i code this.
 
How do i write a program that prints textual equivalents of number in the range 0- 999
[4 replies] Last: We had a contest here a couple months ago for a problem similar to thi... (by ResidentBiscuit)
Getting my game loop to pause
 
I'm working on making a Simon game in Allegro. I'm trying to get the pattern to show on the screen in a constant rhythm (I want the color of the button to chang...
[3 replies] Last: Okay that was a mistake I made because I had to type everything in fro... (by Hurricane)
The superfast string array finding - Follow up!!!!!!!!!
 
Ok. Hi! I got an idea. It's superfast finding character method. Now this idea has come true. ...I'd like to hear some comments and opinions please... :) Fea...
[4 replies] Last: You can get clashes but it depends on the length of your key and how e... (by mik2718)
How to cast the the property of type class
 
I have similar thread earlier but this issue is bit different than the earlier one. So creating a new thread. So, from the code below, what I am trying to know...
[9 replies] Last: Thanks ne555! (by DeerPark)
Need help for how to check from txt file
 
Hello everyone I am really new to C++ and it would be great if you can give me some advice on how to check a username and a password from a txt file. I just sta...
[3 replies] Last: well i went a bit through it but still i am figuring it out. I need a ... (by Newbie20)
by bxdin
Writing insertion sort in an alternative way.
 
I was able to come up with a successful algorithm to sort a lnked list's index. void listSort(struct listNode *head) { struct listNode *i, ...
[4 replies] Last: The assignment requires the pre-existing nodes in the linked list to b... (by bxdin)
WHAT IS A COMMAND-LINE ARGUMENT?
 
Can somebody explain to me in lay-man's terms what a command line argument is and its use in a C++ program. For example the statement int main(argc, argv* ) i...
[11 replies] Last: Thank you very much to everybody who replied. Now I can safely say, I ... (by ayanda83)
HINDI IN ARRAY
 
how can HINDI be possibly used as an input to an ARRAY in dev c++ with the help of UNICODES? i tried to give input to the array with the help of a file but it o...
[7 replies] Last: your problem consists of two parts: character set and font. simple pr... (by coder777)
alias for a variable
 
Hi. What does it mean that &n is an alias for n? thanks in advance!
[1 reply] : An alias is another name for the exact same thing. I suspect this is r... (by Moschops)
error C2227
 
Hi this is my program and i do have error number C2227 andI don't know how to fix it thank you. private: System::Void button1_Click(System::Object^ sender, ...
[3 replies] Last: FYI - This is not C++, it's C++/CLI which is a Microsoft .NET language... (by Lodger)
by dalawh
Interrupts
 
Is there a way for me to allow two programs run concurrently? One program updates the text in a file every so often. The other program is suppose to print a ...
[6 replies] Last: Then sockets can be useful. (by majidkamali1370)
Linear Search
 
What is meant by linear search of an array ?
[3 replies] Last: thank yall for the answers :) (by kausthub96)
std::bad_alloc at memory location 0x0016ef74.. (1,2)
 
I am trying to create covariance matrix with 12 feature images. Below is my code: Feature() function will returns the 12 feature images. However, when t...
[20 replies] Last: I have solved the problem of the issue mentioned above. For those doin... (by Adeline)
by mdavis
Problems using public:static char
 
I just can't figure out what I'm doing wrong.I get a link error with this code: star.h const int ENTRY_SZ = 256; class Star { public: static char f...
[2 replies] Last: You rock. Thank you! (by mdavis)
by Reed07
Segfault from fprintf
 
I have a homework assignment that asks me to write a function that takes a FILE pointer named Log as one of its parameters. I have no access to the driver (just...
[5 replies] Last: If I could add my 1 cent worth: Fprintf return an int for the number ... (by TheIdeasMan)
How to create Property of another class
 
Hi, I have two class: Edge and Graph. Class Graph has one property of type Vector<Edge*>. But I am getting an error while Compiling. How do I resolve this. ...
[2 replies] Last: Thanks. Got it resolved. (by DeerPark)
n1, n2, n3, ... , n(nth).
 
Is there anyway in a while loop program that I can do a variable to the nth? For example main() { int num1,min,max; printf ("Signal t...
[1 reply] : http://www.cplusplus.com/doc/tutorial/arrays/ (by ne555)
What do I need to do in order to fix this infinite loop and get the expected outputs? (1,2)
 
Define a getScores() function with the specification and prototype shown below: // Get scores from console and return the number of scores recorded. // A ...
[23 replies] Last: @Jackson Marie (81) It's not about battling or fighting with each oth... (by TheIdeasMan)
picking apart a function pointer
 
Hi - I have been given a line of code that I know works, but I want to understand it better. Here's a snippet: int main() { int addr; // assume add...
[8 replies] Last: OK, then, I must not understand how the VTOR works. (No big surprise t... (by mzimmers)
expected primary-expression before '>=' token
 
Hello World, I am new to c++ and can you help me with this program. Is says that there needs to be a primary expression before '>=' token on line 21. I am usi...
[4 replies] Last: yeah i did that after i read about that. thanks (by closed account 18hRX9L8)
November 2012 Pages: 1... 3031323334... 51
  Archived months: [oct2012] [dec2012]

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