Beginners - November 2016 (Page 35)

writing in 10 files and reading from them
 
Hey, I am very new in programming and C++. My first task to learn is creating 10 random number generator and have 10 files. Write this 10 number (different n...
[3 replies] Last: @integralfx At the moment, you are writing 10 numbers into 1 file. ... (by Boxbird)
by totals
Idk whats wrong here?
 
So i just sent in this code for school so its all said and done but i don't understand what i changed with the msgMulti function where it won't work anymore. So...
[2 replies] Last: I think (but not quite sure) that the problem is that you are using a ... (by lastchance)
Excess Charaters
 
char message1 ; if (Serial.available()) { for (int i=0; i<1000;i++) message1 = Serial.read(); //Input alphabets or numbers Serial.print(...
[6 replies] Last: Ah I see, i didn't know that Serial.read() returns -1 if there is noth... (by kenchia10)
by totals
PLZZZZ HELP.. Simple Functions
 
so i need to know how to create a function that will display a message that prompts the user for a word or words(would be better). then returns that word, and o...
[4 replies] Last: So it displays the prompt asking the person for the message, but it ... (by Boxbird)
Problem with gets() input statement
 
I have tried this code (in multiple programs) using dev c++ and code::Blocks but the first gets() command will never get executed when followed by a cin>> ...
[3 replies] Last: After you use cin >> something; , you must use cin.ignore(); before... (by Boxbird)
by Hengry
Need help with undo and redo functionality for my spec
 
I need help implementing UNDO / REDO. The functionality should do something like this: https://gyazo.com/a82f4384d24b452bad4e596dbf7a995e It uses my Task cla...
[no replies]
deleting string from a vector element
 
Hello there. I am doing a converter from 12 hour system to 24 hour system. the user input should be like this: 07:05:45PM output: 19:05:45 I...
[2 replies] Last: #include <cctype> #include <iomanip> #include <iostream> #include <s... (by integralfx)
My Program Skips certain bits of code (ifs mainly)
 
SO i am back again and sorry to be a bother but i don't even know what i would search this as and from my searching i've found nothing except to make it pause f...
[5 replies] Last: [quote=SakurasouBusters]Should be : cin.clear(); cin.ignore(1000, '\n... (by mbozzi)
How do you have a function return a 2D array to be then accepted by another function?
 
Can someone show me the correct way to have a function return a 2D array, then have that same 2D array get pass through another function by its parameter? #i...
[1 reply] : char **giveArray() { char 2DArray = {{a,b} , {c,d}}; return... (by integralfx)
by Domo18
Coding Error Unidentified
 
Anyone can identify what's wrong with my code here? Please. #include <iostream> #include <cmath> using namespace std; void printMenu(); //function cal...
[2 replies] Last: Please, use the code tags when you post the code. Hit Edit, highlight... (by chicofeo)
by Scuffz
how to get array in main to my class function
 
http://i.imgur.com/hbjVeB9.jpg http://i.imgur.com/EJsiMUb.jpg looking at s3 how can i get that array into my class function so I can work with it, I'm guessing ...
[1 reply] : Could we see the IntegerSet class? if( (*ptr) ) is invalid, as (*p... (by integralfx)
by MMe24
Guidance on constructors
 
Hi, this is my first time posting but I have been reading the forum for some time to usually help me with my own problems. I need help/guidance (I don't want an...
[4 replies] Last: There is a 'Private:' as well, can I return the functions declared in... (by gunnerfunner)
enumeration type triangleType with values
 
could someone help me make sense of this question please? "8. Define an enumeration type triangleType with values EQUILATERAL, RIGHT, ISOSCELES, and SCALENE...
[1 reply] : enum triangleType { EQUILATERAL, RIGHT, ISOSCELES, SC... (by SakurasouBusters)
txt file into multi dim array table
 
#include<iostream> #include<string> #include<fstream> #include<cstdlib> #include<sstream> using namespace std; int const TTL_HRS = 7; int m...
[10 replies] Last: okay so the problem is... i know how to create arrays. haven't even th... (by NavyVetSafIn)
by lolpwn
Cant get out of my do-while loop
 
When I press X or x it does not end the program, instead it prompts my default case, then the loop starts all over again. #include <iostream> #include ...
[3 replies] Last: Your condition( lastorder != 'X'|| lastorder != 'x') will result in an... (by rabster)
Input/Output Program's Output file is blank
 
I'm currently taking an "introductory" C++ course for biology majors and my professor gave us a code to use for a homework assignment. It compiles without any e...
[8 replies] Last: How would I be able to check to see if the file is being opened? Ch... (by cire)
C++ program functions
 
#include <iostream> #include <string> using namespace std; int GetNumOfNonWSCharacters(); FindText(); ReplaceExclamation(); ShortenSpace(); GetNumOfWords...
[2 replies] Last: how can i make the menu work i have this #include <iostream> #inclu... (by elmessican)
Help using for loop a formula
 
Hi there! I'm new to programming and I've trying some exercises of the for loop but I'm having some trouble grasping the whole idea. Basically I want to eval...
[2 replies] Last: Indeed something simple. It works fine thank you! (by mafegam)
Implement methods for class called Rectangle
 
I need help finishing this program. I keep getting an error that says " expected initializer before 'bool'. Here's the program: #include <iostream> #incl...
[2 replies] Last: Here you go: (by kaylasimone96)
Input/Output Assignment Trouble
 
Been struggling with input/output in my programming class, my assignment is due tomorrow at midnight(Nov 7), have gotten something started however me or a coupl...
[1 reply] : http://www.cplusplus.com/reference/cctype/ (by integralfx)
November 2016 Pages: 1... 3334353637... 44
  Archived months: [oct2016] [dec2016]

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