Beginners - May 2015 (Page 11)

by Winsu
Vector vs List
 
Does anyone know what is the main difference between Vector Template and List Template. It seems to me quite similar....maybe It's just that list can be acce...
[7 replies] Last: Mutexe It's not related to an intereview but It's similar....I have se... (by Winsu)
How to program A PID controller
 
Hi Guys.. I am bit stucked at a problem here.. I am bit confused on how i should Code a PID controller as generic as possible. Especially the I part and D pa...
[no replies]
Return Value Function Error.
 
When I'm typing the correct password, it's telling me incorrect. Where did I go wrong? Please explain. #include <iostream> using namespace std; int disp...
[5 replies] Last: Thank you! (by closed account yR9wb7Xj)
Skip List not Building
 
I'm building a Skip List for a program. So far, I've managed to be able to only insert in the correct order to the bottom level. There are 5 other levels above ...
[no replies]
Array trouble
 
For some reason my program does not want to copy an array to another array. Here is the function that should be copying it over. void reshuffle(int player , ...
[4 replies] Last: What was the problem, post your solution so anyone else having this pr... (by R23MJ)
by chile
shopping cart
 
I'm creating a shopping cart program with 2 classes. Class 2 points to class 1. Class 2 contains a function called MyPrice that calculates the total. I'm obviou...
[2 replies] Last: The error message says the error is in ShoppingCart::totalPrice. You... (by AbstractionAnon)
hamiltonian circuit
 
hello, in my program have array of objetcs about of a atraction park in my class atraction have 2 attribute string (for the name) and integer x (fun level), I ...
[1 reply] : Please don't start a new thread for every question about the same prog... (by AbstractionAnon)
VS 2010 C++
 
Hello , Im new member here and i have one question. on my VS 2010 i wrote a simple code but it didnt debug!! and there is an error message if i pressed Ctrl+F5...
[11 replies] Last: Your best bet would be to make a new project. I can't tell you what is... (by R23MJ)
by chile
data member of arrays of another class
 
New at programming and need a bit of guidance... If I have two classes, let's say class Pink and class Yellow and I want to create an array as a data mem...
[4 replies] Last: thanks!! (by chile)
Superbowl Array ?!?!!?!?!?!
 
Hi, So I've been tasked via project to write an array using a data file. I know how to write basic beginner c++, but for some reason arrays are ALWAYS lost to...
[6 replies] Last: Thank you so much, got it figured out!! (by kserg652)
Static help!
 
I want to overload a function that has arguments of: void TimedPrint(std::string name, TYPE x, sf::Time printSpeed) so I can use other data types like vecto...
[3 replies] Last: Expanding on what shadowCODE suggested, you can create a class and p... (by AbstractionAnon)
Need Help on Code
 
Hey guys and gals, I'm 15 and looking to start writing some code for anything, games mostly though and I was wondering if the Test Based game is headed in the r...
[4 replies] Last: Ok cool, thanks Anon for clarifying that up :) Ill be on my marry way! (by Chahunda15)
compare strings
 
hello, in my program have array of objetcs about of a atraction park in my class atraction have 2 attribute string (for the name) and integer x (fun level), I r...
[1 reply] : Line 45 is not legal c++. When declaring an array, the dimension must... (by AbstractionAnon)
Dynamic Array Using Class
 
Hi all, I am trying to do a little review with classes and pointers. The program that I am working on deals with the grades of the students in a class. What ...
[1 reply] : The algorithm or "idea" I have for this is to use a double pointer to... (by AbstractionAnon)
need help with this C code
 
It compiles but it won't search the character that you want. Enter a sentence to seach: hello world Enter a character to search for: e is found 0 times....
[3 replies] Last: No. That would simply set the pointer to address 0, which is an illeg... (by AbstractionAnon)
Correction of a crooked cylinder
 
Hi folks! I got to work on a cool project. My programming skills are pretty basic. I would like to start off with a math problem and figure out if it is solvabl...
[1 reply] : http://arduino.stackexchange.com/questions/816/c-vs-the-arduino-langua... (by Duthomhas)
by Claws
Irreducible Fraction
 
I need to do class inheritance. There are 3 classes: Base class Pair, and 2 derived clases from Pair :Rational and Complex. I have no question about class Comp...
[no replies]
Having trouble with my function call
 
Why is my function not being called? This little program I created just for my own benefits to understand functions. What I've just learn today. Do not give me ...
[18 replies] Last: Okay now I see why we didn't need bool cInput because we already decla... (by closed account yR9wb7Xj)
i cant understand the code
 
this code finds the gcd of two numbers i cant understand how it works. first you get the remainder of the bigger number by the smaller number and then set th...
[1 reply] : Looks like: http://en.wikipedia.org/wiki/Euclidean_algorithm PS. Sty... (by keskiverto)
Problum returning an array from nested loops
 
Ok, I am having a problem that my arrays will not come out of my nested loops. Only the last value will come out and if I try and print another value it comes u...
[7 replies] Last: I am seeing a lot of problems and also the program fails to compile u... (by Codermik)
May 2015 Pages: 1... 910111213... 40
  Archived months: [apr2015] [jun2015]

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