Beginners - October 2013 (Page 40)

by sig226
Organizing varied numbers into columns
 
So I have a program that (finally) works, thanks to help from this site. My output is numbers (money) printed to the console. They are of varying length. I am w...
[2 replies] Last: Awesome, that's what I was looking for, thanks. (by sig226)
by aish96
HELP PLEASE!
 
the do-while loop does not get executed properly and the next output is printed.. do { std::cout<<"\n Enter designation number : \n 1. Managing Di...
[1 reply] : On line 28: }while(ba_sal == 0); = means assign == means compar... (by coder777)
Another binary question
 
I want to convert numbers to binary. I searched the web and found a way to output unsigned short numbers as binary, and I can convert those bitset variables...
[7 replies] Last: #include <iostream> #include <bitset> #include <limits> int main() {... (by JLBorges)
by Jades
CLEAR DATA
 
#include <iostream> #include <string> using namespace std; int main() { int nmbr, nmbr2entr, r, e = 0, o = 0,se = 0,so = 0; int Odd ; in...
[7 replies] Last: int nmbr2entr, se = 0; do { cout << "How many numbers do you want ... (by keskiverto)
by aish96
error: no match for 'operator>' in 'ba_sal > 100000'|
 
Whenever I build the code, I get an error saying that the operator isn't matched. Please help? case '5' : std::cout<<"CHIEF MANAGER"; s...
[2 replies] Last: yes! that solved it.. thank you :D (by aish96)
Why must you specify the length of a second array when passing it to a function?
 
I'm not sure if I phrased my question right, sorry. I'm having trouble understanding why the first function (help) is wrong. int a ; void help(int b ); in...
[1 reply] : Both of those calls are wrong. So is the help() function. void help... (by Disch)
by tatai
Reading Line
 
I have a file like: 1 Starting year 2010 Last year example.100 Site file name 0 Labeling type -1 Labeling y...
[3 replies] Last: thank you (by tatai)
String from array
 
How do you get a string from array that has 2 or more vowels from a e i o u in it ? // YOU FILL IN THIS METHOD TO RETURN TRUE IF AND ONLY IF // THE WORD CON...
[6 replies] Last: Mats I believe is trying to return how many *unique* letters from a ... (by booradley60)
[HELP]Write in files
 
Hello guys. I need a help with writing on files. I have a file with a list of numbers(lista.txt) that i want to swap to another, like this: 0123;4567 an...
[2 replies] Last: problem solved by following the instructions while(func != lista ){... (by dougzito)
by face88
Inheritance
 
Hey guys I have a problem with Inheritance I have these classes but they dont want ot inherit correctly.Please help enum PieceType{BOULDER} class Piece {...
[2 replies] Last: Sory.Those are fine.I just wrote a sample forgot that.I also tried usi... (by face88)
print strings from the array
 
How to print string from arrays with vowels ? Function is below // Filter: only print those strings from the array that // end with a vowel: 'a'...
[2 replies] Last: bool doesEndWithVowel ( string word ) { char c = word[word.size(... (by nvrmnd)
by ccngai
2D array manipulation
 
I would like to do array manipulation like the following example. Rotation 90 degree a b c d becomes c a d b Mathematically, just swap the x and y coo...
[4 replies] Last: Can i do in this way? You can simply flip array around horizontal ... (by rodiongork)
arithmetic operations
 
hey guys, I am having some issues understanding how C++ organizes arithmetic codes. I recently had a quiz in my C++ course and did absolutely horrible on. If an...
[1 reply] : In order to make sense of expressions like this, there are several rul... (by Chervil)
by enemy
Refference traslation
 
Hello! I do not understand one thing: we have afunction void writeout(int z, int k) { cinn << z<<k; cout >> z >> k; void nn(int a, int &b){ writeout (...
[3 replies] Last: Doesn't the tutorial (that NwN did link to) contain simple examples? (by keskiverto)
Display from binary
 
Hi, I would like to know if there is a way to display a character from a binary value just like we do from the decimal value or hexadecimal value: char...
[5 replies] Last: Thank you for your answer. JLBorges, I am working on a code for writin... (by patrikgwet)
exception handling
 
if( num2 == 0) cout << "Error: Dividing By Zero" << endl; else cout << num1 / num2; this code "test if he dividing by zero" work correctly & cont...
[4 replies] Last: int foo( int a, int b ) { return a / b; } int bar( int a, int b, i... (by keskiverto)
by kariya
want to know something
 
i want to do graphic program in c++ please help me
[2 replies] Last: You have a few options depending on your OS. I'm going to assume you'... (by Stewbond)
by toast9
keep loops asking
 
how do you make a loop ask for another number after it runs through and does its math with the first number you give it? The code runs perfectly but I want it s...
[7 replies] Last: Show the exact and full code you are using right now. EDIT: Anyways,... (by The illusionist mirage)
loop issue and compile
 
Write your question here. Can not seem to get a loop to run program again. 1 to run, 0 to end. using std::cout; using std::cin; using std::endl; ...
[3 replies] Last: Well...like this . . . do{ // execute what you want to repeat as... (by The illusionist mirage)
Need help with defining a function!
 
For this assignment we are supposed to define a function that finds the answer to x^n. I have it to where it will solve for both positive and negative exponents...
[1 reply] : Try this slight modified: #include <iostream> using namespace std; do... (by condor)
October 2013 Pages: 1... 3839404142... 86
  Archived months: [sep2013] [nov2013]

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