Beginners - December 2016 (Page 23)

Function that consulates the energy sequence???
 
I usually always never post on forms because a quck Google search gets me the information I need. This time its different... I need to create a function that c...
[5 replies] Last: square(?) each C(S) and add them together. I'm not sure if C(S) meant... (by lastchance)
Strictly identical arrays input
 
Hi there, Any general tips to clean up this code? just seems that I can accomplish the task w/o doing all the checks.. Thank you! The txt book problem: (stri...
[1 reply] : Your code: for ( i =1; i<=n; i++ ) { if ( x1 != x2 ) { retu... (by keskiverto)
Tricky algorithm
 
The August Shokunin challenge: There are a large number of 9 digit integers in the range 123456789 to 987654321 where each digit only appears once. Your m...
[1 reply] : Do not doublepost. http://www.cplusplus.com/forum/general/203966/ (by keskiverto)
+= operators , -=operators
 
Hello There. Can someone help me to modify my program so that the add opperations is + = operators & - = operators ? #include<iostream> #include<cmath> ...
[1 reply] : variable += value is variable = variable + value. Doesn't work with y... (by boost lexical cast)
Assign txt file data to struct node in linked list
 
Please. help me with programming. program has to read whole numbers (10-15 numbers) from an input (notepad) file and stores it in a single linked list. Then f...
[no replies]
by Grimes
Creating 2nd BST
 
I have to create a binary search tree that when the below code is asserted it passes. the issue that i'm running into is creating the binary search tree. in...
[2 replies] Last: i just found the problem is that the code, given by the instructor was... (by Grimes)
process state
 
A process is an instance of a computer program that is being executed. It contains the program code and its current activity. As a process executes, it change...
[no replies]
blank
 
question removed
[6 replies] Last: OP: please reinstate your original post(s) if you want any further hel... (by gunnerfunner)
solved.
 
code removed
[7 replies] Last: http://www.cplusplus.com/forum/beginner/201942/ (by closed account 48T7M4Gy)
by Alex A
char arrray, how count the numbers of letters in a paragraph ?
 
Hi guys, the below program calculates the amount of capital and lower case letters on a paragraph saved in my flash drive. The program works fine ,but I would...
[4 replies] Last: You can extend this by studying the ASCII table and apply filters and ... (by closed account 48T7M4Gy)
Displaying output of prototype function in main function
 
Hello guys, I'm trying to code a program where it asks the user to put a number represent the numbers in an array. The user then will enter the numbers in the a...
[6 replies] Last: Also, instead of double min = 0; double max = 0; try d... (by Chervil)
string subscript out of range
 
Hi. I am having issues debugging this program. I get an error message saying Debug assertion failed and i cannot seem to figure out where the problem is or how ...
[1 reply] : Check the condition on line 28. When does it become false and the loo... (by cire)
Prime Factorization Problem
 
Whenever I run this program, i get the error "expected initializer before 'int'" on the line of "int primefunc", how can i fix this? #include <cstdlib> #inc...
[3 replies] Last: Please use code blocks when posting code. When writing code its best ... (by MistahMoose)
Array help
 
Hi everyone, so for my programming class we just learned arrays and now are tasked with a lab that gave you a array declaration. I had to find sum,avg,first las...
[1 reply] : Initialize a variable to a number less than any that will be in the ar... (by joe864864)
Prime Factorization Problem
 
It runs but nothing is outputted as response, what wrong? #include <cstdlib> #include <iostream> using namespace std; int Input; int Divisor; ...
[no replies]
Can't figure out how to write this program
 
I just starting writing C++ and need help with a project Im trying to write a C++ program that will read a set of grades from one file, add 10 points to eac...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ (by integralfx)
by roots
Not returning correct area.
 
The problem is the get are functions are not returning the correct are. Not sure what the problem is. Also if anyone knows what the x,y coordinate might have to...
[1 reply] : Where do you actually initialize the variables in your classes? For e... (by jlb)
Calculating average using struct, vector, and for loop.
 
Hi as the title says I need to use a struct, vector, and for loop to calculate the average mark. The program runs but it does not calculate the average correc...
[2 replies] Last: Attempt to fix your code before looking ;) I did not use struct, But i... (by MistahMoose)
Return error
 
Hello guys, I'm trying to code a program where it asks the user to put a number represent the numbers in an array. The user then will enter the numbers in the a...
[3 replies] Last: You don't have to return anything from function void minmax(), first b... (by Chervil)
char ascii and conversion
 
Hi, i need to change every letter from the word that was entered into its 3rd "neighbour" in ABC. E.G., word "GRAMMAR" would be executed as "JUDPPDU". The probl...
[7 replies] Last: If you want to read more about what Kemort used google "Caesar Cipher"... (by MistahMoose)
December 2016 Pages: 1... 2122232425... 28
  Archived months: [nov2016] [jan2017]

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