General C++ Programming - December 2009 (Page 15)

code shortening
 
thank you everyone for the suggestions.
[3 replies] Last: thank you for your responds. highly appreciated (by badboizEnt)
by Capone
C++ program
 
Hello, I would be very grateful if you help me complete this program. The task is as follows: Sport...
[no replies]
infixtopostfix
 
i know i posted this code in another problem,but my issue now is when i run my program its not work...
[3 replies] Last: What do you mean is isn't working? Maybe you should read this: http... (by kbw)
Segmentation fault with huge loops
 
So basically my code looks like this: for(int i=0; i<SIZE; i++){ Write a lot of things into a...
[1 reply] : Write a lot of things into arrays in memory (although far fewer items... (by Bazzy)
by Tinlau
Game- ready model shops
 
I'm making a list of game-ready model shops, if you know another ones please tell me ^^ here's what ...
[1 reply] : Don't double post: http://www.cplusplus.com/forum/lounge/16749/ (by Bazzy)
by Tomas
extern var inside a namespace
 
I have these files: :::::::::::::: command.h :::::::::::::: namespace cmd { extern const c...
[6 replies] Last: guestgulkan, it works. (by Tomas)
Trie datastructure suggestions
 
Hi All, Its my first post from England, so hope anyone here can help with this assignment. the pro...
[2 replies] Last: http://myexps.blogspot.com/2009/12/trie-datastructure-c-example.html ... (by dgkris)
Reversing a string
 
This is a program I have been stuck on now for several hours. The program I have to write needs to ...
[3 replies] Last: There is a standard reverse() function in the <algorithm> header such ... (by buffbill)
probleme with class
 
I am little girl and i dont know how to make correct this code , help me please Gentilmens!!! #...
[5 replies] Last: What is the error when you put that in the code? (by Zhuge)
Program Freezes on malloc...
 
Hey all, the following code is run probably 15 times before my program freezes, the program gets int...
[11 replies] Last: Also note that you can overload the () operator to make lookup very ea... (by Disch)
dont repeat pairs
 
Hello! This program prints coprime pairs of string.Someone can tell ,what to change- i need only 2...
[1 reply] : {for (int i=0;i<sk;i++) {for (int j=0;j<sk;j++) change it fo... (by melkiy)
STL::set. How can I change the value that an iterator point to?
 
When we iterate through the set, can we somehow change the value of the object in the set? So I have...
[4 replies] Last: Not only uniqueness, but sooner the sorted order. Multiset doesn't re... (by melkiy)
Two unrelated questions
 
Say you had a program that was going to pass an argument to a function that was quite large(pass-by-...
[2 replies] Last: 1. Thanks. 2. Ha that's exactly what it is for! But not a problem, ... (by mcleano)
Template <class T>
 
Hello you guys...I'm not sure why I keep getting these same errors or maybe it's just me...but could...
[7 replies] Last: Thanks people for the help...I was able to correct and run the program... (by CATCH3624)
variable with multiple types?
 
Is it possible to have a variable a variable, for example 'a', as both a char and an int? I ask thi...
[5 replies] Last: Few things: cin>>choice||wordChoice; is wrong, if you want to read ... (by Bazzy)
Copy Constructors and Inheritance
 
Just a question about how copy constructors work. I have a base class A, with an implemented copy...
[3 replies] Last: oh crap -- sorry about that! Good save jsmith. (by Disch)
Bi-Connected Graph Class!!
 
I'm writing a program that builds a graph and detects articulation points. I'm stuck with the root v...
[2 replies] Last: if one of the nodes which holds two other nodes (i.e. 2 children) are ... (by simonsayz27)
A question about virtual function
 
As I know, there's a virtual function table with a class type(contain virtual funcion). And there's ...
[2 replies] Last: Emm...you mean there's one table nor 2 talbes? class A { virt... (by player6)
by ward
dose not make sense ?
 
hi for every body this is code for queue using array during my work i found these errors that d...
[2 replies] Last: thx for u (by ward)
Functions, What is Wrong?
 
#include <stdafx.h> #include <iostream> using namespace std; double calcLatefee(double, doubl...
[2 replies] Last: Here are some mistakes fixed which I found at the first watch. Next t... (by MaikCAE)
December 2009 Pages: 1... 13141516
  Archived months: [nov2009] [jan2010]

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