General C++ Programming - April 2015 (Page 21)

Help with class
 
Here are 2 steps in a hw problem for a class. 6. equalDate to compar e the dates of two Appointm ent objects, r eturn true if they are the same and false otherw...
[4 replies] Last: Well how can I put that in bool form? Like something like this: bool ... (by Thanase)
compile error ambiguous symbol for function call
 
The bool function pair value is assigned to boolean variable wpair. The compiler is giving me and error => pair:ambiguous symbol . // Cardgame.cpp :...
[no replies]
by rtk94
Inconsistency across platforms. Need help!
 
Helo all, I am in an introductory programming class, and I am working on a C++ project. The project involves reading in a list of integers from a text file, sa...
[5 replies] Last: #include <iostream> #include <cstdlib> #include <fstream> //using na... (by JLBorges)
Undefined reference error
 
file :solver02.h #ifndef Solver03_h #define Solver03_h template<typename Function> double SolveByBisect (Function* Fct, double Tgt, double LE...
[5 replies] Last: please help (by xyasmine)
by awkedd
Algorithm too slow?!
 
The program must output the last digit of S=1^4 + 2^4 + 3^4 + … + n^4. This is my code: #include<iostream> #include<math.h> using namespace std; long...
[5 replies] Last: Oh, you're right. Thank you ! (by awkedd)
Why is my Library Management program not writing to file
 
Hi, I am creating a library Management which you can add books, dvds and students to. The books and dvds can then be issued to the Students. The books, dvds an...
[3 replies] Last: You have a number of problems, I'll deal with them first rather that w... (by kbw)
by na90
Undefined reference
 
Hi, I am doing this coding and I don't know why it came out as "undefined reference" This is the code main cpp #include "Solver03.h" #include "Margrabe.h" #...
[2 replies] Last: ¿what is your build command? Your project is setup incorrectly, you c... (by ne555)
Passing Parameters As Pointers?
 
This is my code that I have so far and I am not entirely sure what I am doing, I need some help please? This is What I am suppose to have done. ...
[1 reply] : Please Do not Doublepost - http://www.cplusplus.com/forum/beginner/161... (by TarikNeaj)
by awkedd
Print square of chars
 
I had to make a program which prints a square like this : **** *##* *##* **** if n was 4 , c was * and d was # . I wrote it this way and it worked: #includ...
[3 replies] Last: welcome :D (by shadder)
Dos to unix
 
code that transfer command unix to dos command
[2 replies] Last: I think you mean Cygwin? : https://www.cygwin.com/ (by Computergeek01)
by nte40
Taylor's Series of cosine x and sine x
 
Hi , I've been cracking my head with this Taylor's series problem , im new in c++ and need some help with my code , the output of both sine and cosine is 0 and ...
[4 replies] Last: Thanks hyperfine , I managed to solved the problem , you are right the... (by nte40)
Array question
 
Am trying to write a program that will accept the data of patients treated in a hospital's four emergency rooms in three shifts. The program will compute and di...
[7 replies] Last: Tripple Posting is considered spam, and I have all the right to remo... (by Little Bobby Tables)
Using an object in several .cpp files
 
I am creating a Library Management system. And Im having a problem. I have a Main.cpp, Book.cpp, DVD.cpp and Student.cpp. I am creating a book and dvd object...
[1 reply] : For using the class or function declared in a .cpp (or .h) you must in... (by LaboPie)
by yj1214
Questions about SFML and OpenGL...
 
So I got into SFML and OpenGL!! and I have few questions. 1. Why do you not explicitly include OpenGL in SFML? does it already have one? if so, which version?...
[1 reply] : 1. You don't use opengl code yourself, the library does the calls for ... (by poteto)
simulating a die roll (1,2)
 
#include<iostream> using namespace std; int roll(), rnum; void main() { int i; for (i = 1; i <=5; i++) cout << "Your roll is : " << roll() << endl; ...
[26 replies] Last: Who in sane state of mind would teach global and function scope static... (by keskiverto)
StrStr with pointers
 
Please help me, I'm struggling to wrap my head around pointers and my teacher just gave us a large program due by Apr 6 2015. I desperately need help. I've been...
[2 replies] Last: Thanks TarikNeaj for the videos. Those will be helpful. I just wrote ... (by Accelerator)
Can someone please tell em why this wont work.
 
#include<iostream> using namespace std; int roll(), addOdd(int odd), odd; static int num1; void main() { int i; srand(1181); for (i = 1...
[6 replies] Last: I edited my code above...hope that helps. (by yj1214)
c++
 
I was just wondering if there is a way to keep the numbers from displaying in the board when the program runs. #include <iostream> #include<conio.h>...
[3 replies] Last: thanks alot and him rewriting my code wasn't giving me any answers I d... (by ArtisticMess)
CASINO GAME CONFUSION do while
 
HEY EVEYONE!I need some help with this code! It is a craps game and a casino menu the rules for the game go on the first roll if you roll 7 or 11 user win...
[no replies]
Dijkstras algorithim - show the shortest path problem
 
Hello... I have a problem with showing the shortest path, it calculated the correct distance, but I cant show the correct path it took, this is my code: vo...
[no replies]
April 2015 Pages: 1... 1920212223... 28
  Archived months: [mar2015] [may2015]

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