Beginners - December 2009 (Page 2)

by razan
question
 
hello.. i have this question and i dont know how to start the program. i didnt take this subject our doctor gave this question to us as bonus. and i need thes...
[2 replies] Last: Such a program can be easily written using a linked list: http://en... (by AleaIactaEst)
Notepad++ Search Wrap?
 
I have this for example: aosidfjoiwaejfoiwejfoiweasdfasdfasdfsafsad <LastName>poop</LastName><FirstName>mike </FirstName><SSN>382717283</SSN><SSNNA>0</SSNNA...
[4 replies] Last: welp i figured it out, I had spaces and I had to join the lines togeth... (by gladiator99)
Problem with char and arguments passed by value
 
Hello, I'm just started to learn the C++, and tried to make a simple program. In fact, I made a nice problem: #include <iostream> using namespace std; vo...
[3 replies] Last: @jsmith Ah, i see. You where right about the radius() content. I thin... (by heatedcrab)
what is the best way to copy a string to a char*
 
I really mean copy, not point to. so i assume string s = "test"; char* c = s.c_str(); will not do the work. wondering what is the best way to do it. ...
[8 replies] Last: And perhaps for adorning and flexibility: std::string s = "message... (by carlos azevedo)
by ripley
variable
 
Hello, how can I use variable, which is set in one class in another? should it be private or public? Should I do that through reference? and if so, how? Tha...
[17 replies] Last: i had strlen() in my aplication (and semicolons too), I ve made mistak... (by ripley)
by jsands
How to create a user-determined number of class objects at runtime?
 
I have a class set up, Vehicles. I have the constructor and variables set up correctly, and I can properly create an object of this class through code, such as:...
[5 replies] Last: But if you only need to create an array with an unknown size, than it'... (by demosthenes2k8)
Write out a triangle (1,2)
 
Hello! I hope there isn't a thread about this already, if there is I blame my real bad skills on searching.. :P Anyhow, I need to train my knowledge in c++ ...
[27 replies] Last: ok, got it, so there is a difference, thanks Mcleano and Bazzy (by BettyBoopTS)
by rain
How to modify this function to telete directories too?
 
I found following func for my DLL void DLL_EXPORT DeleteAllFiles(const LPCSTR folderPath) { MessageBoxA(0, folderPath, "DLL Message", MB_OK | MB_ICONINFORMA...
[3 replies] Last: Use Shell apis (SHFO) (by george135)
Structure function in C++
 
Hi, everybody, I've been working through structures lately and must admit it's a hard work to use functions with them.Firstly I had some problems with declarin...
[8 replies] Last: Your primary problem valdinez is you're trying to define 'find_combina... (by jRaskell)
passinng array by reference problem?
 
i want to pass an array by reference from the main and then use the array again in the main function: void reverseit(int ) void main() { int array1 ={1,...
[2 replies] Last: Arrays are always passed by reference (by Bazzy)
How to fix my problem in turboc..tnx
 
how to fix the problem, when tc ask you.."invalid directories or drive"? pls help me pls..because my turboc is not working.. thnx for reply..
[4 replies] Last: Sir bazzy, i dont know what happen in my turboc, because im beginner..... (by eliezer)
cycles per operation?
 
I am working on a small project on C-51 (yes, I know this forum is about C++ for the x86 type processor but sorry, you are the only source of knowledge I know) ...
[6 replies] Last: x51 processors do have a timer ability, but unfortunately it overflow... (by Abramus)
Compiler!
 
Happy new year. please introduce me a free downloadable compiler.
[6 replies] Last: Ooh, chris, thanks for that little bit-it's helped me make sure I'm no... (by demosthenes2k8)
by TheNo1
Question :)
 
How to Resolve this ? : "Format an array size 10 * 10 random numbers. Sort the triangle bottom left and upper right triangle with a 'sort of income'." I ain'...
[2 replies] Last: Uhh, what are you trying to do exactly? Also, be sure to put that code... (by tummychow)
Polynomial
 
# include <iostream> using namespace std ; class Polynomial { private : int *array ; int x ; public : ...
[3 replies] Last: I'm guessing you want to know how to handle multiplication of two poly... (by jsmith)
Text-based game error?
 
I wrote a crappy text-based game last night when I was still awake and I'm getting an error when I try to compile it. I'm getting: Error: Unresolved external...
[2 replies] Last: AH thanks, I can't believe I missed such a minor error. Thanks for the... (by Warrior2089)
by August
Question about continue
 
Question in source code as comment #include<iostream> #include<cstring> using namespace std; void char_permutation(char str ,char append ) { int le...
[1 reply] : continue; // Is this continue necessery here ... (by Bazzy)
by ripley
creating objects
 
Hello, i have a question : if I have classes like: class A { public: A(int); } class B { public: B(const A&); } how...
[2 replies] Last: Thanks, at least I got something right. :D (by ripley)
syntax error
 
Why do I have a syntax error in this line ? I think that everything is correct fMaxElem = fabs(double pfMatr[k*nDim + k] , int k); // error C2059: syntax err...
[6 replies] Last: How do they call the functions in the tutorial ? : addition (5,3); ... (by R0mai)
by TR4N
Question about Data Types
 
Mmmk. I have a question about data types. I am reading the book, C++ Primer Plus by Stephen Prata and I am confused about char, short, int, long, etc. If the ...
[3 replies] Last: If the size of the data types vary from computer to computer, how wou... (by helios)
December 2009 Pages: 1234... 23
  Archived months: [nov2009] [jan2010]

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