Beginners - October 2013 (Page 38)

I need help with these few problems...
 
1) The first program should ask for the number of lines the user wants to output then the display should scroll down that many lines with line number starti...
[no replies]
Blank
 
[1 reply] : [quote=willynilly]I need to know whether, a user can call and print da... (by LB)
by Martea
Help determining why the input isn't detecting the 'end of file' command
 
I am at a beginner level of c++ programming, so this may be a very obvious question, but here goes: I had to write a function that reads words from an input ...
[1 reply] : > However, after I enter some words followed by end of file, nothing h... (by ne555)
by edock
Inputting a string into a array using cin and getline
 
This is Word Jumble program for a class. I was told I need to allow the user to input what word and hint they would like and store it into the array. I am havin...
[1 reply] : All I needed to do was change where I asked the user to input the word... (by edock)
Issue with array
 
I am writing an assignment for my class and I think I have everything pretty much done and setup but I am encountering an issue with the loop and stopping it at...
[1 reply] : I figured it out, instead of using this string for(int i=0; plette... (by Kevinj87)
Print out the first letter of last letter
 
Beginner here. How would I print out the first letter of last name. for example, Last name: Khan on the console, I want to print it out as "K" only.
[4 replies] Last: Thank you guys! :) (by fahmankhan75)
Student Average, initilization issue?
 
Keep getting an error that says testgrade1 is not initialized. On my input file, I have allowed the user to enter in the grade for test1 and test 2, but I only ...
[2 replies] Last: ahh. Should have caught that. Thank you though :) (by fahmankhan75)
Bitset in a class
 
I've declared and initialized a bitset in main with no problems, however when I use the same syntax in a class I get compiler errors. The following code comp...
[9 replies] Last: @DTSCode: Nice. Thanks for all the info. I definitely learned somethin... (by navig8tr)
Need help with code
 
This is a math tutor program. I am having an issue when I enter -1 to exit to the main menu it is not working. any help will be appreciated. // This pro...
[no replies]
What should I learn to program next?
 
Okay, so I now know basic programming like datatypes, statements, loops, etc.... a lot of stuff for console applications. But now I am wondering what to do next...
[no replies]
Console Won't Close After Counter Reaches Certain #
 
I'm writing a program for a simple ATM machine. The only valid pin is 123. If the user enters an invalid pin three times, the program should display and message...
[3 replies] Last: Thank you! I works perfectly now :). (by annaisarobot)
Christmas Card
 
Couple questions: 1. Why is my bottom border not centered and actually displaying the underscores? And how can I be using strlen to make the bottom border corr...
[no replies]
Having trouble with program add number to array
 
never mind
[no replies]
Pennies for pay homework
 
So I have to solve this using a For loop. I have to make it display a message once it hits 1 million dollars which is 100,000,000 pennies but im not sure how to...
[11 replies] Last: unsigned long long j; fixed the last output (by hiimmike)
by beliya
Print elements from matrix within interval
 
Hello. I need to make a program that inputs data for a matrix B where m<8 and n<10. There is interval [c,d] and I need to find which matrix row have the m...
[2 replies] Last: Hello. Thanks for the hint. Do I understand you correctly? for (i=... (by beliya)
by kay19
Comma's and decimal input
 
Question: Well I have to input a number correctly with comma's and a decimal. My input would be 243,111.11 and the output would come out as 2,43,,111.11 Do I ...
[no replies]
help tic tac toe
 
why does the funcion isFree does not work. It is suppose to check if a position in the array has an x or o. the array is a char array and my code is quite lon...
[6 replies] Last: I'm telling you, the for loop doesn't work. What is position ? It's... (by GRex2595)
by jcrose
Minor Fix
 
My code is supposed to prompt the user for how they are feeling. If they say "good", "great" or "well" it is supposed to respond with "Super! Tell me more." If...
[2 replies] Last: http://www.cplusplus.com/reference/string/string/find/ (by GRex2595)
by cncfan
char array help
 
It wont display the char amy, i dont want to do cout statements each time. #include <iostream> #include <windows.h> using namespace std; char amy = {"#...
[1 reply] : #include <iostream> #include <string> using namespace std; string ... (by Chriscpp)
min_element not functioning properly
 
Hello all, I'm writing a small recursive program. Here is the code: #include <iostream> #include <vector> #include <algorithm> using namespace std...
[1 reply] : The function expects iterators, not elements. front() and back() r... (by Catfish4)
October 2013 Pages: 1... 3637383940... 86
  Archived months: [sep2013] [nov2013]

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