General C++ Programming (Page 9)

by Vabi
not able to understand code
here is the code I am unable to understand, const int size=2; int main() { item *p=new item ; item...
[2 replies] Last: item* p points to the first element of the new array created on the ... (by gedamial)
call _invalid_parameter_noinfo
Is there some way to prevent std::vector generating the subject calls? Crawling around in the hea...
[1 reply] : Turns out that setting #define _SECURE_SCL 0 #define _HAS_ITERATOR_D... (by BrowserUk)
Changing loops to call generic functions
I am working with this code: #include <string> #include <iostream> #include <sstream> #incl...
[7 replies] Last: The command line arguments in argv are null-terminated multibyte s... (by JLBorges)
Access a private data member within output opearator
I am working with this implementation file: #include "section.h" #include <list> #include <iomanip...
[13 replies] Last: cire gave you the answer here: (by cire)
by PacR
Access address of class objects inside std::List.
#include <iostream> #include <list> using namespace std; list<void*> playerlist; class pl...
[3 replies] Last: Thank you AbstractionAnon. (by PacR)
Funky tic-tac-toe
So, i have this game of tic tac toe: #include <stdio.h> #include <stdlib.h> #define flag 10 ...
[1 reply] : PLEASE USE CODE TAGS (the <> formatting button) when posting code. It... (by chicofeo)
Assignament operator for a queue not working properly
I've been playing around with dynamic allocation and queue recently. Keep in mind that I am fairly n...
[2 replies] Last: well, I seem to have fixed my problem. (by redempvfx)
Why is my boolean function not working
Hi, Been stuck on this program for a long while now and can't get the boolean function to work, i...
[3 replies] Last: With or conditions, there is short circuiting: as soon as one of the c... (by TheIdeasMan)
by Gyiove
loop variable inside the loop question
Hello everyone, for(int i = 0) { for( int j = 0 ) { } } int i, j; for(i = 0) { ...
[3 replies] Last: Basic types can be allocated on the stack in zero time, so these two s... (by helios)
Boolean function not working
Hi, Anyone could spare the time to look at my program and see why the boolean goes straight to bo...
[2 replies] Last: Thanks been stuck on it for ages (by gibbsy619)
Dental Records
Hi guys! I have this project at school that I need to make a program which is "Dental Records" I don...
[2 replies] Last: Develop your programming skills first, your teacher should give you so... (by gibbsy619)
Showing the buttons pressed in a GUI Application
Hello there, i have a program with 5 buttons: Abyssal Scepter -> Writes something into ChampionName-...
[1 reply] : You have to catch the WM_XXXX Messages: (by Necip)
Study guide
To mods: I am posting a friend's code online so that we can all study the material together on one w...
[18 replies] Last: Even if they weren't aware of better alternatives, it's still an obvio... (by helios)
by homing
struct definition / declaration - style question
hey guys, I'm just curious how you guys would define & declare a struct which is only used by one c...
[8 replies] Last: If the structure is a necessary part of the interface to the class, th... (by MikeyBoy)
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 V...
[no replies]
Can anyone explain me about std::transform???
I wrote this example program: #include<iostream> #include<algorithm> #include<string> u...
[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;...
[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 p...
[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...
[4 replies] Last: You're welcome :) (by MikeyBoy)
by prako2
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ...
[6 replies] Last: Yeah, but I want to make it work on exactly this code. (by prako2)
Pages: 1... 7891011... 29
  Archived months: [apr2016]

Cannot post in this page. To post a new message, go to the first page.