[try Beta version]
Not logged in

Beginners - December 2020 (Page 5)

by kmce
auto in templates?
 
I am going through tutorials on c++14 and it is introducing the keyword auto. It says it can be used...
Dec 17, 2020 at 12:37am
[4 replies] Last: But is it basically auto is being used to determine the return type. ... (by mbozzi)
by kmlz
reading as numbers and saving as colors
 
Hi, i need to develop a program that writes a color to the screen and each line of another file acc...
Dec 17, 2020 at 12:29am
[11 replies] Last: That is telling you that you tried to build the program with outdated ... (by jonnin)
Arrays & rounding from float to int
 
I need help getting started here. I am having a wicked brain block. I don't know if the wording is c...
Dec 16, 2020 at 8:15pm
[5 replies] Last: so I got this for the last part - technically it works.... thanks for ... (by CTonevski)
Trying to make a program to solve an equation for me
 
This is a very odd post, but I am making a program in order to predict how many games it would take ...
Dec 16, 2020 at 6:04pm
[9 replies] Last: Ah right right, that makes sense my bad. (by TheFlyingGamer)
Rejecting a floating point
 
Hello, I am very new to C++ and in the process of trying to write a programme. Part of the programme...
Dec 16, 2020 at 4:48pm
[4 replies] Last: #include <iostream> #include <string> #include <limits> using names... (by Manga)
get and set char *
 
That's part of my HW as an introduction to "set and get" to classes. We had to write a code which...
Dec 16, 2020 at 4:11pm
[4 replies] Last: seeplus thanks for in depth explanation (by MaxGreen)
calculator
 
LOOK AT MY CODE: #include <cstdlib> #include <string> using namespace std; float m = 0, n = 0;...
Dec 16, 2020 at 12:40pm
[5 replies] Last: Hello majkel1234, Working with your original code: #include <cctype... (by Handy Andy)
dynamic cast
 
Hello I am trying to learn about dynamic cast, and i thought I had worked it out then I came across ...
Dec 16, 2020 at 12:18pm
[11 replies] Last: I think the animalBase to cat works because the base class still know... (by MikeyBoy)
logical calculator
 
hey yall , so i have to make a logical calculator with : (& and , | or , ~ not ,> if) i made t...
Dec 16, 2020 at 12:17pm
[8 replies] Last: delete the classes bring the infix part in main function also u dont n... (by maximus854)
Cannot print 3D array using function
 
I can’t print 3d array by using the following function. Is there something I am misunderstanding?...
Dec 16, 2020 at 11:11am
[5 replies] Last: #include <iostream> using namespace std; void printArray(int *, int,... (by lastchance)
simplify the code
 
how to wtite it using a char array? Q: " given a string. obtain another one by swapping the parts of...
Dec 16, 2020 at 8:26am
[5 replies] Last: thank you all so much!! :) (by laura fidarova)
convert to an array of symbols
 
Hi, i remember that someone helped me with this code here, thanks a lot for that. How can i write it...
Dec 16, 2020 at 8:09am
[2 replies] Last: #include <iostream> int main() { char test = "$$?@@**$@"; int ... (by lastchance)
Separating .txt Lines Into Different Variables
 
I'm trying to find a way to read a .txt file and take each line of it and store it in a variable to ...
Dec 16, 2020 at 6:20am
[1 reply] : > 3 <- number of sides What's the significance of this number? It it a... (by salem c)
Battleship Game
 
Hello, I'm having trouble with two lines of the code below. Lines 37 and 38 are giving errors Line...
Dec 16, 2020 at 5:48am
[4 replies] Last: You need to move a couple of lines down, so it's outside the outer loo... (by salem c)
How extract the name of a file
 
Hi all, I am beginner on C++ and linux and one of my tasks is extract the name of a file and comp...
Dec 15, 2020 at 11:47pm
[1 reply] : the <filesystem> header has a lot of very powerful things that older c... (by jonnin)
writing operator
 
the question is:modify the writing operator so it can read information about the route you can use ...
Dec 15, 2020 at 8:45pm
[6 replies] Last: thank you all I rewrite the code as per your advices and now it works (by laura11111)
Need some help.
 
So I have this code that supposes to look clean and organized. I'm having issues with keeping class,...
Dec 15, 2020 at 5:43pm
[4 replies] Last: Consider for C++17: #include <iostream> #include <iomanip> #include... (by seeplus)
How to create a new custom type with given vector
 
Let say I have a vector of ints, and I want to specify an additional value for each of them like a s...
Dec 15, 2020 at 5:02pm
[9 replies] Last: Post a complete sample program. There's not sufficient info/code to ad... (by seeplus)
How to cout a message inside a function other than main
 
Hello, I can only print a message, via std::cout, when I'm in main(). However, when I'm inside a...
Dec 15, 2020 at 4:43pm
[1 reply] : Compile and run this code. Does it print the message? #include <ios... (by nuderobmonkey)
Help
 
Bitland has N cities connected by one common highway. East of the first the city has a Bitzon wareho...
Dec 15, 2020 at 3:02pm
[2 replies] Last: #include <iostream> using namespace std; int main() { // read t... (by booradley60)
December 2020 Pages: 1... 34567... 11
  Archived months: [nov2020] [jan2021]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.