Beginners - May 2010 (Page 4)

Arrays and Pointers
 
They're both lovely things, and I can see their use, but why do they have to be so damn hard to remember? How many ways can you use a pointer, anyway? I've p...
[2 replies] Last: You would need a sort of 'list' with undetermined size. Arrays hold a ... (by magnificence7)
use pointer in C
 
i want use pointer in C ,bat I don't know same or same ... please help me !
[1 reply] : Read the tutorial. (by firedraco)
Different threads
 
Hi, all. I don't know anything about OpenMP, neither Boost nor pthread. So, before begin learning one of these, I'd like to explain to you how I want my appl...
[1 reply] : So, in other words, you have one thread that's relevant, not two. Ope... (by helios)
by xeyide
inheritance with copy constructors
 
I'm working on a final project for school, and I can't get my inherited copy constructors to work. I have a ton of code from the project, so I'll only post the...
[2 replies] Last: One could define 2D objects as a subclass of 3D objects with one dimen... (by PanGalactic)
2d array and a linked list out put
 
hello i have a project i'm stuck at i'm not really good with C++ so please help me i did a two 2d array that the user define it size and adds(Both same) the nu...
[4 replies] Last: the project was do today i could not find the answer thank you ve... (by Greenfinger)
Constructors and reference parameters
 
I wrote a simple code that passes a parameter to constrcutor as a reference,but i'm getting compile time erros // TestConstructor.c++ #include <iostream> ...
[4 replies] Last: Thanks for the answers and the explanation. (by skandula)
beginner working with STL list
 
I am trying to write a program to perform the A star search algorithm. I have the map and A Star Node defined as below, and I have declared some variables to w...
[5 replies] Last: I don't see what that search function has to do with the original ques... (by kempofighter)
Untargeted Graphs Problem.
 
Hello everyone.I have a problem.I have to generate all the graphs with n nodes and m edges.where n < = 5. I tried to build an algorithm that can change the adja...
[no replies]
by Ensei
vector<ClasseName*> name;
 
I have a 3 level hierarchy with ClasseName at the top. I want to make a vector<ClasseName*> name; vector. Where should I put it? If I put it in int main(){}...
[1 reply] : Put it wherever you need it. If you put it inside main(), you'll have... (by Athar)
by mozly
Stuck in an infinite loop
 
I'm learning about filestreams and I used the example given in the tutorials. the problem is I get stuck in an infinite loop in my while statement. ifstre...
[3 replies] Last: You should never use eof() as the sole condition for your loop. Use th... (by filipe)
int collapse(vector<int> result> needs correction!!
 
create a function named collapse. the function takes a vector as an only parameter. the result should return a vector. for example: a vector v has the follow...
[5 replies] Last: Challenge for you. If I may paraphrase your code: vector coll... (by jsmith)
Error in my code
 
Hello, Can anyone tell me what I do wrong? I want this program to check for a number If it is between 1-20 it must print the "IT IS LIKE I SAID" msg. If ...
[4 replies] Last: I KNEW IT WAS STUPID!!!!! Thanks guys... (by JackTrades)
question about std alloc
 
I can't seem to find any details about the std::alloc (the one that is the default memory manager for containers). Is just a wrapper for new/delete? Is it usi...
[3 replies] Last: The standard (default) allocator used by all of the STL containers etc... (by jsmith)
can someone improve it (chess game)
 
I've got almost all of my code busted out, but one of my queens doesn't show up (still interacts with the board, kind of), and i get a random 'X' floating aroun...
[3 replies] Last: http://www.cplusplus.com/forum/unices/24178/ (by Maimaje Bello Abdullahi)
by vivmen
How to connect sql 2005 with vc++ 2008
 
Hello all i want to connect my sql server 2005 to vc++ 2008 can any one provides me useful links & steps to do it. thanks in advance , i am also serching...
[3 replies] Last: hello plese check following link http://msdn.microsoft.com/en... (by vivmen)
Stack for binary tree
 
I'm having trouble getting started with my nonrecursive traversal. I need to implement a stack that holds pointers rather than int's and I am lost. Here is what...
[1 reply] : Well it's a good start. Now all you need to to is chain up all those T... (by RedX)
stacks
 
pls help me make this program into a simpler, COMPLETE stack class program(with file.h,file.cpp and tester.cpp). here's the program #include <ctype.h> #inc...
[1 reply] : Sorry we don't do homework here. We do help tho with problems you have... (by RedX)
Returned Pointer gives different address?!?!
 
Hi all! I apologise if this is a wall of text... I have been going through the "C++ for dummies book". On page 125 (should any of you have it) it states ...
[2 replies] Last: Oh my word... that is totally right! Thank you so much! That ACTUAL... (by Tset Tsyung)
Service (Log-Off)
 
Hi All, Is there anyone here know how to catch window Log-Off message event, My situation is, i have a c++ aplication, which is runing as service but ...
[5 replies] Last: SCM was my shorthand for the Service Control Manager. I'm not sure ho... (by kbw)
by xeyide
Segmentation fault
 
Hi, I'm trying to work with a simple object that works great... with out pointers! As soon as I add the data members as pointers, the code will compile fine, b...
[2 replies] Last: OMG you're right. Oh I feel stupid now!! I would need something l... (by xeyide)
May 2010 Pages: 123456... 33
  Archived months: [apr2010] [jun2010]

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