General C++ Programming (Page 32)

Help with C++/SFML
 
I am currently working on adding collision between a Sprite controlled by the player, and the walls ...
[1 reply] : One technique is to check if the sprites of the various entities inter... (by Aceix)
by Micard
Linked Lists: deleting an element
 
Hey, could you please correct this code for me? I tried like tens of different ways to re-write it a...
[6 replies] Last: doug4 , yep. Got it rolling. Thank you! ats15 , thanks to you too!... (by Micard)
Mode Function
 
Hey guys, I'm having a bit of a problem with figuring out how to properly write up a process to calc...
[2 replies] Last: Unfortunately, I have yet to learn how to use the std::map in my class... (by ivertony)
by yj1214
Does g++ support strongly typed enums?
 
I'm using g++ with -std=c++11 flag. For some reason, I get an error whenever I use enum class. ...
[3 replies] Last: Strongly typed enums should be supported unless your version of g++ is... (by Peter87)
by AG123
Using bubble sort to sort a vector
 
I am trying to use bubble sort to sort a vector of permutations. I was wondering if someone could he...
[1 reply] : Btw, I know you didint do that function, you just copy pasted it - htt... (by TarikNeaj)
by poteto
What is "void (*)()", and what is good or bad about it?
 
I just found this out from randomly porting some C code to C++, it seems to be some kind of polymorp...
[11 replies] Last: ++ for <functional> and std::function. Pointer-to-member syntax doesn'... (by S G H)
C++ Template object composition - How to initialize correctly? (1,2)
 
Hi guys! This is my first time here, and i really need help! I'm posting this because i'm having...
[35 replies] Last: It would be great!!! However i mark this as solved, maybe we can talk ... (by EleKtroFR)
by bw119
Constructors question
 
So i have this code double data; cout << "Input data" << endl; cin >> data; Area(data); Area i...
[4 replies] Last: Thank you MiiNiPaa, that explains a lot. I changed my code according t... (by bw119)
by abc456
How to fix pointer to incomplete class type is not allowed error?
 
I'm getting a lot of this error in the following code node *ptr = new node; ptr->value = x; no...
[2 replies] Last: thanks! (by abc456)
readBytes function
 
I cant understand why this wont work. I'm thinking it cant find the file"text.txt". I keep getting t...
[1 reply] : First of all, your program has "test.txt" not "text.txt" In case that... (by tipaye)
semaphore between 2 cores
 
Hi guys, I got two different cores (different processors) which both access a certain global vari...
[9 replies] Last: Note that we discuss here 2 cores, not 2 processes on the same core. ... (by MiiNiPaa)
C++ IDE with a compiler and C++14 support?
 
I'm using Code::Blocks, but there doesn't seem to be any C++14 support in it - only up to C++11. So...
[7 replies] Last: There's no compiler flag in there that you can enable to allow C++14 ... (by MiiNiPaa)
strcpy program not working
 
#include<stdio.h> #include<string.h> char xstrcpy(char *,char *); int main () { char source ="...
[2 replies] Last: Bloody hell of course! Thanks mate (by NavpreetSingh)
What is application domain?
 
Hi, im reading B. Stroustrup's "Programming principles and practice using C++" and im trying to do a...
[4 replies] Last: Thank you very much for your help man, really appreciate it :) (by etrusks)
Code for finding prime numbers ( need help , code not working )
 
Hi all , im new to programming , i have attempted a code to find the number of prime numbers uptil a...
[7 replies] Last: Well, I allready did it once so I'll just share #include <iostream>... (by Gamer2015)
Cleaning up this code... options to make it more streamlined
 
I just finished up my forth project in my C++ class which focused on reading files, writing to them ...
[1 reply] : I'll just give some advice about main function() and return to other l... (by MiiNiPaa)
Seg fault on overloaded << operator
 
I'm getting a segmentation fault on overloaded '<<' operator, however, if I run my program with a co...
[8 replies] Last: (I dynamically allocated it, it should be good to go now). I still... (by Disch)
Need help with code
 
Hello, I would be really happy if someone could help me. I have code which finds words who has seco...
[4 replies] Last: Don't do repeat topics! http://www.cplusplus.com/forum/general/160312/ (by jasonwynn10)
Code which join words
 
Hi, I need to write code which input txt file join three words then makes an extra space and again ...
[3 replies] Last: Don't do repeat topics!!! http://www.cplusplus.com/forum/general/1602... (by jasonwynn10)
Guessing Game
 
Somehow I still haven't been able to get this code to do what I want it to do. Seems like I cant get...
[6 replies] Last: yea dude, what you can do is click the edit icon on the bottom corner ... (by jasonwynn10)
Pages: 1... 3031323334... 53
  Archived months: [feb2015]

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