General C++ Programming - December 2014 (Page 22)

by Camaru
Help
 
How to create trialer or Day count into my Project Dll ?
[no replies]
by Kubani
Function Fct
 
Hello, In below link an entity named Fct has been introduced: http://books.google.com/books?id=We21AwAAQBAJ&lpg=PP1&dq=programming%20principle%20and%20p...
[2 replies] Last: Thank you for the answer. (by Kubani)
Array Question
 
I'm having a little trouble figuring something out. Below is the code for a function in program I am writing for a class. The purpose of this section is to sele...
[1 reply] : Your condition is outside the loop, so it will be only checked after f... (by MiiNiPaa)
While loop condition not working correctly.
 
The while loop part of my program isn't working right. stringOriginal is an array. If a large amount of characters passed the max 80 im processing is typed, it ...
[1 reply] : You can't compare C strings using == because that just compares the po... (by Peter87)
AltIMU-10 v4 programming
 
Hi im using the altimu-10 v4 sensor to display pitch and roll on the serial monitor. I obtained an example code which reads the accelerometer and magnetometer g...
[no replies]
C++ Displaying ppm Images in command prompt
 
I have no idea as to what the next step would be in order to get my code to work. Thank you in advance if you can assist me. I appreciate it very much. These a...
[2 replies] Last: Thank you (by StudentProgrammer213)
Finding the maximum value of an array of randomized numbers. What is wrong with it? thanks
 
#include <iostream> #include <ctime> #include <cstdlib> #include <cmath> using namespace std; int findLarger(int thearray , int &largervalue); int mai...
[no replies]
Array Program Please Help
 
So I get the error: "argument of type int is incompatible of type int" and I have tried many things already. highlowavgFunc(even , odd ); maxthanavgF...
[10 replies] Last: Updated Code #include <iostream> #include <iomanip> #include <fstr... (by tony2481)
binary search tree countnodes
 
Ok so i have this function countnodes that calculates height and number of nodes in tree. I just don't understand how i can implement the function so it derives...
[no replies]
finding whats wrong with c++ program
 
#include <cstdlib> #include <cctype> //Required for toupper() #include <string> //Required for string #include <iostream> //require for ostream using n...
[4 replies] Last: You have unmatched closing bracked on that line. delete it. (by MiiNiPaa)
Trouble reinitializing values with subprograms
 
Hi, I'm trying to make a cash register program, but first I need to reinitialize ones, fives, tens, and twenties to their correct dollar amount. However, whenev...
[2 replies] Last: Ooooooh, It's working now thanks :) (by tybalttheappleEater)
Genome Work
 
Hello all, I have been working on this for awhile and cannot seem to get the program to work. In short the errors i am receiving are this: 1. If the read functi...
[15 replies] Last: For example, the find(s) on line 64 start from position 0 rather than ... (by keskiverto)
end of file found befor braces
 
Help.. I have counted my braces and it look to be correct but I am seeing double.. I am getting the "end of file found before the left brace.. do I have one in...
[6 replies] Last: yes! (by mztonka1)
How to use a structure pointer through a structure public member definition
 
Why doesn't this compile? struct hi(){ void other(); }histructure; void hi::other(){ std::cout << "Hi!" << std::endl; } struct hello() { void hellothere...
[3 replies] Last: histructure *stuff; <-- histructure isn't a type - I think you mean t... (by wildblue)
question about my implementation function
 
my project is about loading the text file and record the information about selling chocolate and 3 types of chocolate there are 5 class we have to do, and when ...
[no replies]
I have @ question In C++ I Can't Solve !
 
Q2- Write a program that takes an array of strings from user and have a function named “deleteNoccurrence (string1, n)” where n is the number of required oc...
[1 reply] : You say you "can't" solve it, yet I see that you tried anything. All I... (by giblit)
Converting a double to a string
 
I'm trying to find a way to accuratley convert a double in the form of a bank account number stored in a file into a string representing the number returned by ...
[1 reply] : Why are the bank account numbers stored as doubles and not strings in ... (by giblit)
Line duplication in project.
 
I am having a problem with the duplication of a line I'm outputting from a file. Whenever I run the program the last line in the "New accounts" portion is alway...
[3 replies] Last: Thank you . It started to work correctly after I did this. (by closed account L074GNh0)
Hypotenuse for ONE side and ONE angle?
 
On a right angled triangle, if the user inputs only ONE side length (not the hypotenuse) and only ONE angle, what code is required to work out the hypotenuse? I...
[4 replies] Last: MiiNiPaa, Thank you for your time btw :) (by mgsanders100)
by wuubb
program skips over user input?
 
G'day all, I am so close to finishing this program of games, but I'm running into some issues while debugging it. I've attached the google drive folder si...
[2 replies] Last: anytime you use a getline(cin,strName) ... put a cin.ignore(80,'\n');... (by wuubb)
December 2014 Pages: 1... 2021222324... 31
  Archived months: [nov2014] [jan2015]

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