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

CMake include_directories() no such file or directory.
 
Hello every one, I have very strange problem with cmake. I have my vulkan sdk like env varibale as Vulkan_SDK which I can find be echo $Vulkan_SDK. FindVulkan f...
[no replies]
Can anyone explain me about std::transform???
 
I wrote this example program: #include<iostream> #include<algorithm> #include<string> using namespace std; int main() { string s1("Hello")...
[1 reply] : //Especially the 3rd parameter,s2.begin() Start by checking referenc... (by Cubbi)
Trouble with functions
 
int Addition(int a, int b); { cout << "Enter your two numbers" << endl; cin >> a; cin >> b; cout << "Calculating. . ." << endl; c = a + b; cou...
[12 replies] Last: You're welcome - glad it's all working now! (by MikeyBoy)
Button that changes the page.
 
Hello cplusplus community. My name is Chris and i have a small problem. I have recently made a GUI program that has x Buttons that write specific things in a .t...
[2 replies] Last: @coder777 Thank you for your response. Belive me i am so dumb that i d... (by n0thing17)
exam question
 
How can I do a the sum of: (-1)^(i+1)*[((x-1)^(i))/i]? I did this : size_t Sn(size_t &, double &); int main() { size_t n; double x; cout<<"n...
[4 replies] Last: You're welcome :) (by MikeyBoy)
C++ SMTP PROBLEM IN KEYMAIL.CO
 
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ...
[6 replies] Last: Yeah, but I want to make it work on exactly this code. (by Pranciskus)
please help for this program
 
Create a menu with the following options: 1. Generate 10 random numbers between 1 and 15 and stored in an array, add only the even positions. Using functi...
[2 replies] Last: Nowhere in your code is there any definition of Math . What is it su... (by MikeyBoy)
Color changing
 
Hey so i know there is the system command line of code to change color: system("Color 1B"); But i want to change the color of only a certain paragraph or lin...
[1 reply] : Check out this code, and modify it for your project. I hope you like i... (by DTM256)
by kin
casting Void* to Object^
 
Hello all, I have a question on native void* to Object^ conversion. basically I have a native c++ dll which will call a function in my CLI with a void* as...
[4 replies] Last: Thanks Helios! somewhat related to the same topic. How do we convert ... (by kin)
help me please
 
include <iostream.h> #include <conio.h> class matrik { private: int vMatrik ; int baris, kolom; char nama; public: matrik(…){ … } ...
[3 replies] Last: Test the initial value of all objects are 0 A= 0 0 0 0 0 0 0 0 0 B=... (by aguprasetya)
by Borneq
How to convert accented characters to ASCII ?
 
How convert Unicode diacritic character to plain? For example ą->a ę->e ó->o in both Linux and Windows systems.
[1 reply] : mrs google works sundays too! ^^ http://stackoverflow.com/questions/1... (by closed account 48bpfSEw)
sqrt function
 
#include <iostream> #include<math.h> using namespace std; int main () { int a, b, c, x; cout <<"put values pliss master"<<endl; cin>>a>>b>>c; x=(-...
[2 replies] Last: Check that you are not trying to find the square root of a negative nu... (by Chervil)
Input check on a while loop?
 
Hello, this is an exercise from the book i am using to learn c++ at the moment and i found this same exercise on an older post here but no one did it like me an...
[2 replies] Last: Thank you very much, so cin.good() was the check i was looking for and... (by andreyun)
Adding Icons/Bitmap images to Button
 
Hello cplusplus community. My name is Chris and i have a small problem. I have recently made a GUI program that has 180 Buttons that write specific things in a...
[1 reply] : It's not so difficult. 1. Add BS_BITMAP to your Button style 2. Add ... (by Thomas1965)
by Alex A
zero-argument constructor does not initialize values to zero
 
Good afternoon guys, I created a zero-argument constructor for structure Section and initialized number to 0 and name to an empty string. I created this so if ...
[6 replies] Last: Looks like there is a mix up with name and number . The number va... (by Peter87)
Is resetting temporary's data really important in Move Semantics?
 
Hello. Consider a class with some built-in values and a pointer. In a move constructor (or a move assignment) I've seen this technique a lot around the web ...
[6 replies] Last: The standard only requires that: a. for any type, a moved-from object... (by JLBorges)
Template class friend definition
 
Hi, I've been working with this grammatical problem, which I guess, for about 5 to 6 hours with the book I have and Google but couldn't get a satisfactory answe...
[2 replies] Last: In the definition, remove the <> : template<typename T> // ostream& ... (by JLBorges)
pjsua2 server side in c++
 
How to implement server side with pjsua2 in c++? I cant find anything about it in its documentation. Is there any reference or tutorial about it? T...
[no replies]
Help me identify the bug
 
Hey guys, I'm creating a BattleShip game and for some reason I'm having trouble with ship placements. Basically, I don't want the ships to overlap one another n...
[8 replies] Last: It doesn't need to be so complicated: #include <iostream> int main(... (by xismn)
Raw pointer is automatically initialized to nullptr?
 
Hello. I'm making a List class template<typename T> struct Node { T val; Node* next; }; template<typename T> class GList { private: Node<T>* il; size_t...
[14 replies] Last: I put the pointer inside an if-statement before couting it. It would... (by cire)
June 2016 Pages: 1... 91011121314
  Archived months: [may2016] [jul2016]

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