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: Sports Federation of the office with information about the teams:...
[no replies]
infixtopostfix
 
i know i posted this code in another problem,but my issue now is when i run my program its not working properly.I think im either my code to read the expressio...
[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 arrays in memory (although far fewer items than of size SIZE)...
[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 I've found so far: (alphabetically sorted) 3dbud.com ...
[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 char* show; } :::::::::::::: command.cpp :::::::::::::...
[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 program i'm writing now is like a dictionary. i.e, it gets a tx...
[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 take a user input string containing characters and integers ...
[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!!! #pragma hdrstop #pragma argsused //#include "Student.hpp" ...
[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 into this function but never comes out lol CodeBlocks returns t...
[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 and 7 printed out ,but not 7 and 2,for example.If there ar...
[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 a class Student which have a name and a num. Add all thes...
[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-value), lets just say an objet for now. Would it be faster t...
[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 someone please look at my program and tell me what I'm doin...
[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 this because I am programming a question to exit my program by ...
[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 constructor. I also have a derived class B, which does not...
[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 vertex and how to find out if it is an articulation point. By...
[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 pointer point to this talbe in a class. My question is How ...
[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 dosent make any sense so the code file // s...
[2 replies] Last: thx for u (by ward)
Functions, What is Wrong?
 
#include <stdafx.h> #include <iostream> using namespace std; double calcLatefee(double, double); int main () { double overDue, creditA...
[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.