Beginners - June 2012 (Page 18)

Makefile Problem: Circular dependency dropped.
 
Hi, I had a problem about Makefile when I compile my c++ files. Please give me advice how to remove the circular dependency dropped error. thanks My makefile: ...
[3 replies] Last: Circular dependencies occur when you include File A in File B and at t... (by Computergeek01)
Help with changing array/tic tac toe game
 
Hi y'all. I'm trying to teach myself C++ for my own personal betterment. I have a little experience with JS and Java, but I'm just diving into C++. I'm work...
[5 replies] Last: I would make the while loop into a do while loop but I don't think tha... (by Computergeek01)
Simple problem .
 
distance between two point (x1,x2)and (y1,y2)is governed by the formula D2=(x2-x1)2+(y2-y1)2 write a program to compute D . but my problem is;;; Here , h...
[7 replies] Last: It is incorrect at least because you showed early another expression ... (by vlad from moscow)
reverse
 
Hello Help please I know that reversr function is: void reverse( int numbers , const int numbersLen) { for (int i = 0; i < numbersLen / 2; ++i) {...
[3 replies] Last: It takes the first element of the array and the last element of the ar... (by vlad from moscow)
error LNK2019 for constructor and destructor
 
The code returns a LNK2019 error for the constructor and destructor. This is older code that I cannot rewrite so I'd like to fix this error in VS2008. the er...
[9 replies] Last: me to (by forestPeterson)
why random number have to use header time.h?
 
hey guys, like my title above, why random number have to use header #include time.h? and i always found syntax srand(time(0)); can you explain to me about thi...
[4 replies] Last: It doesn't have to be the current time: you may see std::random_devic... (by Cubbi)
++count and count++ ?
 
Hello people. I was just wondering what the differences are when I put the ++ in the front or the end. I have tried to find the difference using (for or while...
[14 replies] Last: Vlad...it's true. no more questions. thanks you all. (by Summerson Goncalves)
Two Semicolons
 
Hi all! I was reading through some questions on the General C++ Thread, and I came across the following code, from which I don't understand the two ;;'s: ...
[3 replies] Last: Thanks! I understand! (by Fransje)
by x1222
Nested Class Scope
 
Hello, If I construct the nested class inside the outer class function, is there a way to make it available to the entire outer class? Example: class...
[3 replies] Last: Yes. I believe you wanted something like: class Outer { public: ... (by Volatile Pulse)
(double )RAND_MAX
 
hello I'm a beginner... and I want to understand some thing please: int Mont Carlo method ... I read this code: double x = rand() / (double )RAND_MA...
[3 replies] Last: thnaks ^_^ (by Sarah93)
a
 
aaa
[14 replies] Last: getline() on line 17 has the arguments in the wrong order. What for t... (by Lowest0ne)
Exception Handling syntax
 
Howdy ! I need guidance on how to properly use exception handling. I want my function to take a single char and if its anything besides a letter, handle the exc...
[4 replies] Last: You don't particularly need to include <exception> I wrote this for c... (by Lowest0ne)
Strange output from functions of object pointers in a std::vector
 
Hi, I've been making a card game in FTLK, and I have a vector of Card objects, but when I used my custom function like int a = 0; a = card_vector ->get_n...
[1 reply] : I think there is no a telepathist in the forum. You should ask your qu... (by vlad from moscow)
by leeto
generic inheritance
 
Very simple idea: There was <template> Array that take class Point, multiply to a factor and print this bunch of objects of class Point Now I try to split ...
[3 replies] Last: What compiler said 1>------ Build started: Project: HP3_4.2b_ex2_wit... (by leeto)
Weird string symbols
 
Hi, I'm making a code that looks through an input string for double letters, and whether the number of characters is even or odd. If there are two identical ch...
[3 replies] Last: You're using C-like strings. char prepared ; is 1000 chars long, you... (by knuth)
What's the output?
 
What is the output of the following C++ code? My answer was "d" (that is 10) because is my understanding that for a while loop to execute the expresion must e...
[3 replies] Last: yes num cannot be greater than ten unless you use this operator >= s... (by ozone)
no matching function
 
The error is in the line Galaxies[Galaxies.size()-1].AddSatilite(Galaxy(HubbleType,Redshift,TotalMass,StellarMassFraction)); saying that "error: no matc...
[1 reply] : Try this: Galaxy g(HubbleType,Redshift,TotalMass,StellarMassFract... (by coder777)
Simple Table or cursor move ?
 
Hi Guys, I am new in c++ and I was wondering how to make similar to below example : Your Name :__________Your Father Name :__________ Your Mother Name:_...
[3 replies] Last: @whitenite1 Thanks man, the idea is clear , but its not working in per... (by kail2012)
How many pages do you have to read to become a professional c++ programmer?
 
Hello i was wondering, I suppose you learn c++ programming from programming... but surely you have to learn it from a book. How many pages do you have to rea...
[10 replies] Last: you will be master of only theory in c++ but not in programing (practi... (by gurukrupa)
help
 
realizati un vector a carui elemente sunt primele 33 nr divz cu 5 - afisati elementele vectorului folosind procedura
[1 reply] : #include <iostream> using namespace std; void afisare(int );//protot... (by quasar92)
June 2012 Pages: 1... 1617181920... 51
  Archived months: [may2012] [jul2012]

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