General C++ Programming - May 2008 (Page 2)

Finding a pixel on the sceen
 
How do i get my mouse to find a pixel and when it has been found the mouse left clicks? Can someone help me with this.
[4 replies] Last: Use SetCapture () to direct all mouse input to your window. When the ... (by Duthomhas)
sending linked list to function
 
Hi Guys, I was wondering how to send a class list<T> to a function. I have created a class Polynomial and am using this as the type of listT. I am trying to ...
[6 replies] Last: Have you declared Total() as a static function? I suspect that's the... (by bnbertha)
compare ip adresses
 
Hello, at first, sorry for my bad english. I need a good solution for comparing ip adresses. only c would be nice. but c++ is ok too. I have ips definied in ...
[3 replies] Last: ok i solved it: unsigned long ip2long(const char ip ) { struct... (by felix2005)
returning two ints from a function
 
I want to return two values from a function, I tried doing it like this: #include <iostream> int function() { return 1,2; }; int main() { in...
[6 replies] Last: "magic". You mean "torture". I hate working with Templates =\ Inherita... (by Zaita)
Quick Question
 
Hey, I wanted to create a function that returns a memory reference from an array. Just wondering if this is correct: Mail* getMessage() { return &mailbox...
[1 reply] : Only if your 'mailbox' array is not local to the function. (by Duthomhas)
urgent
 
hello everybody, can you help me writing this program Develop a system that inputs football match statistics. We will need to use arrays for this program...
[14 replies] Last: Please make the stated changes to ur code and check what Problems U r ... (by DiptenduDas)
how to upload a specifc file to an ftp
 
Hi I have two computers, one at work and one at home. The computer at work is doing some calculations and always outputs to a textfile. It's on 24 hours. So I...
[2 replies] Last: You may even find it quicker and easier to just schedule a batch/scrip... (by closed account z05DSL3A)
Domes
 
I have been sent the following code to generate geodesic domes. With my very limited knowledge of C++ i'm not sure how to assemble the builder, line and tri...
[1 reply] : Any chance you can post it using correct tags so it's easier to read a... (by Zaita)
what is the code?
 
what is the source code for the save confirmation prompt in a typing program? (i.e. "save before exiting")? And how do i make it open the save box?
[1 reply] : You will need to create a question dialog. Usually using the MessageB... (by Zaita)
Class owner
 
Hello, I have a problem with coding something on C++. It is a bit hard for me to explain the problem, using the technical language (simply because I am unsure ...
[2 replies] Last: Actually, my suggestion uses more complex code than you had in the fir... (by ropez)
INITIALISATION
 
why cant we initialise data members of class as shown. class items{ private: int x=10; // why is this step wrong int y; };
[1 reply] : It's only possible to initialize static, integral variables like that.... (by ropez)
problem with project
 
i have 3 files my class, implementation and main. when i compile i get an error msg about the #include "library.h" command in my implementation file "In fil...
[1 reply] : It's probably not something wrong with the way you included the file, ... (by ropez)
Important (MODE value)!!
 
HI How to find the most frequently value (mode) read from a file ? thanks,
[3 replies] Last: Your for() loops aren't quite right. You've read all the values into ... (by jsmith)
by xabnu
Speed, Inner Workings of switch()
 
I have always wondered, but never thought to ask, "Which is faster, a switch() or a series of if()-else if()'s?" So now I'm asking just that. And I am also inte...
[5 replies] Last: Yes. All a programmer can do is help the compiler to optimize, and fo... (by jsmith)
'for loop' for character in C++
 
Hello, Can you help me write code that can loop characters in series such as: First Second Third Fourth and so on... It has to be in a for loop o...
[2 replies] Last: try this first http://www.cplusplus.com/doc/tutorial/ntcs.html (by crayon66)
by gul
for loop flow problems
 
Hi, any one is there to help me. i have faced a new problem in for loop in Visual Studion 2005 with Visual C++ 2005 and Compiler version 8 i have these statem...
[1 reply] : There is nothing obvious in the code other than possibly the lack of a... (by bnbertha)
Need help with this c++ program!!
 
I should write another value-returning function, namely passOrNot of return type bool. It receives a symbol in a parameter of type char. If the symbol is eith...
[7 replies] Last: We need more good software aware people in management. Unfortunately,... (by bnbertha)
linked lists with dynamic arrays
 
i am making a library database which asks users to enter the book title, the number of authors and the names of those authors and this is the header file i came...
[7 replies] Last: @satm2008: You have a very good point. However, less experienced dev... (by bnbertha)
by doraid
magic square
 
please help me to solve this home work Write c++ program that prompts the user to enter numaric values for a 4X 4 array. the program will display the fllowi...
[1 reply] : Please don't spam. (by Duthomhas)
by Tarch
Typeof and pointer to templated functions/method
 
Hi all, someone knows why the following code: struct A { template <typename T> void foo() { } }; template <typename T> void bar...
[6 replies] Last: Some times we need to have a specialized templates within a specific s... (by satm2008)
May 2008 Pages: 1234... 8
  Archived months: [apr2008] [jun2008]

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