General C++ Programming - October 2010 (Page 3)

Checking Array problem
 
I have an array with size 10. I allow the user to enter in a product code and if the product code ma...
[3 replies] Last: Got it. Added a break after the cout if the statement is true. (by kraigballa)
How to Call struct into main
 
Dear all, Here is my code: It does not work and gives me an error line 20: error: new types may ...
[3 replies] Last: rjain02, DEV C++ isn't a compiler, its an IDE. I'd suggest anything fr... (by closed account S6k9GNh0)
Returning a const char *
 
HI, I have following function static const char *aaa = { "hello" "there" } c...
[1 reply] : const char* is only good if you're storing an unchanging string litera... (by Disch)
Problem with infix to postfix
 
Could anyone help with my code. Im trying to do a program that infix to postfix for an algebra equa...
[no replies]
by crxxtc
function for gravity project beginner
 
i need some help with a project of gravity for class and using it in a function here is what i curre...
[1 reply] : 1. to make a function you must declare a return type (in this case dou... (by ultifinitus)
Reading from file to an array
 
I am having problems with my array keeping the values that I assign it from my text file. Below is m...
[7 replies] Last: Yup, trying to get familiarized with arrays. Thank you so much for the... (by kraigballa)
STL containers crash when empty
 
A few months ago, i got an issue with my code when i switched it from windows to Linux. On my STL co...
[11 replies] Last: You may be invoking a copy constructor or assignment operator on your ... (by PanGalactic)
embedded dynamic allocation problem
 
Hi all: i dont know if it is suitable to refer to this self-made terms "embedded dynamic allocat...
[3 replies] Last: thank you, when i first see this,i was very worried. (by sysabod)
by suds
backwards
 
can this be altered to display a word backwards? if so how? for (char word = 0; word < 50; ...
[3 replies] Last: I mean no offense, but this should be in the Beginners forum. Unles... (by filipe)
Is ostringstream thread safe
 
hi all, I am wondering whether ostringstream is thread safe. I used ostingstrteam as below in a c...
[1 reply] : No. No part of the STL is thread-safe. (No object in general is thread... (by Duthomhas)
priority queue and boost foreach
 
is there any reason why a priority queue wouldn't work with BOOST_FOREACH. I have a function decl...
[1 reply] : Unfortunately you cannot iterate trough priority queue. BOOST_FOREACH ... (by qba)
implementation of a (pseudo-random) distribution uniform
 
Hello at all. I try to implement a heuristic where I need to generate variables that are (pseudo-ra...
[1 reply] : http://www.thinkage.ca/english/gcos/expl/c/lib/rand.html (by kbw)
by torp09
functions
 
#include <fstream> #include <iomanip> #include <string> #include <cmath> #include <iostream> us...
[3 replies] Last: It seems that you have decleared most of the function in main() . yo... (by bluecoder)
Boost libraries?
 
I've been reading a lot about C/C++ lately, and I've been noticing a set of libraries called Boost g...
[2 replies] Last: boost is as "general purpose" as libs can get. It doesn't cater to an... (by Disch)
future languages
 
So i have learned most of what is on this site and i find myself wanting to expand. the code i write...
[3 replies] Last: Qt and wxWidgets are widgetry libs. Widgetry includes things like f... (by Disch)
by b0ch0n
call of overloaded '...' is ambiguous
 
Hello to all, I am new hereabouts and in c ++. I do not speak and write English, am going to be c...
[1 reply] : int mayor(int x, int y=2); // func a int mayor(int x, int y=2, in... (by Disch)
by pkjm17
Linked List Bubble Sort?
 
How is it possible to do a bubble sort for a linked list? I want to be able to sort the data in asce...
[no replies]
by cric
can u do it for me?
 
can someone please complete this program i really need it it has to actually perform when a user...
[4 replies] Last: 1800 posts and counting. ...What, r0shi, you expected it to be an edit... (by Albatross)
C++ Copy Directory
 
How would I go about copying a directory named C:/u/ to something like "C:/Program Files/Backup"? W...
[1 reply] : Nevermind, found out that I can use fstream to write to a batch. Doooo... (by LittleQuick)
by kmanus
[C++]Problem with constructor
 
Hello, im manuel, new on this forum and new with c++. im having some problems with a project, hope s...
[7 replies] Last: I said he can't do it because he has no default constructor, which is ... (by guestgulkan)
October 2010 Pages: 12345... 23
  Archived months: [sep2010] [nov2010]

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