General C++ Programming - November 2015 (Page 25)

Urgent Help needed!
 
Problem: Would like to continue this loop until I get a 'N or 'n' response from the user. This is the final problem I encounter then I am done with the assignm...
[7 replies] Last: Lol, solved myself. (by OmfgWdf)
Getting Odd of whole integer
 
Hi there. > Get an integer, for example "1234" > get "1" and "3" > add both "1" and "3" Need guidance please. int sumOfOddDigits(int n) { ...
[2 replies] Last: Thanks cire, I used a longer method but it worked n % 100 / 10 n% 10... (by OmfgWdf)
Sort program
 
Hello, I have this command-line program. Description: Sort input lines by lexicographic order, if an optional argument -n is given sort them numerically. It co...
[no replies]
PLEASE HELP ME!!!
 
i have to made checkers with computer for school project......i have to submit it within 3-4 days .....till now i have made only board and circles.....but now i...
[2 replies] Last: #include<simplecpp> bool validSel(int a,int b,Rectangle R ,Circle c )... (by autosolid)
Help
 
Someone help me with this, I am getting errors. Which part is wrong? Program is supposed to check if the input number is 2 digit or 1 digit. if 1 digit = retu...
[4 replies] Last: Yeah it didn't work previously and I was struggling to make it work. T... (by OmfgWdf)
linked list union operation function issue
 
Hi, I am having a problem with my union operation function. at the end of the function, I am supposed to clear the both parameter lists. but, at the end of t...
[2 replies] Last: thank you for the explanation. I think I know what I am doing wrong. I... (by djhyun0001)
I'm completely lost with this pointer problem
 
Can someone please tell me what is going on here. I am pretty much clueless. //... struct Link { string value; Link* prev; Link* succ; Link(const string& ...
[4 replies] Last: Link* norse_gods = new Link("Thor", nullptr, nullptr); // n... (by cire)
Oh merciful heavens please help me
 
I am trying to create a basic c++ code which reads data from an input file of suture data. There are several rows of of four numbers in the file that are to be...
[1 reply] : int temp, press, time, batch; int is the wrong data type. Why are y... (by Zaita)
by Aceix
Kinetic User Interface
 
Hello all, I'm thinking of creating a cool visual gesture app for windows, which will use camera as input device. i need suggestions on how to go about it. A h...
[1 reply] : You'll probably want to check out OpenCV. It's the go-to library for c... (by helios)
Problem with rotating towards something
 
I am trying to have something constantly update itself to point towards the player, but I am having a problem with it. The problem happens whenever the angles a...
[5 replies] Last: Ok I figured it out. If anyone else has this problem I just compared t... (by Bingocat4)
Am I getting out of memory here?(dynamic matrix related)
 
Hi, My code works properly but ends in one point without any warning. Here the code below: #include <iostream> #include <array> #include <vector> std::vecto...
[1 reply] : > Am I getting out of memory here? considering that there is not a sin... (by ne555)
it is time for The Walking Dead Season 6 Episode 4
 
Why/How did you think this forum is for high schoolars?
[no replies]
Vector Run Time Error
 
Hi guys I'm trying to help out a friend who's studying math. They have to develop a program, where you type in a number "n" and a number "k". Then you have t...
[2 replies] Last: Valid indices of an array of size n are 0 through n-1. Likewise, with... (by cire)
by Rehmat
Help urgent plz
 
I am pasting my code below, plz i want to have the answer of my Input in the same line where i write question... Example: if i write 2*5 so by entering it s...
[2 replies] Last: New to programming, just a month old, but why not try adding the new l... (by Ezeanata)
double float
 
how much number can double and float hold?
[1 reply] : http://www.cplusplus.com/reference/limits/numeric_limits/ Hi Look... (by TheIdeasMan)
how use strings and pointers?
 
i have these function: string *strreaded=NULL; void read(string &txttext) { blnread=true; strreaded=&txttext;//string } if i avoid the...
[2 replies] Last: read some data and put it on pointed variable. but now it's fixed: vo... (by Cambalinho)
Star Search
 
I have to write a program that will take the score of 5 judges and then drop the highest and lowest and then out put the average of the remaining three. This is...
[no replies]
by dpk24
.exe file has stopped working.(graphics.h)
 
hello there! im using codeblocks with mingw32 compiler(windows8 64 bit).i have downloaded and installed <graphics.h> corectly. the execution is perfect,if i ju...
[no replies]
Using an abstract class type as a parameter...? and some more...
 
I'm screwing around with this little game program. I have a Player class and an abstract Enemy class. I need to be able to access the Enemies atk and hp whether...
[1 reply] : #include <iostream> #include <string> // using namespace std ; class... (by JLBorges)
by a7867
Programming help
 
#include<iostream> #include<cmath> using namespace std; int main(){ float a,b,z,m,n,p,r,s; int x,y,q; char c; cout<<"Choose a claculator by typing 1 ...
[2 replies] Last: Here is an example of how to deal with selecting menu items, but app l... (by ShiftLeft)
November 2015 Pages: 1... 23242526
  Archived months: [oct2015] [dec2015]

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