Beginners - October 2017 (Page 31)

Pausing a program
Is there a command in C++ to pause your program? Say I wanted to cout two things, but so as to not o...
[1 reply] : std::this_thread::sleep_for() (by mbozzi)
Looping through pair of integers
I have to write a program that loops through pairs of integers n and k, where n runs from 1 to 10 in...
[2 replies] Last: I'm a bit confused on the math you are attempting to do, I don't see h... (by verilog)
Need help with code pleasee
I am working on my machine problem for my intro to programming. I can't figure out why my code will...
[3 replies] Last: Hello Noobie26, Thank you for the input file. Now that everything wo... (by Handy Andy)
by Fooly
How do I find the Averages for this program?
Hello, I am very new to programming and I am currently taking a c++ class. The task was to Write a p...
[1 reply] : Are the rainfall values really words? Was the rainfall for January "U... (by keskiverto)
by kg98
call function with a loop
Hello, so for my homework i am supposed to create a coin toss stimulator. The output should should t...
[2 replies] Last: a) If you divide an integer by an other integer, you’re performing a... (by Enoizat)
IDE help(looking at return type)
hi guys long time since I have been on the forum almost a year at this stage,I took a break from pro...
[7 replies] Last: thanks guys (by adam2016)
Output data in columns
I am currently trying to write a code in which I will have information displayed in two different co...
[5 replies] Last: Thank you. (by smitty007)
Password Validation Program Help
Hey there. I have a coding assignment I'm supposed to complete for my Intro to C++ class. I thought...
[6 replies] Last: you need to debug this carefully. change it to check 1 condition at ... (by jonnin)
Beginner exercises that use classes, structures, arrays, loops, etc.
Hi, I wanted some beginner exercises with which I could practise C++ other than the ones already pro...
[no replies]
by Qbeq1
Quotation marks in quotation marks
Hi, I want to make a program which turns off the computer. See: #include <stdlib.h> using namespa...
[1 reply] : Use \" to represent a quote when it is part of a quoted string. Se... (by Chervil)
can anyone help me here?
is there any chance to shorten this code? " { largest = a; smallest = b; } " i will paste m...
[2 replies] Last: I guess it will be shorter one. #include <iostream> #include <vec... (by DonRumata)
somebody help with converting this algorithm to a c++ code
function FIND SHORTEST PATH(Grid world) q<-new Queue; s<-new Stack; Initialise a Distance arr...
[1 reply] : Duplicate post: Pleas... (by MikeyBoy)
While reading a sample code I came across this
what is the meaning of this when brackets are written before ? I mean what is the meaning of (in...
[2 replies] Last: It is a lambda expression, introduced in C++11: http://en.cppreference... (by keskiverto)
Beginner C++ Help
Completely New to C++ Sorry if this is the wrong place for this but I'm completely new to C++. I've...
[18 replies] Last: @skifteri: Using system("pause") is a bad idea, for reasons discuss... (by MikeyBoy)
Calling a function for the first time (date)
I am writing a program that calls a function for the first time. The assignment is to write a progra...
[2 replies] Last: @shimshim96: You need to double-check all your if statements, and m... (by MikeyBoy)
calculate grading curve
2 questions: 1. I need numPointsActuallyEarned to have a running total (through Addition) of the nu...
[1 reply] : I need numPointsActuallyEarned to have a running total Sorry, I’m ... (by Enoizat)
Determining Largest, Smallest & Mean from File Input:
Please let me know if I am doing anyting wrong.
[1 reply] : cout << "The number of numbers entered is: "; cin >> number; ... (by Repeater)
by MOMO1
how to only tax certain items that are in an array, also some output help
Hello everyone, so im working on a program were I have to read from a file and tax items and present...
[1 reply] : While normaly it is good to seperate code into independent functions i... (by coder777)
by ldp157
ROT-13 using the entire printable ASCII Character Set C++
I am trying to create a code that will use the entire printable ASCII Character set. My problem is t...
[5 replies] Last: One of the problems here is that char i; is a signed type, its value... (by Chervil)
How to output without the first line.
I'd like to know how to output everything in the file except the 'Student's Shopping List line. ...
[1 reply] : You could use getline() to read and throw away a line as here: http... (by Chervil)
October 2017 Pages: 1... 29303132
  Archived months: [sep2017] [nov2017]

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