General C++ Programming - August 2014

Binary String?
 
I'm working on writing a predictor function for descrambling decompressed pdf streams and one of the...
[2 replies] Last: Well, I know how you felt. I've taken a very long term view of this a... (by dominover)
how to use getopt
 
Here is my code: #include <iostream> #include <ctype.h> #include <stdio.h> #include <stdlib....
[8 replies] Last: > isn't the whole point of the colon to indicate that the argument is ... (by JLBorges)
removing duplicate strings in a vector
 
Hi, I'm trying to create a database/search engine program and I'm having remove duplicate strings f...
[2 replies] Last: Ok, I completely removed the removed_duplicates() subprogram and re... (by tybalttheappleEater)
Assigning colors to individual characters in an array
 
My problem seems simple yet has confused me for quite a while. I've seen some help on this site but ...
[8 replies] Last: Okay, that makes sense! Thank you. One more question: I noticed befor... (by Methodius)
Classes and Structs
 
I'm doing a project for my Advanced C++ class and I am to use a class to get the user to input a rom...
[2 replies] Last: Ok thanks. (by dub1987)
initializing pointers to memory addresses or values?
 
What is the difference between initializing pointers to a memory address using the address operator ...
[4 replies] Last: And assign them to pointers/references to arrays. And typedef them And... (by Disch)
<> Compiler and Linker errors for my linkedList class and application
 
I am trying to write a program that will take a list of integers from a file and write them to anoth...
[6 replies] Last: How should the template arguments be declared? I've fixed everything ... (by br26354)
stopping threads without using local var?
 
hi, here's my code, #include <iostream> #include <unistd.h> #include <thread> using namespa...
[3 replies] Last: Your current code does not use a local variable. Do you mean "global" ... (by LB)
comparing two string in if statement
 
HI i actually i want store string in r and try to compare other string (room_no) in function check b...
[2 replies] Last: First, a use of code tags and indentation in posts makes commenting ea... (by keskiverto)
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)
August 2014 Pages: 123... 25
  Archived months: [jul2014] [sep2014]

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