General C++ Programming - December 2010 (Page 9)

by akramm
I need source
 
I want a source of anything to create a program and thnx very much
[2 replies] Last: http://sourceforge.net/ have fun. (by hamsterman)
by Lane
operators in class vectors
 
Hi guys, if i have a class declaration that looks like class Vector { int ndim; double* data; public: Vector( int n, double d ); ...
[3 replies] Last: Thanks hamsterman. I have now cracked it. cool !! (by Lane)
Best Free Cross-Platform, GUI-Toolkit?
 
Greetings! What's the best cross-platform GUI-Toolkit? There seem to be a large range of toolkits available, [see http://www.atai.org/guitool/], and sin...
[1 reply] : Well, as the site says Qt is 'best'. I don't know about static linkin... (by hamsterman)
Arguments from shell to main.cpp
 
Hello everybody. I have a problem how to handle three arguments giving to main(int argc, char **argv). I have to implement a programm that receives first a d...
[1 reply] : In that example, you'll get: argc == 4 argv = execute argv = ./fi... (by kbw)
Palindromic number test
 
Hello, I'm looking for a way to determine whether a number is palindromic (reads the same both ways; 9009; 101; 1001;) or not. I feel like I can do this using a...
[16 replies] Last: [quote=RAWBERRY]error: invalid conversion from 'int' to 'int*' (Not ev... (by coder777)
i want to plot a graph..is there a free library?
 
i search for a free library to plot a graph of 5 sets of two vectors how can i do that?? for example the first vector of the first set {0.2 0.4 0.6 0.8} se...
[no replies]
Signal Close.
 
O.S.: Windows 7 Language: C Hiho!. How I can know when my app recive a KILL or CLOSE signal in Windows? How I can manage this? I have data on a buffer...
[3 replies] Last: if it is a console process you could look at: #define WIN32_LEAN_A... (by closed account z05DSL3A)
-----restaurant menu-----
 
i want to make a restaurant menu. The following code are listed below. #include <stdio.h> #include <afxcoll.h> #include <malloc.h> typedef struct { ...
[1 reply] : i want to make a restaurant menu. The following code are listed below... (by coder777)
Can't figure out what wrong, new to C++
 
#include <iostream> using namespace std; void centimize(double*); //prototype void main() { double var=10.0; //declaration and initialization cout<<en...
[5 replies] Last: You should multiply by 2.54 not 2.45. (by kbw)
Problem in SMTP
 
Hey guis, i found this code on internet and it is crashing. Some one know why? #include <stdio.h> #include <io.h> #include <stdio.h> #define WIN32 /*...
[4 replies] Last: This very old library has an SMTP send function that deals with attach... (by kbw)
about vector
 
excuse me mabe this question is stupid!!!! is vector depend on special os, i have a project for my callage term that our team must write a bit os. i want use...
[1 reply] : is vector depend on special os std::vector is part of the standard C+... (by kbw)
Windows Threading & Exceptions
 
I have a couple threads running. Each thread is passed a pointer to an object - in fact it is one thread per object. The thread then loops - calling a public me...
[2 replies] Last: Are you running under cygwin? Is it similar to this (which wasn't ans... (by kbw)
weird bug
 
I have a small section of code that wasn't working properly, so I used "cout" to display some of the variables, to see what was going on, and it started working...
[4 replies] Last: The cout line most likely called a function using parameters that happ... (by rocketboy9000)
Copy Constructor auto used in a spot where it shouldn't
 
My copy constructor works in a a spot which it shouldn't... The reason it shouldn't be used there is because in that spot the copy constructor does something (...
[2 replies] Last: Vector Vector :: operator= (Vector Num) { if (Num.VectorSize != V... (by naraku9333)
Algorithm
 
Can anybody please tell me the best algorithm to print the common elements between two arrays which are very large...i just need the algorithm not the code..I d...
[2 replies] Last: Thank you very much..and sorry for repeat posting...will see to it tha... (by vinaynaikwad)
Loading BMPs
 
I'm trying to edit my BMP loader function to make it load bitmaps with less than 24 bpp, and with positive height. Right now I'm trying to load a 24-bit bitmap,...
[1 reply] : Well, I guess it is a lot of code to go over for no real gain... Can... (by PiMaster)
About reference and non-reference as param in method
 
Anybody help me please. I don't understand what's difference between ref and non-ref. Example: ----------- Exam 01. class complex{ private: float img; ...
[3 replies] Last: Thanks for concrete answer. (by micheal9000)
Microsoft thinks this a good idea?
 
const int x = 10; const int* foo = &x; void f(const int*& ptr) { ptr = foo; } int main() { int* test = 0; f(test); *test = 9001; retur...
[9 replies] Last: That reminds of one time I disabled all the C++ language extensions in... (by closed account 1yR4jE8b)
Countdown problem.
 
I'm attempting to create a countdown timer. Which basically works its way down from 10 to 0. I'm trying to make it so when the variable == a certain number it w...
[1 reply] : for (unsigned i = 0; i < 10; ++i) { Sleep(1000); cout << "Beep"... (by Zaita)
Polymorphic Collections
 
Hello everyone, I was hoping to gather some opinions. I'm writing a collections library (purely academic reasons), and I would like to gather some opinions ...
[1 reply] : Create a base class called "Container" then provide some simple pure v... (by Zaita)
December 2010 Pages: 1... 7891011... 24
  Archived months: [nov2010] [jan2011]

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