General C++ Programming - June 2016 (Page 8)

crashing when outputing vector why?
 
so the code compiles fine and runs like it should but when I select 5 in the program to print out the bill it crashes why is it doing this? there is a few co...
[1 reply] : Duplicated post http://www.cplusplus.com/forum/beginner/192690/ (by chicofeo)
C++ graphics.h
 
Hi , how can I make this rectangle ( http://imgur.com/MxA6FMW ) in c++ using graphics.h library? Thanks!
[2 replies] Last: Check out OpenGL or SFML. Both will do what you want much more conveni... (by Duthomhas)
by ykb
ISO C++ forbids comparison between pointer and integer
 
when I use gcc to compile this .c file, there's no exception, but when I use g++ to compile, it throw below error: ch.c: In function `int get(int*)': ch.c:5: ...
[2 replies] Last: There is an of course about that ! You can't compare a pointer with a... (by King Of CPP)
Help 4 this code
 
#include <iostream> #include <cmath> #include <cstdlib> #include <windows.h> #include <ctime> using namespace std; int main() { int num, numrand, score; ...
[1 reply] : I think it should be something like this : #include <iostream> #in... (by King Of CPP)
Question about code
 
Hi, I have this problem with char *s #include <iostream> using namespace std; char *a, b; char *str="Abstract"; int main() { str+=3; b=*(str...
[5 replies] Last: I think whats confusing you is the post increment. In the line where "... (by Arslan7041)
Clearing and Erasing elements in Vector of Vectors
 
I don't have much of experience in programming and in C++ , so maybe the question is a bit silly for the pros. But anyways the problem i am having is that i ne...
[1 reply] : Do not overcomplicate. You seem to desire to remove each integer eleme... (by keskiverto)
Radix sort using std::bitset
 
Hi all, I'm on summer break and thought I would give myself a project to keep me busy and learning during my offtime. Last semester my class covered sorting an...
[3 replies] Last: In-place MSD radix sort (also from wiki) https://en.wikipedia.org/wiki... (by JLBorges)
Encrypting and Decrypting
 
Hi, I am actually good at coding C# so I know the basics of C++ but I do not confirm I am good at C++. Anyways, I just want to learn how to encrypt my own file...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/192547/ (by closed account 48T7M4Gy)
Class replacement and limiting inheritance
 
I have what may be a very unique problem to solve. I am writing a "modeling" program that is to be used to model various types of concepts and principles. I h...
[14 replies] Last: Ok, it all sounds good :+) I am sure you will have a great and enjoyab... (by TheIdeasMan)
Does the semicolon have a meaning beyond aesthetics
 
This article ( https://gcc.gnu.org/onlinedocs/cpp/Swallowing-the-Semicolon.html ) mentions, "semicolon is actually a null statement." What is meant by that, or ...
[5 replies] Last: What the term "null statement" means in the context of C++ is precisel... (by JLBorges)
Hey guys, How do they make programs related to sound
 
Hey guys, I always wondered that how do they make programs related to sound, let us suppose winamp or Guitar pro. is there any simple way that I can take...
[2 replies] Last: thanks.. (by rajhansk)
I want to Take Out Each word from String, Please Help
 
Guys i want to take out each word from one sentence in string. my string is this : str1 = {"Sun Moon Earth"); I can take out first Word Sun, but another wor...
[2 replies] Last: There are a couple of issues here so I'll do my best to sort them out.... (by Pinguinsan)
for statements
 
i want to know the problem with my code, am having error runing this code, i want to print out all combination on a bag lock. the permutations should have 3 di...
[2 replies] Last: thank you very much chervil i didn't even realize it (by shadownet2)
Boost asio client server starting
 
Hello Guys, I am new to c++11.I want to learn client server architecture in cpp using boost asio. if you guys have some sample example then please share it. Or...
[4 replies] Last: Thanks, I have gone through with it. Its really nice. (by ankit2002)
inserting an element into a multi-dimensional vector
 
Hello, my problem is I was wondering the proper way to insert an element in a vector inside a vector. For example, I would like to insert X after C (or insert X...
[3 replies] Last: I like your idea Thomas, thank you! (by popa6200)
what am i doing wrong...
 
#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; struct struktura { string clan,clan1; struktura *next; ...
[1 reply] : I'm not sure what specific problem you are having. I see 2 possibilit... (by doug4)
c++
 
please help me for this, create a c++ program that will allow the user to five name of student name, course,year level, section, prelim, midterm, final, final ...
[1 reply] : could you show us what you did/tried? (by shadder)
Interfacing C++ with assembler
 
I'm optimising some code by dropping into assembler. I wrote a C++ function that does what the assembler will be doing; got the compiler to output the assembler...
[4 replies] Last: > Would it be sensible to temporarily move the data into simpler data ... (by BrowserUk)
String Validation function- need explaination
 
Below is a function from learncpp.com chapter 13.5, compiles and works fine. I cant understand how or why it works. My confusion comes with the switch statement...
[1 reply] : Those other symbols will not be matched. Only the '#' case and default... (by Arslan7041)
Beginner
 
I am very new at c++ and I am trying to get create a program where the user can type in the information that will added up to get and then they will get end up ...
[1 reply] : http://www.cplusplus.com/forum/beginner/192563/ (by closed account 48T7M4Gy)
June 2016 Pages: 1... 678910... 14
  Archived months: [may2016] [jul2016]

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