Beginners - August 2013 (Page 20)

by mekat
C++ about arrow control
 
Write your question here. Hey I need to change y = down , x = up , 2 = ... what ever become to the arrow control left = left , right = right , down = down , ...
[1 reply] : Try changing yt instead of xt under case 'y'. Think about how increasi... (by kevinkjt2000)
i need an additional code. pls. help
 
1. Write a program that uses a function which computes for the Prelim Grade. With the following details: a. Quizzes ( Average of 3) b. Exercises ( Average of 3...
[2 replies] Last: Oh my gosh... I could not do this... I would just write the functions... (by IWishIKnew)
error C2062: type 'int' unexpected
 
What could be causing this error? Here is part of the program: #include "stdafx.h" #include <iostream> #include <stdio.h> #include <iomanip> #include ...
[2 replies] Last: Thank you very much!! It worked :) (by beginner2012)
Runtime error when printing std:string.
 
Hi. I am trying to learn how to use inheritance in C++. I have a base class: Animal. I also have a sub class : Cat, which inherits Animal. I am trying to ...
[10 replies] Last: Ok, I will take a closer look at how namespaces work and I will rememb... (by Zerpent)
Why is it bad to put stuff in global scope
 
Hi there I was just wondering why is it bad to declare variables in global scope like it can make code shorter for ex Int a = 0, b = 0; int add() { Cout...
[3 replies] Last: Thanks I'm nearly finished reading it.thanks guys, I got it. (by closed account EwCjE3v7)
pass 2-d arrays with different names to the one function
 
How can i pass 2-d arrays with different names (but the same structure and data type and size) to a function? using namespace std; void OutputArray ();...
[4 replies] Last: What about reference? (by closed account EwCjE3v7)
dynamic memory allocation
 
char *abc= new char in the syntax above, what is actually happening? i mean why i have to specify the type "char " twice. also, i have tried to store a strin...
[4 replies] Last: I'd recommend you look at the STL classes std::string (for character a... (by MikeyBoy)
by Aibsr
return a reference
 
heeyy when should i return this and when should i return *this in class functions? CVector& CVector::operator= (const CVector& param) { x=param.x; ...
[2 replies] Last: A reference parameter saves a temporary. a = b; // pseudo expands to ... (by keskiverto)
Questions regarding parallel processing.
 
Hello everyone, I am working on a project for RF signal data receiving and sampled data processing. Right now, I have two separate functions, one function ca...
[1 reply] : I presume that the receiver writes a new file every time (or at least ... (by keskiverto)
Help with two dimenstional array and ifstream
 
Hi everyone this is due in a few hours and have been slaving over it for the past two days. Basically I'm getting an error when the second function reads the ...
[4 replies] Last: Please show your student.dat file. Do you make sure that it is empty b... (by abhishekm71)
Declaring "end1" in scope.
 
I'm writing a program that converts Celsius degrees into Fahrenheit. So far I only have one error, and it tells me that "end1" was not declared in scope. How do...
[3 replies] Last: Thanks guys. (by Ragnell)
by Jazpy
Variadic function
 
Could anyone be kind enough to help me figure out why my code doesn't work? It's my first time trying anything with variadic functions, but from the few tutoria...
[4 replies] Last: Thanks for the help, it's working as expected now this worked too in ... (by Jazpy)
While loops and Programing Logic
 
Sorry for the delay, but I was actually going to post about Loops. I am trying to make a calculator that accepts inputs and outputs also if one is wrong they c...
[3 replies] Last: I'm aware. I was hoping the TC might clarify as to what his/her questi... (by Zhuge)
by SkaN
Segmentation fault caused by addition operation
 
Hello. I occurred a problem. Script faults with "Segmentation fault". GDB points command sum += arr ; in the Row::mean() function. All the variables are defined...
[11 replies] Last: Thanks very much :) (by SkaN)
Binary Tree
 
I am trying to learn about binay trees And I want to make the program able to balance the tee when user wants. For doing that it counts the number of nodes and ...
[6 replies] Last: thanks for replies I will look at them at choose a good one :D (by closed account 1v5E3TCk)
Virtual Base Class
 
Hi :). I just read about virtual base classes. From what I understand, when you have multiple inheritance from a base class and create instances of the deriv...
[5 replies] Last: Ok thank you so much :). (by Zerpent)
by ar2007
fstream fail open file
 
hi, in this simple program to learn the i / o on files, the code works, but it always fails to open the file. what determines the success of the call of the f...
[13 replies] Last: Some explenation why it did not work. Your say test_file.open and th... (by Nickel Dare)
by JHEN18
array
 
make and run a program that will accept a user inut not more than 80 chracters and find the total number of inputted character..
[9 replies] Last: I would simply declare the array with 81 and once it reaches the 81st ... (by Nickel Dare)
Access an function of an class
 
Could someone please explain how to properly access a function of an class my compiler gives that error: error: cannot call member function '' without object ...
[7 replies] Last: Doing it the wrong way won't give you a better understanding ;) (by LB)
Instruction
 
Is there a good instruction program for learning C++? I want to learn to program games and other helpful and fun things. Thanks Dylan
[3 replies] Last: C++ is very low level, there is a lot to know before learning graphics... (by IWishIKnew)
August 2013 Pages: 1... 1819202122... 51
  Archived months: [jul2013] [sep2013]

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