Beginners - December 2017 (Page 12)

binary - operator (subtraction) and a unary - operator (negation)
 
how can i let the computer distinguish between a binary + operator (addition) and a unary + operator (identity) and between a binary - operator (subtraction) ...
[1 reply] : For -(-3--4)-5 we would get an error. The C++ parser is a greedy ... (by JLBorges)
Reading and outputting CSV from .txt
 
So I am working on a home automation project so I can control my airconditioner though an arduino, but to store the data from the various commands I need to con...
[2 replies] Last: Thanks that has got the correct numbers to output but I have run into ... (by WULTKB90)
Calculator code build error
 
I am writing a calculator menu code with outputs, but I am constantly getting the following error when trying to build: https://i.imgur.com/0BzhOHb.png how ...
[4 replies] Last: Hello vacisneros, I am not familiar with the 2017 version nor with wh... (by Handy Andy)
by dksjc
TicTacToe 2D Array
 
Can someone please help me. I cannot for the life of me figure out the right way to make sure the same spot on the board isn't chosen again. Thanks in advance! ...
[2 replies] Last: Play around with this. #include <iostream> #include <iomanip> #inclu... (by Manga)
Long day
 
Hi guys so it's been a long day and I can't vent how angry I am I love programming and I want to be the best programmer I can be and I have been putting count...
[1 reply] : bool bookSeat(int row,char letter,int lastRow,int lastLetter){ ... (by adam2016)
Airline ticket system take two
 
Hi guys I decided to review an old program,the only difference is that I'm running it on a different IDE maybe with a different compiler but not certain anyway ...
[4 replies] Last: Thanks Anon much appreciated (by adam2016)
by arf
Random Elements in Array
 
Hey. I have to write a program for lesson. • Create an array 10x10 • Elements must be random selected between 0-100 • A function must control the element...
[9 replies] Last: Hand Andy, magnificent! Thanks everyone. (by arf)
bool issue
 
Why is my bool only coming out as whatever i define "chance" (ie, true or false) as at the end of my code? bool CaptureAttempt(Monster monster) { int c...
[2 replies] Last: Furthermore, you have other errors as well. (1) You never initialize c... (by Ganado)
seekp() and tellp() (I/O)
 
hi guys I'm studying and playing around with the filepointer the seekg does exactly what I expected it to do it goes to the offset where you want to position it...
[3 replies] Last: is there anyway to write to a certain position with append mode on? ... (by jlb)
HELP
 
anybody help me i m beginner how to learn c++
[3 replies] Last: You could always start at https://thenewboston.com/ It's a pretty goo... (by fiji885)
by vr777
Mancala C++ Project (Part 2) *ALL HELP NEEDED*
 
***** MY QUESTION(S): So I'm at brink of finishing my project and I'm stuck and have a few issues. Firstly, I mention under rules for play mancala in TRICKS "...
[2 replies] Last: This abs(pit-7 == start_pit) is probably not what you want. You can... (by coder777)
by pj123
Overloaded function "getline" doesn't match argument list?
 
I'm supposed to have a doubly linked. Each node should store a person's first and last names, along with their age. Initialize the list with 5 nodes. It should ...
[3 replies] Last: how did you found it ? Any special tools to compare the codes ? Sad... (by lastchance)
How To Return Many "Char Data Type"
 
I have this project to work on, and in one of my function, I want to return more than one "char data type"... I have tried this, char* myFunction(char*&)...
[5 replies] Last: globals are terrible. They make things easy for tiny programs and simp... (by jonnin)
all rabbits have same value
 
linked list of rabbit objects,but it seems like all the rabbits have the same values even though they were created after each other any idea why? thanks h...
[5 replies] Last: Hi Ganado I found the answer I'll post it here in case anyone else stu... (by adam2016)
Calculator, help with input
 
Hello, im very noob at this. This is a calculator i wrote that kind of works. The thing i want to change is the 1,2,3,4 input to add,sub,mul,div. I have no ide...
[2 replies] Last: Thank you Thomas, i did not realize i needed to quote. It works fine n... (by Greyhame)
by cash
reading textfile
 
For some reason my program is producing no output. What am I doing wrong. This is the problem- https://www.pdf.investintech.com/preview/6e7a07be-da24-11e7-9f8d-...
[2 replies] Last: Hello cash, Are you sure there is something in the file to read? It ... (by Handy Andy)
by chuvak
Virtual functions and derived class
 
I have a header file with the following class: //MyProduct.h #ifndef SICT_MYPRODUCT_H__ #define SICT_MYPRODUCT_H__ #include "Product.h" namespace sict { c...
[1 reply] : If you do not want to implement a body of a virtual function you need ... (by coder777)
by pj123
Trouble with priority queue?
 
I am supposed to insert names and priorities into a priority queue, however I am having difficulties with accepting a string from a user. It says you have to co...
[3 replies] Last: Line 58: use the operator delete instead of calling the function fr... (by JLBorges)
by ebba
Lost on final project for intro class
 
Trying to get output that looks like this: Enter number of rows (>0): -4 Invalid entry – try again! Enter a positive integer: 4 ___* __*** _***** ***...
[2 replies] Last: THANK YOU! makes me feel dumb i spent 2+ hours floundering, and yours... (by ebba)
decltype and auto parameters?
 
This question came up on a test in class last week, and for the life of me I wasn't able to figure it out then, as I'm still fuzzy with it now after having some...
[1 reply] : This response assumes you understand something about perfect forwardin... (by mbozzi)
December 2017 Pages: 1... 1011121314... 23
  Archived months: [nov2017] [jan2018]

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