Beginners - October 2014 (Page 22)

deleted function
 
Hi,I need some help with a certain code , okay The problem Is I keep getting an error that I can't understand. use of deleted function 'std::basic_ostre...
[6 replies] Last: I stick to lambdas from now they are really cool lol. (by closed account SECMoG1T)
Classes - function that will access another class?
 
#include <iostream> #include <vector> using namespace std; class NPC { protected: int hp, mana, level, damage; public: void DealDamage(NPC, int); ...
[3 replies] Last: but hp is protected, not public :X And? I am accessing it from inside... (by MiiNiPaa)
No such file or Directory
 
I'm new to I/O streams and working with files when it comes to C++ and I'm trying to write a program that will take data inside a file and output it in an organ...
[3 replies] Last: Here shoppingList.open("Shopping.txt"); for examples I use Windows ... (by closed account SECMoG1T)
by Waka45
Unitialized local variable
 
Hi guys I'm new to C++ and I'm taking a class for this but I'm sort of stuck on this assignment. I keep getting errors for uninitialized local for my computer_g...
[2 replies] Last: I was able to figure out the problem, I had to set my computer guess i... (by Waka45)
correct way to get char input
 
First I use this, the compiler show no error but the cmd stop working. char * binput; cin>>binput; Therefore I change to this one, also from tutori...
[1 reply] : the cmd stop working. What memory binput point to? You are trying to ... (by MiiNiPaa)
Help
 
I have to Develop a program that determines the number of days, hours, minutes and seconds it took a beacon's signal to travel to the Space Expedition's communi...
[6 replies] Last: Thanks for your help, I appreciate it :) (by JayJay007)
by cyter
Persistent redefinition error
 
Hi, I have edited and re-edited my code but this error never seems to go away: The error is: error: re-definition of 'rectangle::rectangle(double, double...
[3 replies] Last: thank you JLBorges (by cyter)
pow ambiguous call to overloaded function
 
The purpose of the program is to remove a specific substring from the string, but for some reason it gives me an error when using pow. I don't how I used the fu...
[no replies]
Order of Operations Help
 
Ok, I wrote this simple code and it works my only question is when I dont use parentheses around the equation why do I get an incorrect average. I guess I'm try...
[2 replies] Last: kind of embarrassed i didnt catch onto that quicker. Thanks (by Vesuvius803)
How can I align the text horizontally and show every name
 
If you run this program all the names of every college and university will be aligned vertically and quite frankly it looks like a mess. For example, the na...
[7 replies] Last: Alright looks good. (by deathslice)
by Jon15
Variable Scope/Global Variables
 
I am trying to calculate the value of e to a given accuracy. I am using a separate file for my function that calculates it. I don't think my function is being u...
[5 replies] Last: I am not supposed to have any arguments that are not global variables ... (by Jon15)
Cant get the size of the array
 
Write your question here. // vector::operator #include <iostream> #include <vector> #include <string> using namespace std; int main () { std::cou...
[2 replies] Last: Why are you using 3 different variables ( inputString , s and myVec... (by Peter87)
Printing index of elements in a char vector
 
I have a program which writes a number of chars into a vector but I canĀ“t print an index of them. I need to know on which index where the chars are ...
[2 replies] Last: Solved it! Thank you :) for (int i= 0; i < myVector ; i++) { std... (by patriic48)
by ejcpp
Need HELP!!
 
My Assignment:Today BandN book stores have a deal on eBooks. If you order today you get a discount. The discount is 15% off your total order. Each book costs 8....
[1 reply] : Your PrintInstructions function should return the number of books requ... (by ajh32)
#include in MV2013
 
I have 2 files: Source.cpp and Header1.h. #include <iostream> #include <Header1.h> I keep getting an error message saying "Cannot open source file ...
[2 replies] Last: Thank you. (by gabor53)
class and header
 
how can i access the functions in header to a class in main.cpp i mean what is the use of header file if i cannot access it on a class
[10 replies] Last: @ajh32 i see but it doesnt work due to my issue (by xenovia12)
by clodi
2D lattice, quick question
 
Hello, I have to work with a 2D lattice. I have been storing it as a 1D array. Would storing it as a 2D array improve the program in terms of speed and r...
[8 replies] Last: Stack-wise / performance-wise and everything else-wise there is NO di... (by MiiNiPaa)
delete()
 
why delete cannot be applied to pointers that were created on stack. :) with regards, vishnu k.
[1 reply] : because there is no memory to free up. memory is only allocated on th... (by mutexe)
numbers, Positional notation, base conversion
 
hey guys! i want to write a code that makes it possible to convert bases in positional notaion of positive integers. i dont know which container i should cho...
[no replies]
Need help with Functions
 
I have this homework that requires me to have five names and five heights that goes with the name. With that I'm suppose to do that with functions. My question ...
[1 reply] : In line 72 of function average , you have the line int f, g, h, ... (by shadowCODE)
October 2014 Pages: 1... 2021222324... 70
  Archived months: [sep2014] [nov2014]

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