General C++ Programming - November 2018 (Page 4)

good library to learn
 
Once you know the language what is a good small to medium sized c++ library to learn. sfml and sdl s...
[8 replies] Last: thanks for the advice Grey Wolf. I will pick up gamma's book. (by mycomputerisapotato)
How to overload istream operator while using enums?
 
I'm familiar with how to overload operators using classes, but I'm having some trouble when it comes...
[1 reply] : Something like this, perhaps: #include <iostream> #include <string> ... (by JLBorges)
is the statement correct to generate a 5 digit number? (1,2)
 
is the statement correct to generate a 5 digit number? num=rand()%1000+10000;
[21 replies] Last: [quote=Peter87]Visual C++ defines RAND_MAX as 32767. One of the reas... (by closed account E0p9LyTq)
by helios
Redefining #ifdef _WIN32 into WINDOWS
 
//In a header accessible from everywhere: #ifdef _WIN32 #define WINDOWS #else //Don't #define WIND...
[3 replies] Last: I will never understand that. It's not like this was even a school ass... (by Ganado)
by DellXT
Creating c++ library
 
Hello. I've faced an interesting task - to create a library for graphical visualization of the conso...
[1 reply] : What are the error messages ? (by Thomas1965)
How to change a string variable to an array of characters?
 
How to change a string variable to an array of characters? Sorry for my bad English.
[1 reply] : http://www.cplusplus.com/reference/string/string/c_str/ (by Browni3141)
i need help with array of searching and sorting
 
Implement a Bubble Sort. In main, declare an array of 10 integers. Create 3 function to inputA...
[8 replies] Last: To write your own code from scratch, just follow naively your assignme... (by homy18)
by alreem
anyone know how to write a program
 
HELP me please to solve this problem using if statement Write a C++ programme that reads a sequ...
[7 replies] Last: anyone know how to write a program Writing a program is easy. #in... (by closed account E0p9LyTq)
by YikUTM
Works on mac but not working on windows
 
Hi, everyone. I am trying to convert infix to postfix using linked list, class and stacks. This prog...
[1 reply] : You’re more likely to get good help if you would be more specific ab... (by mzimmers)
by dr86
Generate random samples from multivariate distribution
 
Hello. At the link: https://stackoverflow.com/questions/6142576/sample-from-multivariate-no...
[4 replies] Last: Peter, Thank you very much for your help. Line 41 is modified: ... (by dr86)
C++ problem
 
...
[1 reply] : my hint is that your hint is bad lol. char response; //don't need in... (by jonnin)
i need help in algorythm
 
Hello , I have to write an algorythm which will be able to give me all possible pairs from 1 to N; ...
[6 replies] Last: it isnt required to use 2 nested loops, but that is the simple way. t... (by jonnin)
by Satan
Is my logic right?
 
void remove_coordinates(const unsigned int &index, coordinates *&path_array, unsigned int &current_...
[16 replies] Last: Going off the positive end can do the same thing (tamper with other va... (by jonnin)
passing a function to an array.
 
Removed
[9 replies] Last: Algonology have you ever tried Googling for something related to C++? ... (by Satan)
by lo2
Running out of stack memory according to valgrind?
 
Hi, So I am currently writing a program, and I have encountered the following issue. When I run ...
[11 replies] Last: > Another question will it also make my code run faster using std::vec... (by salem c)
merging two files into third file
 
Can anyone tell why the last alphabet of both file print twice in third file? #include<iostream> ...
[6 replies] Last: got it . Thanks alot (by swahajali)
by alreem
need to answer
 
What si the output of the following code: int vb char dd for (int i= 0; i < 8; i++0 cin >> ...
[6 replies] Last: The easy way to check is to write a correct program and put it between... (by homy18)
Website Bot
 
I’m looking to try and create a bot that can add to cart & bring up checkout on websites before th...
[no replies]
Need Help
 
This is my coding #include <iostream> #include <cstring> #include <fstream> using namespace std;...
[1 reply] : 1. "need help" isn't a subject title. http://www.catb.org/esr/faqs/sma... (by salem c)
Pig Latin Help
 
edit: I guess long story short is how do you save and detect spaces in a string vector? Because the ...
[1 reply] : got it. I fixed the vector a bit for (int i = 0; i < str.length(); ... (by arblinked)
November 2018 Pages: 123456... 12
  Archived months: [oct2018] [dec2018]

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