Beginners - November 2016 (Page 11)

by Cipota
Input File Statistics
 
I have been trying (for 3 days now) to write a code that will return the statistics of an input file. The function needs to returns the following statistics of ...
[2 replies] Last: I reworked my code, is working now. Thank you for the direction, reall... (by Cipota)
by polklk
Using loops with classes and arrays
 
Hey, I'm currently working on a banking system project and have created 3 objects representing 3 different customers. I've created a menu for the user to navig...
[8 replies] Last: void withdraw(Customers Cust, int AccNo) Your Customer object is pas... (by integralfx)
by mrsh
The correct way to define array
 
I need help in defining the size of array P and Q where it is from maximum number of random number.Here is my code #include <stdio.h> #include <iostream> #inc...
[6 replies] Last: I did for display P, however,i face new problem in positioning P in MX... (by mrsh)
Interest question w/functions
 
So I have to create a program for my class. The prompt is as follows: Write a program that has 2 functions. One function computes the amount using qauterly co...
[1 reply] : http://www.cplusplus.com/doc/tutorial/functions/ (by integralfx)
Convert a char into binary code
 
How can you convert a char into binary code using function?
[1 reply] : You could use a bitset. http://www.cplusplus.com/reference/bitset/bits... (by integralfx)
Validating user input with text file
 
Hi, I need some assistance. I have two text file, fileName.txt and voteDate.txt. I am doing something which will allow user to select the option from the menu. ...
[5 replies] Last: Using c++11 features ... file1 is a list of names. file2 is the file ... (by gunnerfunner)
Inverting a string with ANSI C & Pointers
 
Swap case) Write a function that inverts a string by changing all uppercase letters to lowercase and lowercase letters to uppercase and displays the symbols in ...
[11 replies] Last: @JLBorges Your solution is far from complex. (by Unkana)
Weird function call issue
 
I've been trying to get back into learning c++ again. I'm having trouble with this. When I run this, everybody works except that when I select 1 for encryption,...
[4 replies] Last: Thank you both for the help! Cin.ignore () worked. Thank you! (by TimmyFangs)
How is C++ used and integrated in systems? Example inside.
 
Good Evening! Very new to C/C++, not so much programming. I come from a WebDev background, not a Software Dev/Eng position but I have recently found in inter...
[5 replies] Last: This has something to do with the hardware. Let's say, a CPU has many... (by liuyang)
help with arrays
 
I am having trouble understanding arrays. What I need help with is Create an array of type double that can hold up to 5 elements. Ask the user for 5 numbers. Di...
[3 replies] Last: so i wouldn't need to include the part I listed before with numbers ... (by vegasdog)
recursive fibonacci ,stack memory illustration
 
I would like to see the progression of the algorithm as it changes values in stack memory (in order to get a better understanding of its internal process in me...
[3 replies] Last: thanks (by mynicks)
by jeg19
swap() by passing pointers
 
Write a swap() function that only takes pointers to two integer variables as parameters and swaps the contents in those variables using the above pointers and w...
[2 replies] Last: I personally prefer this solution, it is super geeky: #include <iost... (by closed account E0p9LyTq)
by polklk
for looping a matrix to check user input
 
Hey guys, I'm messing around with a tic tac toe game using c++ and i've created a function for the user input. Instead of using numerous if statements to chec...
[2 replies] Last: yeah you are right, for some reason it works with: void Input() { ... (by polklk)
Looking For A Mentor
 
Hello, I'm looking for someone to help me improve my problem solving skills when faced with an assignment. I want to improve at being able to break apart an as...
[no replies]
by HotWax
string.find() problem
 
Hello! I am attempting to write a program that translates a sentence from a file to Pig Latin. Here is the first sentence that is being translated: I SLEPT MOS...
[2 replies] Last: Okay. I understand now. Thank you! (by HotWax)
error: a function-definition is not allowed here before '{' token
 
Write your question here. #include <iostream> #include <windows.h> using namespace std; int main() { cout << "Test with variants.\nChoose a,b,c,or d as ...
[6 replies] Last: There doesn't appear to be any value that it is trying to return to th... (by AbstractionAnon)
by Panto
C++ help with code
 
Hi, I need help programming this code with these specific requirements, ive done a part of it already: Design a C++ program to estimate the cost for painting...
[2 replies] Last: Hello Panto, PLEASE ALWAYS USE CODE TAGS (the <> formatting button) w... (by Handy Andy)
Nested looping code
 
Need help writing a code which creates this structure. I understand how to write the loop decreasing numerically from 44 to 0, but dont understand how to integr...
[2 replies] Last: thank you!! (by wikkkkki)
so close...I think! madlib homework assignment
 
So this is a homework assignment. It's a variation of the madlib assignment most students seem to have to do. We are not allowed to use String class. (i don't ...
[no replies]
what is the correct output? explain your answer please
 
what is the correct output? explain your answer please #define PRODUCT(x) ( x * x ) main( ) { int i = 3, j, k ; j = PRODUCT( i++ ) ; k = PRODUCT ( ++i )...
[1 reply] : 9 49 (by skaa)
November 2016 Pages: 1... 910111213... 44
  Archived months: [oct2016] [dec2016]

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