General C++ Programming - December 2010 (Page 23)

by Zaroth
Initializing a pointer to vector of pointer to string
 
Hello all, How do I initializing a pointer to vector of pointer to string? When I try this I get...
[5 replies] Last: Almost std::cout << *(namesPtr->front()) << std::endl; //visit "... (by Disch)
by Phass
Code Error !! Opening file problem !!
 
Hello ! I'm trying to do an exercise where I've to open a txt file, but I don't know why it doesn...
[10 replies] Last: Yes, it was exactly this. Thanks !! (by Phass)
by jdw
short but complicated ascii code
 
parameter passed into unescape_url() is 'http://hlcbsas/cgi-bin/hi_iq_func_test?config=%2Fsrv%2Fib...
[3 replies] Last: that is very helpful, thankyou. i appreciate your taking the time to l... (by jdw)
Debugging problems with Class program
 
this program keeps printing Sun (sunday) for some odd reason and then stops to function. I was runn...
[4 replies] Last: do you mind if you post the code up? (by goliath042)
Tips on making this work.
 
This program is supposed to give me the total entrance fee to an event. It asks how many people are ...
[5 replies] Last: Thanks guys big help. I used if else at the beginning and finished it ... (by Elmofongo)
by Zaixu
Pointers and fuctions.
 
Well, currently trying to make a program to which the ControlUnit creates all objects, and then pass...
[1 reply] : class ControlUnit { private: Lala lalaobj; Pulse pulseobj; Th... (by ne555)
by nickrt
Operator overload assignment
 
Hello I have a class called Piece, defined as: class Piece { private: e_pieces type; ...
[5 replies] Last: First, your assignement operator doesn't do anything. If you want to ... (by ne555)
How to build a dll from a vcproj with C++ (or Matlab)?
 
Hi I have a ".vcproj" project with the respective header and source files in c++ and I want to ...
[no replies]
by Adidas
Difference between 1 to 10
 
How do I make an IF election ? I mean that if i get the num ==>1 then x will happen and if I'm ...
[3 replies] Last: if (line_sim =='1') { if (line_sim.size()==1) cout<... (by Adidas)
by wtf
I can't figure out what is right with my compiler.
 
Edit: Well I think I got it solved for now... But I liked the title so I'm going to pretty much p...
[2 replies] Last: I would love to use & learn visual studio, but alas I don't have the r... (by wtf)
write to file from binary tree
 
I have created a binary tree, and as part of the assignment we are supposed to write the tree nodes ...
[1 reply] : What's 'inorder' ? The code should be void write(Node* n){ fstr... (by hamsterman)
by toks
which function is needed ?
 
Hello, i have the code : #include <stdio.h> #include <stdlib.h> #include <string> #include...
[3 replies] Last: That's exactly what aiby's code is doing. Never use gets. Use getli... (by Athar)
error: no match for operator !
 
While tried to compile following code on linux bool CProcess :: matchPattern (vector<string> patt...
[3 replies] Last: Not all implementations of the standard library are standard-compliant... (by Athar)
error in vector<boost::shared_ptr<>>
 
Hi, I am trying to use vector to contain a list of shared pointer of class objects. but I a got comp...
[2 replies] Last: If this fixed your problem, you should mark this thread as solved. (by Athar)
simple way to convert string to date in C++
 
I realize this function strptime is not availabe in windows VC. but I don't want to use MFC, just wa...
[2 replies] Last: thanks... very smart. (by henry1999sg)
Prime number calculator
 
Hi, I just need some help with creating a prime number calculator. Idea is user enters a number,...
[11 replies] Last: Another optimization will be just testing for division against prime n... (by ne555)
triangles bounding box
 
Hi, I want to write a program that draws a triangle and puts a lable in the center of the triangl...
[1 reply] : Maybe finding the slope of a side would help? (by taylorc8)
Morse Code Converter
 
Hi, I am new to c++ programming and Im working on a morse code program which has to translate normal...
[3 replies] Last: I think this is a crappy assignment (if it is one) because you have to... (by taylorc8)
Making one string another string....
 
Hi, Im working on a program where the user inputs one word and the program outputs another ex. user ...
[2 replies] Last: C++ strings are mutable, and they offer quite a bit of flexibility. If... (by taylorc8)
text file
 
I would like to read a text file that has 4 columns and separate the columns into arrays. The column...
[1 reply] : OK, Great! Good luck! (by taylorc8)
December 2010 Pages: 1... 21222324
  Archived months: [nov2010] [jan2011]

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