General C++ Programming - September 2015 (Page 10)

I have an issue with loop when I enter double valuse
 
#include <iostream> #include <iomanip> #include <windows.h> #include<fstream> using namespace std; HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); void showmass...
[1 reply] : Maybe this can help: #include <iostream> #include <iomanip> #include ... (by MarekG)
My Own Vector Class
 
I am creating my own vector class. I have a driver program that tests the vector class, and it is not passing Test 4. It gives me an error when I enter 1-7 or m...
[1 reply] : In operator=, line 76, you only create one element. You also have a me... (by Peter87)
by emsiwx
delete FileStream problem, please help
 
Hello, I have a loop downloading files from web: ....... SaveFileName = SavePath + SaveFileDataSet + ForecastLength->Text + ".grb"; fs = new TFileStream...
[6 replies] Last: Before I find something good to replace Indy HTTP, I do it like, after... (by emsiwx)
I am having trouble making my program output correctly on my 2nd while loop
 
I am just having issues with this program big time. I have been working on it for 6 days and still no cigar. What's going on is I am trying to do the juggler se...
[6 replies] Last: Or, as is more likely, kemort did understand your English, but you are... (by shadowmouse)
help
 
Write a program that takes as input the standard program source code itself or any file containing text and displayed sequentially and gradually all text char...
[1 reply] : So what is your question ? (by SamuelAdams)
by Winsu
I would to change my operator<<
 
I have overloaded the operator<< but what it gets as a argument is a non-const...I think if the function of operator<< is just display the information it should...
[6 replies] Last: yes, it returns a rvalue, it's what i though but i was getting that mi... (by Winsu)
RECURSION
 
im trying to sum integers, but i dont knw where the flaw is in this code just tell me where is the flaw in this code, dont give other ways to solve this quest...
[5 replies] Last: Click on the reference at the end of JLBorges' sentence above. (by closed account 48T7M4Gy)
C++ Caesar's Cipher
 
I'm currently working on a Caesar's cipher program. I am stuck because I do not know how to access the elements inside the const char 2d array that was given in...
[1 reply] : Sounds like you need to concatenate using strcat() instead of '+' h... (by closed account 48T7M4Gy)
Looping Program
 
Can someone explain how to do a C++ program that, Ask user how many times they want the computer to print "HI". Print "HI" that many times. I am not sure on...
[1 reply] : #include<iostream> #include<string> using namespace std; int main(... (by YFGHNG)
Functions Library
 
I am relatively new to c++ and have a background in php programming so I am pretty familiar with the general syntax but less familiar with the code architecture...
[3 replies] Last: Thanks for the replies, they both make sense and I think I have got it... (by tstolber)
by skitz0
C++ Assignment due today 5PM willing to paypal $$$
 
CS100: Project 0 Revision Date: September 9, 2015 Printable Version Preamble Rain, rain, go away. This program ensures that you are comfortable with ...
[1 reply] : This project is due at 5:00pm on Friday, September 18. There are no l... (by ResidentBiscuit)
by LunarB
hWnd get FPS
 
Hello, I'm trying to make a program which will get all open windows and output their FPS. I know how to get the windows and store them into an HWND array, but...
[5 replies] Last: Bump? (by LunarB)
Chess in C++ (1,2)
 
I Have written this chess program in c++ but i cant write checkmate properly can someone help
[31 replies] Last: Hmm, look at the attacking piece and it's line of attack to the king. ... (by closed account 48T7M4Gy)
C++ program S.O.S
 
Hello, I'm new to programming and my professor asked me to make a S.O.S game that will allow 2 players to enter their names, have and 8x8 board, count the wins ...
[10 replies] Last: Really appreciate it. Thanks !:) (by kroragna)
by LB
Why can't I use abstract types in tuples I never instantiate?
 
https://ideone.com/Uy49wa http://coliru.stacked-crooked.com/a/02fa7173c64236a4 #include <iostream> #include <tuple> #include <typeinfo> struct Test { virtual ...
[7 replies] Last: Ah, I didn't know that restriction existed. I've worked around it by j... (by LB)
What are some useful new syntaxes
 
In c++11 that you guys use a whole lot. I like the for loops ,but I haven't really been using the features because I just simply don't. Please name a few so I c...
[1 reply] : For a list of major features (with explanations), see: http://www.stro... (by JLBorges)
Global Vector of objects
 
Hi, I am trying to create a class to hold a global vector variable that I can share between three application forms. The files compiles ok, yet when I run it, ...
[2 replies] Last: Thanks JLBorges... Actually what I did,is remove the constructor and d... (by sadrirq)
A Negative integer Address for a pointer
 
Can someone tell me why this program sometimes outputs a negative integer address for my variable? #include <iostream> #include <cstring> using namespace s...
[3 replies] Last: std::hex, std::showbase etc have no effect on the output format of p... (by JLBorges)
Checking if a function is const
 
Given class A { public: void foo() {} int foo (bool, char, double) {return 0;} bool foo (double, char) const {return true;} }; HasFooOverloads<A, F<void...
[3 replies] Last: Thanks for pointing me out to Boost, JLBorges. I will use it if I have... (by prestokeys)
by Winsu
Static data member as a default constructor
 
Hello everyone, I have done this code, basically what I wanted to do is set a static data member and use it as a default constructor..thing that I achieved...t...
[5 replies] Last: ok, that's true It's doing a boolean equation but transforming integer... (by Winsu)
September 2015 Pages: 1... 89101112... 21
  Archived months: [aug2015] [oct2015]

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