General C++ Programming (Page 3)

by LB
Determine if a type is of a more derived type than another at runtime
 
I have a function like this: template<typename T> void f() { //... } Is there any way I can cons...
[6 replies] Last: Yeah, my problem is that I will never be able to know of all the types... (by LB)
socket programming
 
So I'm trying to learn some socket programming, and I'm at the point where I need a server to intera...
[1 reply] : The first solution is to use another device on your network. The secon... (by Computergeek01)
guys please help out with this theory qns
 
Determine the BEST structure to use when you want to output various messages based on a code letter ...
[7 replies] Last: You had the right idea with using a switch statement ;) (by LB)
plz give an answer,,urgent
 
//output problm.. #include <stdio.h> #include <conio.h> int main() { int i=1,l=-2,k=11,j...
[3 replies] Last: It's due to short circuit logic in the if statements. If you have [x O... (by Ganado)
Why i can't delete this pointer
 
#include <iostream> using namespace std; void main(){ char *B ; for (int i = 0; i < 12...
[4 replies] Last: @keskiverto: Ok, I see, thanks sir (by namangcau)
by AceK
JUST WANT A SIMPLE EXPLANATION
 
Hi there, I have seen a class declaration as in line 3 in the code below and I don't know what this ...
[1 reply] : That is a forward declaration for a class. It tells the compiler that ... (by NT3)
Use of "using namespace std"
 
What is the use of "using namespace std" in c++ programme.What difference does it make with a normal...
[3 replies] Last: Thank you for your help (by Gnana Kumar)
by tmason
Dynamically deleting items out of vector ...
 
Hello, I have the following code in which I wish to dynamically delete items out of a vector based ...
[9 replies] Last: Wow, OK, I need to brush up on modern c++. I haven't used lambas or e... (by tmason)
Circle fill color in, FLTK
 
Hi, I installed FLTK 1.3.X (from here http://www.fltk.org/index.php ) on my visual studio 2012 comp...
[3 replies] Last: Thank you for your reply anyway. (by khoshtip)
Creating and Terminating Threads
 
Hi All, I am new to C++ and Threads. I had a requirement where i needed to create a thread and...
[2 replies] Last: Thanks for your reply Peter. Could you give me a small piece of code ... (by pdsharma86)
Input from csv file to C++ (1,2)
 
Hello guys. I've values in a csv file and I'd like to load these values into an array in C++ to p...
[21 replies] Last: Read what the ignore() does. (by keskiverto)
where do I enter in the appropriate numbers?
 
I don't understand this at all! I read the chapter and I still am having a horrible time. #incl...
[1 reply] : Did you compile the program and try to run it? (by LB)
overloading members on constness Problem
 
Link: http://www.cplusplus.com/doc/tutorial/templates/ Part:Const member functions Why bar.get() ...
[8 replies] Last: 1.The overloads of get would render one ambiguous, and so it is imposs... (by helshahaby)
An unusual data type... what do I use?
 
I have an unusual situation in which I want to use a basic (raw/built in) data type that hides some ...
[10 replies] Last: > So will the compiler automatically resolve that to use 32 consecutiv... (by JLBorges)
Need help on text-based game.
 
So this is my code so far: #include "stdafx.h" #include <cstdlib> #include <iostream> in...
[3 replies] Last: Yeah, I guess I should have specified that part, also. (by whitenite1)
by Aceix
Memory leaks
 
Hello, of a truth memory leaks are not good, but how dangerous can they be? Can a cracker use it to ...
[5 replies] Last: > do OS limit the amount of memory assigned to a programme? By itself... (by JLBorges)
sorting vector of strings alphabetically
 
Hi, I'm trying to write a program that reads in from a .txt file the movie title, rating, director, ...
[2 replies] Last: Just a guess: std::sort(movies.begin(), movies.end(), (Movie const ... (by LB)
Trying to store information from a file in a linked list
 
I'm trying to open a file (contains member information) and store the information in an object, whic...
[7 replies] Last: line 20 of the fourth file, struct ListNode *next; should be ListNo... (by Yay295)
by Illuk
String to Character
 
I have a text file which contains ASCII of A,B and C like below, 65 66 67 Now I need to create ...
[2 replies] Last: Thank you very much. You solved my problem... :) (by Illuk)
How would you go about creating an exact age calculator (1,2,3,4)
 
I've been wondering this, since there is so many things which needs to be taken care of. I created o...
[62 replies] Last: So this was the original PM i sent to Disch but i figured i might as w... (by Slashdash)
Pages: 12345... 27
  Archived months: [jul2014]

Cannot post in this page. To post a new message, go to the first page.