General C++ Programming - April 2009 (Page 9)

Usage of the faulty number type
 
I have the following problem that is quite complex and I don't have a clue how to solve it: --- Let's assume that we have got a class that defines the new...
[1 reply] : can we say, this is (fromInt)*(fromInt+1)*...*(toInt-1)*(toInt) eq... (by writetonsharma)
function undeclared error
 
I'm compiling my first multilayer perceptron, and this error keeps coming up in compile. 30 C:\Dev-Cpp\main.cpp `inputcount' undeclared (first use this fun...
[2 replies] Last: oh wow.....Once more I fail hard...lulz. Well thanks jsmith. edi... (by Seraphimsan)
Function map
 
I'm trying to make an application that stores pairs of the type <std:string, Function> into a std::map. Basically I want to do this: mymap.find("printf"...
[10 replies] Last: Faster? I don't know. Consider that printf() takes a format string t... (by jsmith)
Undefined reference errors
 
Hi, I am unable to build the following program but do not know why. I have a header SmartEnum.h which I am including in my test program Smart_Enum.h I am...
[4 replies] Last: I understand, but how come this links and compiles without error or wa... (by Confused)
Clarification on templates
 
Hi, I have a class mentioned below template<class TYPE, class ARG_TYPE = const TYPE&> class SampleList { public: struct Node { Node* pNext; ...
[2 replies] Last: struct Node needs to be struct Node { struct Node* pNext;... (by jsmith)
Vectors
 
Hi, i am trying to using vector. but is facing error. the error is" error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void...
[2 replies] Last: tks. i check my displayVoucher function and realise that is also have ... (by littleimps)
c++ templates linker problem
 
Hello I have an assignment for linked lists using inheritance & templates I have a list that can take objects trucks & cars The code for the constructor /*l...
[2 replies] Last: Thank you U saved my life friend It s been 5 hours trying to find w... (by giorkosman)
Dynamic C strings troubles
 
Hey everyone, First off, I used to use string - the type - all the time. That's what I learnt to use and what I used by habit. Now that I started working with ...
[7 replies] Last: Sounds good. I mean, sure, pain in the butt, but at least it's better ... (by Synthmon)
cant understand Virtual destructors and no constructors difference?...
 
Hello all!... I went through few study material, and understood why virtual constructor can't be there... What i understood about constructor's is as follow...
[1 reply] : if you have a hierarchy of parent/child classes, you need to call fir... (by elvis)
TEXT preprocessor macro
 
Can anybody tell me if the TEXT preprocessor macro is "platform-independant" (assuming most common platforms and compilers: MS WIN (VS 2005, 2008), UNIX & OSX (...
[1 reply] : _T, TCHAR and TEXT are Windows specific. (by kbw)
C++ and XML-RPC
 
Hey guys, I've been looking all over the next to find a good solution for C++/XML-RPC. But thought I ask here too. I'm trying to make and submit a C++ API...
[no replies]
size file problem
 
Hi everybody, I have a problem with the size of a file. I have this code: while(run_tcpserver) { bytesRecv = recv(socketInTCP, recvbuf, sizeof(recvbuf)...
[2 replies] Last: Thank you for the answer kbw, now it works properly and I didn't ch... (by radeberger)
e-mail, FTP, and libraries
 
Ok so i wanna make a program that sends files between computers so e-mail or FTP but can someone tell me which is easier/ better? Also while I was looking for ...
[2 replies] Last: will winsock2 work? it says it only allows TCP and IP protocols? Also... (by closed account 41hCpfjN)
whats wrong with this programme
 
can some 1 help me check where is the error...the logic shld b correct #include <iostream> #include <cstdlib> using namespace std; bool palindromes(long...
[7 replies] Last: What kind of error(s) do you have? What does your compiler say when yo... (by Matt23488)
c++ console colors
 
I just wanted to ask is it possible to use colors when program is running in console? Thanks!
[3 replies] Last: Aaiiiiiiieeeeee! If on Windows, use #include <iostream> #inclu... (by Duthomhas)
by g0dwyn
Inheriting from Template Class
 
Hey everyone, While designing a Singleton class for an app I'm creating, I looked at the Ogre implementation of a Singleton (motivation and usage details her...
[4 replies] Last: Turns out it was all due to unrelated namespace errors. Thanks for yo... (by g0dwyn)
stack smahing
 
does anyone know a way to stop stack smashing?? my program does what its spose to do in terms of finding things but once it finds something thats not in the ...
[3 replies] Last: Stack-smashing refers to a specific kind of exploit where an unchecked... (by helios)
queries to mysql using c++ builder 2006
 
Hi, I have to make some queries to a mysql database using c++ builder 2006 because I have the select, but I need the insert, delete and update. The select synta...
[1 reply] : No. Neither INSERT, DELETE, or UPDATE are queries, so you can't use a... (by helios)
3 Column IPO Chart- Urgent
 
I saw this piece of code which I tought was interesting. However, since i'm new o programming can someone please provice the 3 column IPO chart including the Al...
[2 replies] Last: Thanks for responding. No, this is not a home work, just that i'm tryi... (by Alexis1)
enum
 
hey ive looked on the net and other places but cant find a way to do this so i thought ill ask her. my question how do you validate a member of an enum. eg:...
[5 replies] Last: see thats the thing i dont want to use an enum but its a small sectio... (by kempofighter)
April 2009 Pages: 1... 7891011... 20
  Archived months: [mar2009] [may2009]

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