Beginners - November 2019 (Page 6)

Difference between std::strings + and += operators?
 
Hey guys, so I noticed the + and += operators give much different results, I have written a print...
[5 replies] Last: I thought they would essentially provide the same function when work... (by deleted account xyzzy)
I need to open new counter when old one closes
 
I am making a larger program that has the following part: I will avoid putting the larger one and ...
[4 replies] Last: void foo(int * ip, int size) { code... } int x ; foo(x,3); //pass i... (by jonnin)
by Zii
Why is (10*5) giving me 2?
 
I mean... I really don't get this. Line 21... Yet when I run the program it gives me: Name : Joh...
[4 replies] Last: I don't see anything about it mentioned in the screenshot example abo... (by deleted account xyzzy)
What's the difference between . and ->
 
There are two operators . and -> in c++,I know when you want to get a variable or function of an obj...
[4 replies] Last: But what does b.val mean? Nothing. It's illegal syntax, assuming... (by MikeyBoy)
Problem with floating variables (1,2)
 
How to display the decimal of floating variables? This program is to examine the prim number and q...
[31 replies] Last: MikeyBoy if you have any advice to me in order to improve my progra... (by semsemdiver)
Help with modbusrtu
 
#include "ModbusRTU.hpp" #include <iostream> ModbusRTU::ModbusRTU (uint8_t id) : _DO(20),...
[2 replies] Last: I do not know at the moment if this will make any difference, but per... (by MikeyBoy)
Error using time for update
 
Error: 'tm' is not a member of 'std'. from /usr/include/time.h:39:0 //Dies ist die zu verwendend...
[2 replies] Last: Hello MaydayMayday, PLEASE ALWAYS USE CODE TAGS (the <> formatting ... (by Handy Andy)
by Bopaki
Not sure as to why I am getting a garbage output there
 
I get: C:\Dev-Cpp\chapter3>question17 `8= C:\Dev-Cpp\chapter3> #include<iostream> #...
[3 replies] Last: Thank you all!!!! I got it right eventually newString s1, s2, s3; ... (by Bopaki)
Help needed making an array list in descending order
 
Hi, I was having trouble displaying the numbers in descending order and would love the help. The tex...
[7 replies] Last: Yeah (by Depressed)
Delete piece of a file.
 
So. I am trying to make a program that just stores strings in a file. I haven’t actually implement...
[2 replies] Last: Darn. Ok, Thank you! (by highwayman)
0xC0000005 Error for my PriorityQueue template
 
So, like the title says I'm getting a Process returned -1073741819 (0xC0000005) error for a Priori...
[2 replies] Last: Welp. I finally solved it. If, for some reason, someone else is having... (by sadCoder)
Easyish C++ coding
 
Please help with this 5. Declare the following variables: double input1 (first user input), double ...
[4 replies] Last: Hello cgperez, PLEASE ALWAYS USE CODE TAGS (the <> formatting butto... (by Handy Andy)
Programming Assignment
 
[ You by now have lots of practice with built-in types such as float, int, etc. You also have pr...
[13 replies] Last: Hello bethmayweather, I had to change a lot to make it work, but it i... (by Handy Andy)
rectangle
 
EDIT: It appears the OP has swum away. Can someone write the whole cod please? There's somethin...
[8 replies] Last: That fish code is so cool I bookmarked the post. (by deleted account xyzzy)
by Zii
Stuck in infinite loop when executing else statement
 
#include <iostream> using namespace std; int input; bool quit = false; char another; int main...
[4 replies] Last: <limits> is needed for getting the maximum size of the stream. Line... (by deleted account xyzzy)
Screen Buffer - Confusion over function pointers
 
Hi, I've been upset with the tft I'm using with a teensy synth project flickering when I call fun...
[6 replies] Last: Hi Salem Thanks for the tips! The Serial.prints were just so I coul... (by plushterry)
by medosz
logical expression
 
I have 4 pair of logical expressions, each pair should be logically equivalent. Can anyone explain w...
[1 reply] : Change those lines to int c = !(x<3)&&!(y>=2); int d = !((x<3)||(y>=2... (by lastchance)
Help in this question
 
There are N cities that are connected by N-1 roads.K cities have bus terminals and other N-k cities ...
[4 replies] Last: Ok I am trying (by counter strike)
Arduino C++ code run efficiently advise
 
Hi guys i've gotten back into coding so i'm super rusty at it i'm making a program for my manual ...
[5 replies] Last: thanks jonnin, i will be throttling it so far i've dropped it down t... (by learningcplusplus898)
Sales and Salary
 
I have this program and I'm stuck, the output isn't correct, unsure of what is going wrong, but I ne...
[9 replies] Last: [quote=CodeNovice01]On line 67, why is the +1 necessary? Line 67 say... (by lastchance)
November 2019 Pages: 1... 45678... 17
  Archived months: [oct2019] [dec2019]

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