[try Beta version]
Not logged in

Beginners - June 2019

Random numbers on different systems
 
Hi guys, I have a question: If I use std::seed_seq seq{1,20,3200,403,5*randomseed+1,12000,73667...
Jun 30, 2019 at 9:44pm
[5 replies] Last: Thank you guys! (by PhysicsIsFun)
if else ladder troubles
 
So for my C++ class, we were assigned to make a program to assess the cost of wooden desks. Although...
Jun 30, 2019 at 9:02pm
[6 replies] Last: Got it to work finally, thank you! (by saturnz)
ifstream dont accept a string as input.
 
(Im sorry if u saw any english erros becouse english is not my main language) Hey Guys, I recently ...
Jun 30, 2019 at 3:59pm
[9 replies] Last: It worked thank you :D (by troyaan)
Need Help in this question
 
Mark has 'N' days. Initially he is at position (h1,0) on the X-axis. On each day he can go to the co...
Jun 30, 2019 at 1:17pm
[5 replies] Last: Isn't the purpose of competitive challenges to show the extent of your... (by keskiverto)
Help on a string program
 
Our teacher is very specific. He gave us a program that wants you to read in a data file with names ...
Jun 30, 2019 at 12:52pm
[12 replies] Last: If you are absolutely certain of the number of names and the possible ... (by lastchance)
C++ while loop with a conditional statement. Read an input and skip every three times before taking action.
 
New to this, your help please anyone. Thanks. Extract below read's pressure value A. If it's 2000...
Jun 30, 2019 at 9:59am
[1 reply] : > Extract below read's pressure value A. If it's 200000, B is actioned... (by salem c)
Problem with Setw function...
 
Please note the only print_strip(int picked_team, int wickets) function in the program. The proble...
Jun 30, 2019 at 12:08am
[4 replies] Last: Ok, I got it :) I went with to_string option and it worked perfectly ... (by sindhu05)
assignment
 
encrypting and decrypting using the alphabet; Assignment Specifications Decryption and encryption...
Jun 29, 2019 at 11:44pm
[3 replies] Last: so apparently my map has to start with a = 0 and b = 1. the char lette... (by marcopololara)
MS Vis Studio "not a type"..??? error (1,2)
 
I am new to using MS VS 2015 - which I acquired for getting into my C++ studies and training at the ...
Jun 29, 2019 at 11:28pm
[35 replies] Last: Been there, done that, bought the T-shirt. (by Niccolo)
by kmce
while loop. While cin >> !=
 
Hi, I am doing a drill from the book I am learning from, and i need to run a while loop until '|' is...
Jun 29, 2019 at 8:00pm
[4 replies] Last: If that's Stroustrup's book, at some point he explains that any string... (by Niccolo)
Question about return statements in a void function
 
Hi all, I'm trying to wrap my head around void functions, and the only part that I'm unsure about i...
Jun 29, 2019 at 5:38pm
[3 replies] Last: There can be a use for explicit return in void function: void echoSqu... (by keskiverto)
Classes
 
Hello, 1. Why is there '&' symbol in this parameter?? CVector operator+ (const CVector& first, con...
Jun 29, 2019 at 5:31pm
[2 replies] Last: [quote=jonnin]is the current object equal to the one passed in Carefu... (by keskiverto)
What Is Wrong ?
 
Just starting out in C++. Why is my code so slow ? The nested loops below I think would take a day t...
Jun 29, 2019 at 3:05pm
[8 replies] Last: Unlike Java, C++ has the concept of undefined behaviour. The original ... (by JLBorges)
by mcclit
how to ignore the negative number that is used as a break for the for loop
 
how to ignore the negative number that is used as a break for the for loop? #include <iostream>...
Jun 29, 2019 at 1:25pm
[3 replies] Last: Unless I'm missing some very obvious, variable total gets initialized ... (by mycuser)
by rad48
payment table (for loop)
 
Hi everyone I am new to C++ and have problem creating a table of payment ,for 10days max and first d...
Jun 29, 2019 at 8:15am
[6 replies] Last: pay = 5; cout << '0' << "\t\t" << pay << endl; for (int num = 1; num ... (by keskiverto)
another nested for loop snag
 
Hey guys. I put together some code that finds a word in a string (string x called strx) and returns ...
Jun 29, 2019 at 3:49am
[10 replies] Last: You're a 100% right. I extracted the code for testing and it caused ha... (by closed account zACfE3v7)
by kmce
for loop
 
Hi, I am going through a c++ book and came across a new way to write a for loop, it was taught using...
Jun 28, 2019 at 11:18pm
[2 replies] Last: ....... of course lol. Such a stupid mistake. Thanks for answering :) (by kmce)
C++17 <filesystem> Doesn't output what I expect?
 
I'm following this tutorial: https://www.bfilipek.com/2017/08/cpp17-details-filesystem.html I'm usi...
Jun 28, 2019 at 10:42pm
[7 replies] Last: [quote=JLBorges]> Why did you use std::wcout instead of std::cout? On... (by PiggiesGoSqueal)
Infinite While Loop Issue
 
Well, I took a few days break from programming and I somehow managed to forget like 40% of basic C++...
Jun 28, 2019 at 6:16pm
[2 replies] Last: [quote=Ganado]What is your input? If you're trying to type in multiple... (by PiggiesGoSqueal)
Member initialization in constructors
 
I take this program from the article : #include <iostream> using namespace std; class Circ...
Jun 28, 2019 at 5:07pm
[5 replies] Last: What do you mean by "doesn't work"? What doesn't work? Does it not... (by MikeyBoy)
June 2019 Pages: 123... 13
  Archived months: [may2019] [jul2019]

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