Beginners - November 2011 (Page 47)

error LNK2019
 
Hi, I am new to C++.I am doing a project which contains camera. So I am using OpenCV 2.3 to open camera for capturing pictures. I've add additional libraries ...
[no replies]
Variable names. Scope question.
 
Can a variable be declared within a function with the same name if it's within the brackets of an if statement? like function() { int a if a = 12 { int a ...
[1 reply] : Yes, however it is not a wise thing to do, you will soon get confused ... (by closed account 1vRz3TCk)
Function program! Please help!!
 
Does anyone know what are my mistakes made? I am writing this program to calculate the total distance travelled from home to office, office to NTUC and NTUC ba...
[9 replies] Last: No Problem. Glad to help. (by hbjgd)
map with object
 
Hi all, Please help me on this i have a class struct object that contains a few variables struct node id map<int,string> on my main i wish to ca...
[no replies]
random number Question
 
srand(time(0); cout << (rand()%19)+1; how come this isn't producing random numbers between 1-20?
[6 replies] Last: very true, lol. Thanks for pointing that out :). (by InterFiction)
Pointer based lists ????????
 
Again its me being new to c++. I get segmentation errors and i just plane dont understand pointer lists yet. /*******************************************...
[6 replies] Last: Thanks to everyone who helped me it works now if anyone wants the sour... (by LiverEatnJohnson)
Big Numbers and Classes
 
Ok I am a bit new to c++, I started as a java and using classes is a bit diffrent, and some help would be great here is my code for all my files any help wo...
[4 replies] Last: Thanks for the help it works now but the source code is too big so if ... (by LiverEatnJohnson)
Copy constructor and assignment
 
I have a problem with using the copy constructor and assignment operator in main() How do you use copy constructor in main()? How do I use the assignment c...
[4 replies] Last: How come the breed is not passed along, only the Pet data types are? ... (by shacktar)
Functions
 
Does anyone know what is these codes trying to do? And what are the mistakes in it? #include<stdio.h> int f(int x, int y); int main() { int x, y,...
[8 replies] Last: Thank you for taking your time to explain! Yup i guess this program ... (by cozyhozy)
Linked lists problem
 
I am getting a Signal received: SIGSEGV (?) with sigcode ? (?) From process: ? For program grocerylist, pid 7,286 error from netbeans here is the funcution...
[3 replies] Last: Too much source code to share but if you want it let me know it works ... (by LiverEatnJohnson)
map with class as values
 
Hi all, I'm wondering if i could create something like map<key,class> kind of template. if it's even possible? how would i access, say the variables in that ...
[2 replies] Last: hi sir, could you provide me an example of access that particular cl... (by Cosmosgaia)
by nebula
Random numbers between a specific set.
 
Hello guys. I was wondering if there is a function or a way to generate random numbers from a specific set of numbers. For example, let's say I want to generate...
[6 replies] Last: also if you come back to check something you might want to seed random... (by InterFiction)
C++ book
 
What book titles where I can learn a little more in c++. Practical C++ is not meeting with my vocabulary requirement. But can understand a few things from there...
[2 replies] Last: I'll try my best and ay problems or situations will be reported here f... (by Mesmaroth)
trouble with keeping count of input
 
Hey all I have a program that I have been working on and am having some trouble with keeping count of all the users grades. I know that now I am only counting ...
[no replies]
Struct Arrays whats next help me plz
 
The next step Im supposed to be able to assign a random number of quiz scores to each student and access each student by their student number and give an averag...
[no replies]
Merging columns from two different text files
 
Hi guys, I am trying to merge two txt files with the same exact name from two different folders. ie(C:/A folder/abc.txt and C/B folder/abc.txt) The input...
[1 reply] : Do you have any code at all so far? Or do you need a skeleton to start... (by hbjgd)
need help giving 2D array an initial value
 
the tutorial shows that something like this int billy = {16, 2, 77, 40, 12071}; is possible. Is it possible to give a 2D array an initial value?...
[6 replies] Last: damn it. thanks Ron. Didn't notice that missing comma. Also codekiddy,... (by agevkired)
Help with functions
 
Hey all I'm having trouble solving the last part of my code. I want to determine letter grade from the percentage score.When I try to run the code I get "You go...
[1 reply] : double calcLetterGrade() { double percentage = 0; if (percentage ... (by Branflakes91093)
Threading Help
 
Hello all I am having a bit of trouble learning pthreads. I normally do not post unless I have no other choice but I can not for the life of me see what is wron...
[3 replies] Last: That is brilliant!!! Thanks so much. I like the struct idea it seems s... (by TheMassiveChipmunk)
stopwatch problem
 
I have to create a stopwatch program and I think I have it all finished and it runs without any errors. The problem that I am having is that I can't get the clo...
[no replies]
November 2011 Pages: 1... 4546474849... 65
  Archived months: [oct2011] [dec2011]

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