Beginners - December 2015 (Page 34)

what does (int*)p->m exactly means?
 
Hi, I was having an exercise to fully parenthesize some expressions struct X { int m; }; int main() { int* x ; int a = 2, i = 7; X d{ 4 }; X *p = &d; /...
[2 replies] Last: Thank you very much man, much appreciated :) (by etrusks)
program output file
 
I have done a program for my beginner C++ class. When I rebuild the solution, I don't get any errors, and when I start without debugging, the program runs perfe...
[14 replies] Last: Have you studied functions yet? This "program" is screaming for their ... (by jlb)
by brad97
Program Closes After Input
 
I am new to C++ and I am trying to create a program that is like a math game suitable for children with a menu and functions for the four main mathematical func...
[8 replies] Last: Thank you so much! (by brad97)
Binary search tree
 
This Code Show Me the garbage value when I call the display function..Whts the prblm?? #include<iostream> using namespace std; class Node{ ...
[2 replies] Last: your problem is in insertnode function: you may replace it with this a... (by mohammedawni)
by haz94
SFML C++
 
Hey, I need some guidance please with solving a problem I'm trying to tackle. I'm not sure of the best way to draw a stl::vector of objects in a grid. I'...
[3 replies] Last: Yes exactly that! Goodluck :) (by TarikNeaj)
the difference between post-increment vs pre-increment
 
Hell all , Can anybody explain this in details, please if you can draw a memory model of how c++ compiler does the increment , and why a is 6 and b is still 5...
[1 reply] : Presumably you meant: int a = 5; int b = a ++; I don't kno... (by cire)
by thor36
Can't find file or directory, even though it is present
 
Greetings all, I have a problem trying to run a program that I have found on Github, whole project is here: https://github.com/guillaumeportails/OSMGL Error h...
[no replies]
I cannot use iterator.
 
My code is finding symmetric difference between two sets. I got many errors but two major errors were about using iterator and not using return type. However, m...
[8 replies] Last: #include <iostream> #include <set> #include <iterator> using namesp... (by leeli0830)
I can't calculate the final result
 
These are my errors https://41.media.tumblr.com/ee8447679e09e3f13cd22b590a158195/tumblr_nyv9maI5P41qdp21xo1_1280.png I guess there's something wrong with ...
[3 replies] Last: I suggest you start simplifying your functions, right now they are doi... (by jlb)
ErrorC2665 overloads could convert
 
Cant find out whats wrong with this function. void load(vector<Konto>&konton) { ifstream fin("Bank.txt"); int kontonummer; string innehavare;...
[1 reply] : This solved it! konton.push_back(Konto(kontonummer, innehavare, sald... (by patriic48)
C++ question
 
I'm reading SFML's audio module and saw this sentence By using our asset manager, we can be sure that our resource will not be accidentally deleted or move...
[4 replies] Last: i see thanks, asnwered all my needs thank you @codekiddy (by xenoviaquarta)
What is the next step after learning C++?
 
I am just a starter and I don't want to go University but I want to do software engineering. So what are the other basic steps after learning C++ to be a good p...
[2 replies] Last: Many great universities publish their graduation requirements online. ... (by dhayden)
help involving loops and strings!
 
my program should input a string from the user and output it in the shape of the diamond if the user enters the word hello, the diamond would print h, then the...
[1 reply] : I skim your code but I think you can just reverse the loop at line 37 ... (by rmxhaha)
by Roody
vector biginner
 
hi , i have this code about finding the max number in a vector , the output always 0 , i don't know why .. #include<iostream> #include<conio.h> #inc...
[4 replies] Last: #include<iostream> // #include<conio.h> // *** non-standard; avoid #i... (by JLBorges)
resource manager
 
Im writing musicplayer app using QT for ui and SFML for audios I decided to write resource manager for song files. How can i tell if my resource manager for s...
[1 reply] : class ResourceManager { public: ResourceManager(); static voi... (by xenoviaquarta)
Read from file: Change int to char
 
Hi. I am writing a code and I need to make the 0's of the code into just spaces, but when I try to do that, 32 comes up instead of a space(the ASCII value of sp...
[6 replies] Last: PS Ignoring the spurious ; after the board input parameter (syntax err... (by andywestken)
C++ terminology and plain English instructions phrasing
 
Good evening! I'm a beginner programmer and am finishing up my first semester of C++. Currently I'm looking a final exam review sheet my professor gave us an...
[2 replies] Last: Ah I see, I'll look over it again and think about that, thanks! (by BaloneyOs)
What to master to build a text based RPG?
 
Hey guys. So first I need to declare that the sole purpose for which I'm learning C++ is to build an RPG game (and maybe because I want my resumè to say 'guy k...
[1 reply] : In this tutorial (chapter 12) they develop a text-based RPG game: http... (by Thomas1965)
Add/Sub/Multiply/Division of characters, integers etc.
 
Hi I want to know what happens if you declare a and b as an integer, but you assign a character value to it. For example A is declared as an integer, but you as...
[1 reply] : http://en.cppreference.com/w/cpp/language/ascii Have a look at this... (by TheIdeasMan)
by ric717
pass sorting
 
I need my program to look like this. I kinda started right but I'm stuck. I'm not sure what to do next. please help Thanks in advance Data items in...
[1 reply] : Hi, With braces and indenting - you need to fix these up. It's good ... (by TheIdeasMan)
December 2015 Pages: 1... 3233343536... 43
  Archived months: [nov2015] [jan2016]

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