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

char cannot convert to *char
 
I have a char a ; char name ; when i write: if (a =='name') c++ give me the error char can not convert to *char. My programm read a matrix of char an...
[4 replies] Last: First, single quotes can only be used to identify one character. Seco... (by kempofighter)
by namus
using operator<<() , how to display base class members?
 
#include<iostream> using namespace std; class A { private: int a ; int b; public: A(int a1=0, int b1=0):a(a...
[2 replies] Last: cout << (A&)x; (by kbw)
question about "const"
 
class BinarySearchTree { //... public: void makeEmpty( ); private: BinaryNode<Co...
[5 replies] Last: Got it! Very clearly explained! Thank you a lot! (by jeffreybalala)
return any type without boost::any (1,2)
 
Thats common situation, when working with a db a user can choose some data and pass them for further processing to functions. So, type of chosen data depends on...
[24 replies] Last: The problem is inherited from the existing code and, as often, the way... (by saraksh)
Destroying the object in OpenGL
 
Hi all I wonder if it is possible to create an object with something like glSolidCube() destroy it after some time and then redrawing it at different position ...
[1 reply] : glutSolidCube does not create an object. It only draws a cube. example... (by hamsterman)
by everid
how to turn on the compiler optimizer?
 
hi masters, i'm reading inside the c++ object model, in chapter 3, it mentions things such like "turn on the compiler optimizer". is there a "switch" such th...
[7 replies] Last: Well, that's not the whole story. There are in-between optimisations -... (by Galik)
C++ read online text file
 
I need to find some way to read from an online text file, but I'm not quite sure where to even start with this... I'm not very familiar with networking code... ...
[2 replies] Last: Thanks, I'll look into those... libcurl looks pretty promising. EDI... (by tfkillzone)
Local c++ communities
 
Hey everyone. I was wondering if anyone knew if there were any programming groups/communities in Portland Oregon. Online communities like this are awesome, bu...
[no replies]
WriteFile to a named pipe client?
 
Hey guys i was referred to this website by a friend. He said you guys are awsome with replies. Anyways i have successfully started a Named Pipe server in a C++ ...
[1 reply] : I would expect overlapped I/O to be used if PIPE_NOWAIT is specified i... (by kbw)
by PRR
Test for certain key entry's
 
If I am using getche to capture a single character input or may begin using getch instead, and then it is stored in a variable to work with, but before doing ...
[1 reply] : I think that some of this is handled for you, but if you are just read... (by idbentley)
typedef in a templatised struct
 
Please can someone explain why this code won't compile? #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/shared_ptr.hpp> #include ...
[13 replies] Last: Stupid little example, but hopefully demonstrates the idea. #inc... (by jsmith)
compilatiion error for static member function defination outside class.
 
Hi , I'm new to the c++, please can anyone explain can we define static member function outside the class, as myself trying gives compilation error. plea...
[3 replies] Last: Thanks galik, i was using static prefix in definition part of stati... (by santoshkb)
Best IDE
 
What is the best C++ IDE? I am in particular looking for code templates or insertions to make coding faster/lessen the strain of having to remember syntax.
[8 replies] Last: I'm guilty of using VS 2010 as my windows IDE. It really is better th... (by Bazzy)
Regarding my project!(problem)
 
Friends, I 've choosen distance converter as my project.Main theme of my project is to convert kilometer,feet,inches,centimeter into eachother.I 've initiated ...
[4 replies] Last: Thanks! If i want to include weight converter too in your program t... (by PeAcHyLiCiOuS)
by annwah
UDP sendTO and ReceiveFrom
 
Hi,i want to test the following function in POCO:sendTo -> Returns the number of bytes sent, which may be less than the number of bytes specified. int sen...
[1 reply] : Maybe i should ignore the return size(nSendBytes) and continue send th... (by annwah)
by PRR
Array and Pointer problem
 
I am experimenting with the single dimension array, using char string and then try to pull out the address of the first array member to use with a pointer. Then...
[9 replies] Last: Awesome!! Thanks.. (by PRR)
by paulin
problem with the output...
 
Hw to change the output as below: Enter integer:3 3 Enter integer:8 3 8 Enter integer:5 3 5 8 Tis is my coding: #include <iostream> usi...
[2 replies] Last: thanks! (by paulin)
by roohan
graph seg faults
 
So iam new to c++ , iam taking it in college right now and iam still very new to it. So my problem is that my program seg faults when i try to create a new char...
[no replies]
Reading the absolute file-path as sorted
 
I wanted to read out the absolute file-path (filename) as sorted in a folder (on Linux). The reading the file-paths is ok but I have problems in sorting. ...
[2 replies] Last: No, not always. It comes first always a string, this is fixed. Then yo... (by nasil122002)
by Leegit
Writing to file, char * corrupted data
 
I am trying to write data to a file so that it can be loaded in the next time around...when I save to file...it works. But when I read from the same file and th...
[16 replies] Last: You can cast like so. but remember it's const for a reason. never pla... (by bigearsbilly)
June 2010 Pages: 1... 7891011... 18
  Archived months: [may2010] [jul2010]

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