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 this for an error.. "Run-Time Check Failure #3 - The var...
[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't open, and the program stops doing nothing during its exec...
[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%2Fibis-q%2Fmodules%2Fmort%2FMort_CV.cfg&sas=0&test=0&func=AgeRat...
[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 running this in Visual Studio 2010. here is the code: #inclu...
[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 in the group and it adjusts the price based on how many peop...
[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 passes the objects down as arguments through constructors. I'...
[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; // type of piece (EMPTY if no piece placed) ...
[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 create an application in C++ (or in Matlab as possible) to s...
[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 geting the number ==>10 then y will happen ...
[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 post an empty threat.
[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 to a file, I thought modifying the inorder display function ...
[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 <iostream> #include <conio.h> #include <algorithm> usi...
[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> pattern, bool exact) { bool match = false; vector<strin...
[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 compilation error "cannot convert parameter 1 from 'boost::scope...
[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 want a simple and light way to convert a YYYYMMDD HHMISS to a ...
[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, say 10 & all prime numbers up to that input number will be ...
[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 triangle's surrounding box. I have the 3 point of the triangle. I ...
[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 text to morse code and vice versa. I have managed to conver...
[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 enters: hello, program outputs: ......-...-..--- So my qu...
[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 columns are time latitude longitude and elevation.. I would need a...
[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.