Beginners - October 2015 (Page 38)

[Win32 API] X(close) button behavior.
 
In my program I have a menu with an exit button that will pop up a message box that has a YES and NO button controlled with an if statement. Basically a "Are yo...
[2 replies] Last: Ah yes. Forgot about WM_CLOSE. That indeed does the trick for me. Than... (by CGunn86)
Why 97?
 
Why is the output 97 for a, 98 for b and so on? #include <iostream> using namespace std; int main(){ int a = 'a'; int b = 'b'; cout << a << endl <<...
[4 replies] Last: inside double quotes "a" is a string. Inside single quotes 'a' it is a... (by pearlyman)
Programming problem!
 
I am fairly new to C++.Could anyone help me with this problem? int place (int toRow, int toCol, char piece.at()) ; if (!cellEmpty(toRow, toCol)) { cou...
[1 reply] : There is no value in your piece.at(?????????????) initiization and I d... (by pearlyman)
Compiler doesn't know what this class is
 
Hey guys, I get an error saying the class "LocationHandler" is undefined, even when I forward declare it. It is of course located in a separate header file. T...
[4 replies] Last: I don't know but, that's what fixed it. The code is posted above, see ... (by Skwidman157)
shared pointers - undirected graphs..
 
Hi guys.. i am trying to build an undirected graph, at which i want to try to use Smart pointer, as it seems smarter than the "normal pointer". But i am a ...
[12 replies] Last: I can only access first and second, which make me think its a pair It... (by MiiNiPaa)
PointersLab
 
Hi guys I keep getting some errors in this code if you help explain it, I would Greatly be thankful #include <iostream> #include <cstdlib> #include <cm...
[4 replies] Last: Please stop posting so many threads: http://www.cplusplus.com/forum/ge... (by LB)
For Loop Display?
 
Im trying to get two for loops to display thier iterations side by side but I don't get the wanted results. By trying cout << x << "--------" << y << en...
[2 replies] Last: Thanks you so much for you help..You just helped me ALOT. (by CamaroKingSS)
Boost graphs - Cannot use add_edge()
 
So.. I found out that the boost is capable of creating graphs. In my case i have a custom vertex, which i want to use. which i think messes up with the boost s...
[1 reply] : vector<pair<Vertex, Vertex>> edges; vector<pair<int, int>> edges; E... (by MiiNiPaa)
To start doing graphics
 
Hi. I would like to do some graphical programming, but I don't have an idea where to start from. My aim is to write a computer simulation of gravitational forc...
[3 replies] Last: The same guy that made that playlist tutorial for Allegro 5 linked abo... (by TarikNeaj)
is this a safe way of creating binary file from vector?
 
hello everybody i made a little program to create a binary file from elements in a vector. i'd like to know if it's safe to do it the way i did (writing lots of...
[2 replies] Last: you are right, i fixed it a little. the static cast from size_t really... (by Stauricus)
need help adding text output file to program?
 
so after creating this program I was asked to have the answer created in an output file text. im a little lost. #include <iostream> #include <iomanip> #in...
[1 reply] : Please edit your post and make sure your code is [co de]between cod... (by LB)
fload and double
 
Why 5f and 1.5000f are float but 1.2 and 1.23e+2 are double?
[4 replies] Last: Ah, my mistake. (by LB)
by OJ123
need some help
 
this is what i have to put in Garden Snail Create a new C++ Visual Studio Project to read an amount of hours and then compute and print the total distance th...
[no replies]
by smb15
Pointers & Arrays
 
Hi, so I am having some trouble with this program we have to make. This is the description of what we have to do, any help is greatly appreciated. Thank you. ...
[1 reply] : Please do not post more than once: http://www.cplusplus.com/forum/gene... (by LB)
by besurk
Need help using pointers.
 
Could someone help me to determine what I am doing wrong in my program. I am trying to use pointers to count the numbers of words in a given string. #incl...
[4 replies] Last: seems like you don't really understand how while works try this: i... (by chipp)
Help with Greatest Common Divisor
 
I'm supposed make a program that finds the greatest common divisor between two numbers. I've been trying to convert the euclidean algorithm into c++ and place i...
[7 replies] Last: Take input as a string and check for "00" before converting to a numbe... (by LB)
What does this program?
 
Hi! I saw a picture with a program and i am wondering what it does. I tested and it freezes the .exe. Can you tell me why? #include <iostream> using name...
[2 replies] Last: Thanks for you very very fast response! :D (by Thebeatboxer)
Why is it bad to pass all parameters in a struct and just use what I need?
 
I have a project where I have a few static arrays and their sizes. I also have some functions where I need to work with some of those arrays (e.g., add items to...
[4 replies] Last: Thanks again. That was very useful :) (by anarelle)
What's the difference if a struct parameter is indicated with the keyword "struct"?
 
I've seen structs described as parameters in functions like this: struct someStruct { int code; string description; }; void add_cat (struct so...
[3 replies] Last: Thanks a lot to both!! I swear I searched in StackOverflow but didn't ... (by anarelle)
Porting boost lirbaries
 
Hello everyone, i'm trying to port the boost libraries to the AmigaOS 4.1 operating system. I'm using the GCC 4.9.2 compiler. When i try to do sh boots...
[1 reply] : You should ask the boost community: http://www.boost.org/community/gro... (by LB)
October 2015 Pages: 1... 3637383940... 57
  Archived months: [sep2015] [nov2015]

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