General C++ Programming - October 2015 (Page 24)

how create a Variadic Templates?
 
i have these Variadic Template: template<typename T> static void write1(T t) { cout << t; } template<typename... Args> static void writ...
[4 replies] Last: see these thing: void write() {} template<typename first_t, typenam... (by Cambalinho)
Program
 
How to create a c++ application like calculator... Please Help Me !!!
[8 replies] Last: You will get an .exe file produced if all goes well using VStudio (by closed account 48T7M4Gy)
by new1
how to Trim the url in c++.
 
Hello, I got stuck in trim the url to header host format in c++. Here i have string or char * type url as below <code> http://www.cplusplus.com/user/ </code>...
[3 replies] Last: // http://ideone.com/4DkTyb #include <iostream> #include <regex> #inc... (by cire)
Subclasses
 
Here is my code #include <iostream> #include <string> #include <vector> using namespace std; //exception for incomplete object struct inc_obj { string str; ...
[1 reply] : Please don't double post :+) It's not cool because we could have mult... (by TheIdeasMan)
Importance of Debug/Log messages
 
I would consider myself a novice programmer who is about to become intermediate one. XD I have been working on my personal project about a few months and I am ...
[2 replies] Last: Hi, I would recommend novice programmers to write A LOT of debug/log... (by TheIdeasMan)
Sorting a "big" file
 
Hi, I have a very big excel sheet (which I will be converting into .txt mode later on by copy-paste :D ) about name of movie, its male lead, its female l...
[16 replies] Last: got it... thanks... :D (by shadder)
classes subclasses
 
Here is a portion of my code. I have a class MyObjects and a subclass Human. Im not sure about the constructor for the subclass class MyObjects { protected: ...
[2 replies] Last: Hi, I reckon you need to think about your design a bit more. Public i... (by TheIdeasMan)
[Warning] multi-character character constant [-Wmultichar]
 
Write your question here. HI.Please helpme with this code. Ineed to create five variables that are a1 a2 a3 a4 a5. I used char double and strin but it doesn't ...
[2 replies] Last: #include <iostream> // #include <conio.h> // no estándar, evitar #in... (by JLBorges)
The keyword 'static'
 
So throughout my learning of C and C++, I've always been discouraged from using static . So recently, I studied the Linux ls command's source code and found t...
[2 replies] Last: OK I think understand now. Thank you!!! (by ForTheReallys)
by JJ2828
do while loop simple question
 
char ans; do { cout<< "Do you want to continue (Y/N)?\n"; cout<< "You must type a 'Y' or an 'N'.\n"; cin >> ans; } while((ans !='Y')...
[1 reply] : Yes, your understanding is correct. The loop will continue if the user... (by LB)
Template default argument syntax
 
Hello. My problem is quite simple and semantic. So I built a simple class template, which has one generic type which by default is double. So I expected to b...
[1 reply] : Well, I managed to fix it with a simple typedef , because unfortunate... (by sasauke)
array rotation
 
#include<iostream> #include<cstdlib> using namespace std; void rotateRight(char a ,int size) { for(int i =size;i<;i++) a =a[i-1]; } void d...
[3 replies] Last: You are probably trying to do find the algorithm yourself for an assig... (by sasauke)
computing the minimum value
 
Hello everyone, I'm just trying to compute the mean, minimum, and maximum values on three different threads. I was just wondering if anyone had any idea why...
[1 reply] : I think it has to do with your min initializing. You should have a se... (by BarelyOtaku)
reading a data file with spaces
 
I need to read a data file with spaces. The data file size in not set so I need to load data in a memory space and then read each string ending with null and c...
[no replies]
Why map container does not work outside main
 
I am trying to use an unordered_map container outside main and it throws an error "This declaration class does not have a storage class or type specifier" If I...
[3 replies] Last: > Does it have something to do with namespace storage constraints? No... (by JLBorges)
problem
 
how to make a function parameter pass through no negative values only
[5 replies] Last: int main() { int a=-5,b=7; if(a < 0 || b < 0) { std::... (by MiiNiPaa)
by bee309
/////
 
////
[3 replies] Last: I tried it Tried what? I made the modifications that I suggested and... (by Danny Toledo)
Shell Program
 
I need help figuring out how to read user input into the exec() function. This is the code I am working with. //*****************************************...
[4 replies] Last: What did you not understand from the link I posted? (by admkrk)
HELP WITH PROGRAM! Beginer in C++
 
The task is to do a program in C++ that you have to put 3 angles for the triangle. If all angles are 60, then printf isosceles. If the three angles add up to ...
[11 replies] Last: @LB ..sorrry i LAST week joined so didnt knew ab categories. so i wil... (by imii)
by JJ2828
Bubblesort Help~~
 
int main() { using namespace std; int a = {9, 99,1,44,6,4}; bubblesort(a, 6 ); for (int i=0; i<6; i++) { ...
[4 replies] Last: Any one can figure up for me what the loops mean?? (by JJ2828)
October 2015 Pages: 1... 222324252627
  Archived months: [sep2015] [nov2015]

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