General C++ Programming - March 2009 (Page 11)

by dkhosh
overriding global operator new default definition
 
The reference page on operator new says: * The first and second versions are implicitly declared in every translation unit of a C++ program: The header ...
[no replies]
Volatile variable
 
I have a volatile variable in a class. Want to write a function that returns the address of this variable. How do I do that? Simple putting & is not working.. :...
[2 replies] Last: But don't you think, their use is different. As volatile int means, it... (by rachitagrawal)
Copy Constructor
 
Well this question is similar to what I have earlier asked about destructors. But I just want to confirm about it. When compiler automatically creates a copy...
[2 replies] Last: To answer the other question, the compiler always gives you a member-w... (by jsmith)
by sable0
Stack issues
 
sdfsdfsdf
[9 replies] Last: Well, you wrote the code for the Stack class, so you should know. Y... (by jsmith)
by masiht
problem in the program
 
I have asked alot of question about this program but still not able to sovle it can any one tell me how to fix this proplem i will be thankful #include<i...
[8 replies] Last: if you want more than one statement in an if block or an else if block... (by jsmith)
Execution Time
 
I have a simuation code. Where I write a lot of data into the file. And I don't close the file until I am done. Apart from that, I write one line at a time. Wil...
[5 replies] Last: To what medium are you writing the data? Hard disk? It is probab... (by jsmith)
reuse a socket connection
 
Hi everybody, How can I terminate a windows Socket only for one thread and not for all thread (functions WSAStartup, WSACleanup) I need to reuse a socket con...
[no replies]
Having trouble with plugins.
 
Ok, I am relatively new to C++, but not to General OOP, so I thought this would be a more appropriate place to post. First off, heres the sources: Pluginable a...
[4 replies] Last: Ok, thanks, I will give that a try. I have one problem with your imple... (by EntityReborn)
by sable0
Issue with stack and fractions program
 
My goal is to implement a stack of fractions. Put 3 fractions on the stack, retrieve them and print out. The code compiles without errors, however, I do not thi...
[no replies]
how to block a socket indefinitely
 
Hi everybody, When a socket is created, by default it is a blocking socket. Under blocking mode socket I/O operations, connect and accept operations all bloc...
[3 replies] Last: Hi averybody, My program receives the first block of data and after... (by radeberger)
block a socket
 
Hi everybody, I have a TCP server application which receives blocks of dummy data. The first time I use the application, the socket is self blocked before th...
[4 replies] Last: see.. you dont have to accept again and again for each block of data. ... (by writetonsharma)
Call ofstream::write with a stringstream type
 
I'm trying to write out a binary file. I have the data correctly inside a stringstream but the ofstream::write function wants a const char*. [code=C++] std::...
[2 replies] Last: Thank you! (by sampsont)
Read numbers from text file
 
hello, i'm trying to read a text files into string and to output that strings this's my text file 0b10100 0d478 0x7 0xff 11110000 and this is my code...
[2 replies] Last: while(is.peek() !=' ') peek will always return the same character ... (by Bazzy)
by masiht
unable to correct this program
 
I trying to make this program .I tried several techniques to fix it but nothing worked for me .Can anyone please tell me what is the problem with this program. ...
[3 replies] Last: #include<iostream> using namespace std; double MilesperGal(double... (by onur)
Parsing.
 
Hello, I want to use oop and STL etc to parse a buffer. My Buffer contains ABCDXXXX333$$$$YYYY I need to seperate ABCS XXXX 333 $$$$ YYY and moveth...
[1 reply] : I know that wxWidgets version of <string> has .Net like methods (one u... (by EntityReborn)
by bluRry
matrix with for loop
 
hi everyone ! how do i get this goin ? i am total lost at all this c program . i am suppose to make a loop for this matrix . #include <iostream> #include <f...
[3 replies] Last: First.....ignore my last post.. it is marred by obsfucation The follo... (by buffbill)
Globally declaring an object with arguments
 
Hi Guys, I have a class voInterpreter.cpp and it has a constructor voInterpreterClient::voInterpreterClient(Connection_Info connIn, int maxInputBuffe...
[2 replies] Last: Hi Jsmith, First of all thank you for your advice. So, can I us... (by bharusri)
use ispunct to remove the punctions from the string then print the new string
 
use ispunct to remove the punction in a string then print that string without punctions #include <iostream> #include <conio.h> #include <cctype> #include...
[3 replies] Last: Bazzy just paraphrased what your code actually does. (by jsmith)
Opening and use PowerPoint file
 
Hi everybody! I've a question: I've to manage a .ppt file (or .odt) by a c++ program. In particular, I need to open the file and later on a event, change the ...
[7 replies] Last: 1. the easiest way will be to write macro in powerpoint. it has some ... (by writetonsharma)
Error C2065 Cout Undeclared Identifier
 
I recently downloaded VC++ and I keep getting this error whenever I try to compile my programs. I wrote real quick simple program to demonstrate: #incl...
[3 replies] Last: #include iostream and use namespace std in screen.h. (by writetonsharma)
March 2009 Pages: 1... 910111213... 21
  Archived months: [feb2009] [apr2009]

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