General C++ Programming - February 2010 (Page 4)

by ALB
how to output
 
anyone know how to output the student number,testes, average and grade using this and reading from a...
[3 replies] Last: Can you give more details (by bluecoder)
Who can answer this question ?
 
Write a program that uses loop o perform the following steps: a.Prompt the user to input two intege...
[1 reply] : I think this will do #include <stdio.h> int _tmain(int argc, _TCH... (by bluecoder)
by Rycul
Code not starting ("Application Started") + VS poking around in weird folder
 
Hello people, I have tried to follow some articles about that will get you started into DirectX C...
[4 replies] Last: Thank you for replying, I wasn't sure where to post this so I figured ... (by Rycul)
new types may not be defined in a return type
 
struct state { int M_count; int C_count; bool boat; } int hn...
[2 replies] Last: you are awesome! (by aashcool198)
by cppbeg
while(1) (1,2)
 
i understand that while (1) is an infinite loop . i have a function that check corrrct input . it'...
[24 replies] Last: Thanks all of you . (by bluecoder)
undefined reference to..passing a stl::queue to a function
 
Hello, I'm trying to pass a queue to a function. My queue uses a type I've created called "node" ...
[3 replies] Last: I guess in the examples I saw they just had a forward declaration and... (by Disch)
multiple source files
 
Alright, I've never used multiple source files in my projects, never had a need to. But I find my se...
[2 replies] Last: thanks Disch, that fixed my problem edit: Yea the only reason I wa... (by Seraphimsan)
scope operator ::
 
void CAccess_Guard::ExecuteWindow() { if(::GetTopWindowID() == ....) //is the scope oper...
[4 replies] Last: Thank you very much kbw for the help. :) (by olredixsis)
by chee
How do you input size into a Class Function?
 
class Class1{ private: int size; int x1 ; public: void sayit(int size); void sayit(int size...
[11 replies] Last: Glad you see it. (by tummychow)
friend class error with gcc 4
 
Hello, I have a big problem porting a huge c++ application on MacOS X and gcc 4 here is my problem:...
[3 replies] Last: this code work with previous version of g++ and VS but with g++ 4 it m... (by maximephan)
by yoanne
Triangle recursive function
 
Can anybody help me solve this problem??Thank You. Write a complete C++ program which contains a ...
[5 replies] Last: Did you try to run the programs I wrote above? One program uses head ... (by jsmith)
Stack
 
Hello. I am trying to create a stack program in c++. I created class as follows : #incl...
[1 reply] : You are trying to declare array of int's based on the size variable wh... (by kevinchkin)
std question
 
hello, is there difference between using namespace std; and std::cout .... ? thanks
[2 replies] Last: Here's a more in-depth answer: http://www.gotw.ca/gotw/053.htm (by PanGalactic)
Why this code does not work? :-(
 
Hi Guys, A friend of mine asked me about this and I am totally stumped by this simple code. Coul...
[3 replies] Last: strcat is what my friend was trying to do. I think the reason, as I me... (by kevinchkin)
Vector of objects from two subclasses of a common class
 
Hello all, I'd like to have a vector in which at runtime objects which are instances of two subcl...
[1 reply] : Solved!! My bad, should have been vector<A*> because I deined the obje... (by acgrama)
Difference b/w time() and localtime(), what happens inside time.h in library
 
what is the difference between time() and localtime(), bold parts in code: #include <time.h> ...
[4 replies] Last: thanks. it was worth reading. (by vijaysaluru)
recursive fill function (1,2,3)
 
Hi I'm trying to write a program that gets as an input: * A perimeter (boundary) of a "closed" shap...
[50 replies] Last: here is my program as of right now #include <stdio.h> #include "sim... (by coolProgramer5)
please solve this error...
 
Hi.. I am getting a error in the following code for AVL trees(HIGHLIGHTED CODE).. I tried in the ...
[1 reply] : use class scope: (missing part in bold) AVL:: AVLNode * AVL :: I... (by vijaysaluru)
Functions and Arguments
 
hi everyone, i am having trouble figuring out how to modify this function in such a way that it w...
[3 replies] Last: Great! That is exactly what I was looking for. Thanks Duoas and darkes... (by newyorkcity)
Difficulty on finding what is causing this error
 
I am using g++ to compile this for school and I keep getting this message: error: expected primary-...
[9 replies] Last: That was it. Thanks a lot for your help guys. Now it's time for some n... (by PatCioe)
February 2010 Pages: 123456... 21
  Archived months: [jan2010] [mar2010]

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