Beginners - November 2012 (Page 37)

how do i include pre-existing classes.
 
Hi guys, I'm using the C++ Primer 5th Edition to learn C++ and I'm stuck on a problem involving classes. At this point I haven't learned how to create my own...
[6 replies] Last: Kevin145, remember that at 'some' point, you'll want to keep all of th... (by Incis B)
by Niven
Help with lag
 
I'm using OpenGL to create a snake game program but, for some reason, the program is extremely laggy. I didn't notice this at first but it came apparent as I tr...
[1 reply] : There is a doubly nested loop that runs 209000 times in the middle of ... (by shacktar)
Run-Time Check Failure #2 - Stack around the variable 'grade' was corrupted?
 
I wrote a program to calculate the average of 10 grades a user inputs. The program works and gives me the average, but at the end when it's supposed to close I ...
[17 replies] Last: Oops, disregard. :) (by Raezzor)
cant see code
 
When I open my solution, I cant see my code. I can see the output, solution explorer box, properties, and toolbox on the side but none of the written code. I ...
[2 replies] Last: Double click on the source files that are listed in the solution explo... (by cire)
Undefined Reference To...
 
I'm using multiple files for the time, using Code::Blocks and the GNU compiler. I have 3 files. stockmg.h #ifndef STOCKMG_H #define STOCKMG_H #in...
[2 replies] Last: Aha! Thanks! (by bosox99)
Stats Problem, how to approach?
 
solved thank you
[7 replies] Last: Also, you don't need an array here. Replace array with a simple in... (by Chervil)
generating random doubles
 
Hey guys I was wondering how to generate random doubles between the numbers of 1 and 2, so far i have double)(rand()%2+1) but that only generates 1 or ...
[3 replies] Last: also i should note i need to store the numbers into an array, not just... (by nickcplusplus)
Array-Random Choice
 
j-> 6,8,13,24 I just wanna random chose one of these numbers but i can't Can you help me? I know,i should make an array from these numbers and then have a ...
[no replies]
Explicit Specialization error.
 
Hi all. I have an exercise where I need to declare an explicit specialization of a template to accept an array of pointers to strings, then use the specializati...
[17 replies] Last: Ahhh right. Makes sense now. Thanks Ne555. (by Raezzor)
printing an array in reversed order using recursion
 
I need to print the contents of an char array of any size in reversed order using recursion. I am stuck as I can only get it to print out in the order it is in ...
[2 replies] Last: thank you vary mach .... i love this website and i love you people you... (by Reema Alqerm)
Looping help
 
Hey guys! I'm writing a simple program with ifs and else if and etc, below is something... cout << "pick either red or blue" << endl; cin >> color; if (...
[7 replies] Last: New here, and I was looking for something like this, although what I'm... (by Darby)
using recursion to print an array of type char
 
i have a problem in recursive i need to print a character array of any size RECURSIVELY this is my code and the problem in the comment #include<iostream> ...
[2 replies] Last: thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... (by Reema Alqerm)
by khal
vector of struct Question
 
Hi, I am trying to figure out how to implement a print() function for this code. test.h private: struct node { int data; node * le...
[3 replies] Last: The function should take a node, not a vector of nodes. Then you call ... (by Athar)
Help!!!!!!!!!
 
Does anybody can help me out to do this please? Declare an overloaded equality operator (==) member function for the Time class. Declare an overloaded out...
[2 replies] Last: Make an effort to write the functions, then post them and we can help ... (by freddy92)
Arrays with 3 ***?
 
Hi! I'm trying to learn about dynamic arrays, but it's been a little hard for me, I don't understand why they have these *** or ** These are some examples o...
[1 reply] : This declaration: int** is a pointer-to-a-pointer; its value is the ... (by closed account zb0S216C)
by thippo
Several Questions on a Non-Malicious Keylogger
 
Hello, I took a basic keylogger I found on this site and modified it to fit my needs. I'm new to the concept of having different windows opened by the program (...
[no replies]
Help with random numbers, min and max
 
Hey guys, im new here and fairly new to c++, Im looking for some help on how to modify my random function so that i can input min and max values. I have tryed l...
[12 replies] Last: @Cire, that was awesome. I'd never seen a real explanation of how that... (by ResidentBiscuit)
by ordelo
Trimorphic
 
Hello, everyone! Awesome forum! Ok, here we are. You have probably heard it a lot of times but I have just started getting familiar with C++ programming. So...
[2 replies] Last: Thank you Stewbond! That was really helpful! (by ordelo)
I need some quick help
 
compiler tells me there is a parse error before the '(' on line 10. can anyone tell me what it is? #include <iostream> #include <iomanip> #include <cmath>...
[6 replies] Last: nt i = int pow(10,num); double a = num1 * i; double b = a + 0.5; doubl... (by IWishIKnew)
reading from a file string and integers
 
i need to read from a file a string and some integers. in between them are characters. eg. point, [2, 5] i managed to read a like using getline(afile, input), w...
[2 replies] Last: @alexiel Here is what I do to parse things like that: I write functi... (by IWishIKnew)
November 2012 Pages: 1... 3536373839... 75
  Archived months: [oct2012] [dec2012]

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