Beginners - December 2016 (Page 9)

Question
 
how should i write a program wich reads a number form keyboard?
[1 reply] : Please do not double post. (by Thomas1965)
Razvan
 
How should i read a number from keyboard??
[1 reply] : http://www.cplusplus.com/doc/tutorial/basic_io/ (by Thomas1965)
Value Swapping from Function Returns
 
Can get names to swap values with case 7 and 11. Building a roll-and-move style boardgame for a final project and the stipulation for case 7 and 11 has you s...
[no replies]
Repeat Code
 
Hello. I'm having problems figuring out how to continuously ask the user to input age, if the age entered is below 0 or above 150 (line 16 to 24). Also if I wan...
[1 reply] : Line 24: while (age < 0, age > 150); should be: while (age < 0 || a... (by Norm Gunderson)
by Siv
Printing out in columns using a for loop
 
Hello everyone, I've been spending hours trying to figure this out, but haven't found any solution to my problem yet, so I thought it might be worth asking h...
[5 replies] Last: You're welcome. No need to apologise, I only found it because I knew i... (by Chervil)
For Loop
 
Thank you for your time and explanation here guys. I don't understand how it outputs K from 1 to 12 then 123 in this code... #include <cstdlib> #include ...
[8 replies] Last: Thank you Kemort! (by Kevin S)
Array question
 
Hello all, some questions about the array here. What's the purpose of make the mode array = 0? then mode = 1? Thanks for your time. for (i = 0; i < 2...
[2 replies] Last: Thank you Integralfx, do we have to set array to zero every time befor... (by Kevin S)
Help, my code keeps crashing with a code 3 on code blocks
 
I was trying to learn c++ and this piece of code keeps crashing again and again, any help is appreciated. P.S. I am completely new to programming... P.P.S I in...
[1 reply] : Well, I'm not sure what the goal is here. There is a lot of use of poi... (by Chervil)
Letter frequency counter
 
I managed to write this with not much problem. I work in a school Supply store right now and people are always coming in needing to know how many packs of lette...
[5 replies] Last: Thank you all for the suggestions! I'm not familiar with Map. I'll hav... (by TimmyFangs)
need help ! How to update the function ??
 
#include<iostream> #include<iomanip> #include<cmath> using namespace std; char ray = { 0 }; //void printForm(char ray , int row, char column); void...
[9 replies] Last: I get it ! Thanks for your help AbstractionAnon ! (by JunTioh)
by mrsh
Matrix Exponential
 
I define my 2D matrix as vector <vector < double> > MXd2 and i want to solve exponential matrix, can I used this https://eigen.tuxfamily.org/dox/classEigen_1_1...
[2 replies] Last: Putting aside the the matrix being upper triangular for a second, why ... (by closed account 48T7M4Gy)
by Archy
How to use ONE variable for saving TWO results of calculations
 
Good morning everybody, as I am new to the forum and this is my first post, I would like to introduce myself beforehand. I am an IT specialist trainee in app...
[8 replies] Last: Using structs: #include <iostream> #include <cmath> struct HipRoof ... (by closed account 48T7M4Gy)
binary representation
 
how can i print the representation of number in any-bit binary complement code?
[5 replies] Last: Input example Sample 1 5 8 Sample 2 -5 8 Output example Sample 1 0000... (by biwkina)
Nan error
 
Hello, this is my first topic here. I start lesson c++ with a book, and i find this exercie: Write from keyboard a program who read a real numer x, and show on ...
[5 replies] Last: Thank you guys, i will learn about local and global variables in the n... (by Addeeralix)
MULTI "WHILE"
 
how to rewrite what we enter?
[1 reply] : What do you mean? Ask the user to input a value if it isn't correct? (by Hengry)
string stream issues
 
I'm writing a program that uses a while loop to repeatedly create objects with multiple variables within them. To do this, I use a file stream to read lines fro...
[1 reply] : There are two issues here, one you didn't ask about. The first is the ... (by Chervil)
Validating Status Code Input
 
I'm having difficulties figuring out this block of code. I want to have the user input A, S, or, Y as the status code, and if incorrect to loop and display a...
[5 replies] Last: Here is a starting point. You can extend it by using toupper for case ... (by closed account 48T7M4Gy)
by nvadr
Get process IDs by Name w/ exclude IDs
 
I am not really sure how to start or word this. I managed to find how to get the process ID by name, but i am having a new dilemma. I need to get the proc...
[no replies]
String encoding/decoding
 
This is what i intend to do: Ask the user to enter any string, encrypt it with rot13(shift character 13 places). All characters are permitted. After every fi...
[4 replies] Last: Thanks @lastchance. This was the magic int key = ROT13; for (s... (by longberns)
Parsing a text file for a DVD project
 
Hey guys, I'm having trouble getting some information to parse properly for the code below. I'm a novice so I may ask dumb questions. My input file looks ...
[9 replies] Last: Last night after we had talked, system ("pause") wouldn't compile.... (by Monte211)
December 2016 Pages: 1... 7891011... 28
  Archived months: [nov2016] [jan2017]

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