Beginners - June 2016 (Page 10)

output stream exercise
 
Write your question here. #include "../std_lib_facilities.h" void outotoputto (double a, double b, double c); void intotoputto (double a, double b, do...
[6 replies] Last: 23 27 17 \\which aren't neither octal nor hexadecimal so what are and... (by Thomas1965)
Problem with Tic Tac Toe Toggle
 
Hello everyone, I am trying to construct a really basic Tic Tac Toe game. There is something wrong with the toggle. After player X moves, it toggles to O. But ...
[1 reply] : if(player = 'X') this is assignment not equality. It should look... (by Yanson)
by cibide
calculator malfunction
 
Hi guys! I am reading "programming: principles and practice using c++" and I was following the exercises and I canĀ“t realy understand why when my input is, for...
[4 replies] Last: thx a lot for the advice and for the sincere opinion! (by cibide)
how to make the output not repeated
 
i want to cout the elements on the array subjs which are repeated more than (n)this code has something wrong as it repeats the outputs how to stop repeating th...
[1 reply] : start at index of first name loop: select name at index check if n... (by closed account 48T7M4Gy)
How to call next line of code after function?
 
I'm practicing by making this text rpg and I am having a hard time with the attack function that I created. Right now it just breaks and ends the program, I jus...
[3 replies] Last: It is good practice to separate things into functions and classes. Thi... (by xismn)
Person Data and Customer Classes
 
Hey Everyone!! My assignment is to Design a Class named PersonData with the following members -- last name -- first name -- address -- city -- state --z...
[2 replies] Last: Why are you including the cpp files ? Remove all the #include "ClassN... (by a k n)
C++ Base
 
Hello i learned C++ Basic in ThenewBoston Page Now what i go learn ? i need to go more advanced and not yet with console i want go with real proggraming like g...
[3 replies] Last: Hi, [quote=armando2] i want go with real proggraming like games or ot... (by shadder)
array issue from openfile
 
Hi everyone. I writing a program that opens the file "plants.txt" ( see below) and then reads "plants.txt" into two arrays(name and price). The file is then sor...
[1 reply] : Hi, while(theFile >> name >> price) // opens the file This code do... (by shadder)
Confused with this bool concept.
 
Write your question here. bool isNumber = true; for (int i = 0; i < tmp.length(); i++) { if (!(tmp >= 48 && tmp <= 57)) isNumber = false; }...
[6 replies] Last: != is better translated to English as "is not equal to". -Albatross... (by Albatross)
Missing bracket?
 
Compiler says that I'm missing a bracket somewhere after switch and I cannot identify it for the life of me. It's so frustrating. Please help.. #include ...
[16 replies] Last: [quote=jesuisloup]I don't always remember of all the ways I can do thi... (by closed account E0p9LyTq)
help please in the problem
 
i have (array = sam,john)( array = alex,yusha,cesar,mark ) and so on according to user input no specific order or relation between number of names or number of ...
[10 replies] Last: Excellent. (by closed account 48T7M4Gy)
skipping the '\n' in the array when reading an getline input
 
in my program i have a txt file that has the next line character at the beginning of each line and my program will not run correctly with that. (it's much bette...
[7 replies] Last: #include <iostream> #include <fstream> #include <string> int main ()... (by closed account 48T7M4Gy)
Using Google Maps API in C++
 
Is it possible to run Google Maps API in C++? I would like to use the functions that are within Google Maps in my C++ program.
[2 replies] Last: It is possible. You certainly need a library (web browser engine): ht... (by coder777)
Code is closing out after entering month.
 
So when i run my code it is closing down the program without running it after i enter the month. I have been looking over it trying to find the error, but i nee...
[16 replies] Last: #include<iostream> #include<iomanip> #include<string> int main() { ... (by JLBorges)
by FBHSIE
Can someone check if my corrected results would have given me the correct answer?
 
Alright, I did an assignment recently. This was my original output. //Ashton Dreiling //Monthly sales tax exercise #include <iostream> #include <std...
[2 replies] Last: I figured i could. I just get nervous sometimes and second guess my "c... (by FBHSIE)
Error in my code (1,2)
 
I am having some errors come up in my code. It is saying that my time is ambiguous. Is my code fine except that? I have included the format i have to go by and ...
[27 replies] Last: All the best dylan. I think we're done here. Bye, bye. PS Thanks TIM (by closed account 48T7M4Gy)
Linked List and Null
 
To cut to the chase, I'm studying Chapter 17 of Stroustrup's PPP, and he gives the following code, which confused me quite a bit (I hate his naming convention f...
[8 replies] Last: Well, the good news is I get it now. I drew and re-drew then drew out ... (by Yawzheek)
Simple Object With Errors from Outside Files
 
I've put together a little program that uses a "Date" object to store and print a date in various ways. From what I can see, everything looks in order in my t...
[1 reply] : class Date { // ... } ; // *** terminate the definition of the c... (by JLBorges)
Making a simple addition calculator with a char array--how do I make the leading '0's blank?
 
Hi everyone, I'm in an introductory C++ course and we're learning how to add arrays together. For homework, I had to create a program that would take an input n...
[1 reply] : void print_number( const char digits ) { if( digits != nullptr ... (by JLBorges)
Question about class and inheritance
 
Hi, I'm looking for a way to use inheritance to avoid writing the same function twice. I have two classes (ClassA and ClassB) which are the same, except f...
[2 replies] Last: Thank you! (by carlwryker)
June 2016 Pages: 1... 89101112... 25
  Archived months: [may2016] [jul2016]

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