Beginners - December 2015 (Page 7)

List the operators that require an lvalue. Why do these operators, and not the others, require an lvalue?
 
Question from book. Is the answer increment/decrement operator? If so, is not a in a++ a rvalue as it takes the value of a and not the location of a?
[3 replies] Last: Thanks a lot! (by ephraimr)
Help with OOP (1,2)
 
this is my .cpp file: #include <iostream> #include <stdlib.h> #include <math.h> #include "english_weights.h" //Set EnglishWeight to 0.0. EnglishW...
[20 replies] Last: No, I didn't :( I hope my instructor doesn't take off too much... (by Crthomas)
Cant show input and output
 
Help me please.Need to do coding about student information.The problem is my coding wont show any input and output...Here is my coding #include <iostream> #incl...
[3 replies] Last: thanks guys...got settle the problem :) (by Ali1414)
const and pointers and type declerations
 
Ok so I'm learning so much every day and trying to remember it all is difficult, I'm sure I've seen some info about this somewhere but I cant find any definitiv...
[1 reply] : Ok so I found some material that was useful, here is what i got from i... (by ChemicalBliss)
by alitt
calculator with using function and for loop
 
hi guys i'm gonna make a calculator and just add 5 numbers,i wanna using for loops for getting 5 number but i have problem #include <iostream> using ...
[17 replies] Last: thank you so much my problem has solved (by alitt)
Stuck in an Array Problem
 
Hey guys, I'm going to start off by saying that I'm a total beginner noob, and that I'm posting here because I need help with this array program I have to make ...
[10 replies] Last: Thank You guys for all the support, I managed to create the program, a... (by deffstar)
by t800
Help with floating point number.
 
I created a program to print the sum of the values implemented on myFirstFunction as follows: #include <cstdlib> #include <iostream> using namespace...
[3 replies] Last: The function myFirstFunction() looks ok. Well done. However float ... (by Chervil)
need and idea with mapping or any other technique
 
i want to write such a program in which a function will take a key and will give out the corresponding statements graphically something like this Key----- (...
[1 reply] : A couple of possibilities: 1) You could use std::map with a string f... (by AbstractionAnon)
Hundreds of Strings, Ideas?
 
I'm writing a program that will hold hundreds of strings. Sadly, they are all unique, so I can't use any clever ways to generate them. I need advice on how to s...
[2 replies] Last: Yea, I was worried about hardcoding into the main. I'll look more into... (by Captain Awesom)
Pass vector of vectors, AND just one of its vectors to a function
 
I have a vector of vectors, aptly named 'verrr'. In my function 'foo', I want to modify both verrr and verrr . Is it possible to only pass verrr to 'foo'...
[1 reply] : If you only pass one element of the vector to your function you can on... (by jlb)
border
 
Write your question here. I want to create a border for my program, but I don't know how to. I am a beginner. Thanks. #include <iostream> #include <string> ...
[1 reply] : One step at a time. First create a left and right border to the output... (by Chervil)
my switch statement doesnt work
 
im trying to make my switch statement work but when i press y it skips case 1 code. #include <iostream> #include <fstream> #include <string> using namespa...
[4 replies] Last: getline(cin, extraInfo); causes the program to skip the userinput T... (by dhayden)
store a string to an integer array
 
Hey I'm a beginner in C++. I want to read a number(8-10 digits) as a string and then copy it into an integer array but I have no idea how to do it.
[4 replies] Last: Thanks. Well, to convert from a character such as '5' to an integer, ... (by Chervil)
4 way linked list (1,2)
 
Hello. Just wanted to ask if its posible to make 4-way linked lists? http://prntscr.com/9bn826 Like this. What i need is,i need to make multiple li...
[23 replies] Last: I still think it's much easier to think of this as TWO data structures... (by dhayden)
by JoanT
Sorting book title in order alphabetically
 
How do I return a vector of all books sorting by title in alphabetical order? I created a vector called book which consist of the book title, ID and author but ...
[12 replies] Last: @Thomas1965 Thanks. I understand more about default constructor now. I... (by JoanT)
Function call with parameters that may be unsafe error
 
Hey, I was trying to implement this Tnode class that has to store array of chars on free store to represent word and a simple count variable. #include <str...
[3 replies] Last: Ok tnx for answer man appreciate it :) (by etrusks)
array of chars on free store
 
First of all this is a part of an exercise. Is it possible to create a pointer to an arbitrarily long word stored as an array of characters on free store using ...
[3 replies] Last: Cool, tnx a lot guys. I didn't notice that when using new, size of an ... (by etrusks)
by osur
vector of a class?
 
Hello again, I wish to make a vector of class VItem, so that the vector can store both of the strings "word" and "pos" per space (or whatever the proper term f...
[2 replies] Last: You could use setters and getters. class A { int number; pu... (by integralfx)
Guideness Required
 
Created a program to get total marks from the user Calculated his obtained and then display the total obtained marks and percentage i wonder what is the mista...
[2 replies] Last: Or you can cast one of the variables to a float. // C-style cast p =... (by integralfx)
C++ Button and Textbox
 
Hey I'm new here and I need help with something. I need help putting a pointer, address, and offset into a button. The button will do action whatever is in the ...
[8 replies] Last: private: System::Void button1_Click(System::Object^ sender, System:... (by Tomoko Kuroki)
December 2015 Pages: 1... 56789... 43
  Archived months: [nov2015] [jan2016]

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