General C++ Programming - August 2015 (Page 7)

PROJECT of ROLL in/ ROll out
 
How Can I call back the int main()?? if i choose 0. how it will go back to int main?? pls help #include<iostream> #include<conio.h> #include<fstream> #inc...
[1 reply] : Please, do not double post. It clutters forums and spreads attempts to... (by MiiNiPaa)
by hug
undeclared Identifier
 
I checked spelling, and to no avail, I still can't fix this problem: In my Eq.h file I have: class Eq { public: typedef enum ROLE_TYPE{ NO_ROLE=0,RT_P,RT_D...
[3 replies] Last: FIXED!! I removed "const" from the .h instantiation :) thank you !!! (by hug)
Capitalizing First Letters in String
 
Hello! :) I've recently been tasked with a program with the following details: 3 functions - upperc() ~takes in a lowercase letter and converts it to ...
[4 replies] Last: Oh, I just realized that he wants the first letter of each word capita... (by kevinkjt2000)
by mnm71
send data socket TCP,ERRoR sendig: Bad file descriptor (1,2)
 
I want to create data and then send to server . data(information on each sensor) should create in Network.cpp after new sensor added( each sensor is an new netw...
[21 replies] Last: Thanks for posting that. What errors are you getting now? (by koothkeeper)
by leourb
Variable Templates C++ 14
 
Hi everyone! I am trying to get started with templates and variable templates but, when I am just trying to copy what Stroustrup says in its book, Xcode return...
[2 replies] Last: Thanks for help Cubbi! (by leourb)
Read text from file
 
Hi! I am learning codeblocks for a while but I'm still a beginner and I have a problem to a code I'm trying to make. I know that you have to use cin.get() to re...
[1 reply] : http://www.cplusplus.com/reference/istream/istream/getline/?kw=istream... (by Yanson)
Trouble with initializing static variable generically
 
Hi, For various reasons, I have a system for initializing a certain type of static variable in a generic way. This probably looks a bit strange taken out of co...
[5 replies] Last: oh, and if 14.5.6.1[temp.over.link]/6 applies to member functions of c... (by Cubbi)
by sariki
Recursive Algorithm using characters
 
Hello, I just have a question about Recursive algorithms using characters. So If i was to use something like a $ or @ and I wanted to have this output a ce...
[4 replies] Last: Well I got it working I appreciate you explaining it I guess I just di... (by sariki)
Assigning member values in destructors
 
Hey, I just stumbled over a piece of foreign code where they implemented an own ref counting system and had like this code in their destructor: ~RefCount(...
[5 replies] Last: If it sets. If it does, then it hase own methods to catch invalidpoi... (by MiiNiPaa)
int vs. typecast
 
Code/IDE output below. The tutorial was extolling the virtues of using static_cast over integer assignment in converting integer to ASCII. I have both methods l...
[4 replies] Last: Textbook examples: const_cast : implementing non-const accessor in te... (by MiiNiPaa)
by mSkull
Subscript operator issues
 
Hi, I've made a class that inherits std::vector, to make it more like C#'s List. But the subscript operator is given me trouble, that I can't figure out. Espe...
[4 replies] Last: Thank you, that got it working (by mSkull)
SFML Help
 
I'm new to this website, so I'm not entirely sure if this is the right place to post this topic. I would really really like to SFML based game. Taking inspir...
[4 replies] Last: Okay, Thank you, I will try that :) (by Boyancyoperated)
taking input from function argument and then console input
 
I observed an issue while setting a value into a char* through first as function argument and then from console input, the program compiles but don't run (Proce...
[3 replies] Last: If you place s1.setData("India") before getData, x will point to strin... (by MiiNiPaa)
wxWidgets: wxListCtrl column width
 
I'm learning the wxWidgets GUI library, and I'm having trouble getting the wxListCtrl column width adjusted correctly. -1 is automatically sized, and accordi...
[3 replies] Last: You can do that after each request / for each column. The reason why i... (by coder777)
Priority queue
 
I was working through Dijkstra's Shortest Path algorithm in which priority queue is used. In that a comparison Function object is used. I want to know if the or...
[2 replies] Last: Looks fine. Consider: template < bool MAXHEAP = false > struct edg... (by JLBorges)
by Dhust
Help me develop SysLibrary
 
Hello. I'm starting a small project for learning emulator programming and trying to dive deep in C++11/14. I'm doing this project in Arch Linux without any ID...
[no replies]
Can't find guide for OpenAL
 
Hello, Can anyone offer guidance on learning OpenAl? I've spent all day searching, and there really aren't any comprehensive tutorials or guides. Even here o...
[1 reply] : Hi there, As far as I know, OpenAL is obsolete. The last stable versi... (by xismn)
keep newer copy MingGW
 
I need to know how to redirect my IDE (eclipse) to use a much more current version of MinGW. I also have evidence I believe makes the case for a problem with th...
[10 replies] Last: It does: I thought the "crazy" compiler was causing serious pc rot wit... (by technologist)
FMOD in Code::Blocks
 
hey i'm using Code::Blocks and i download FMOD library so i can play music and sound in my program. i tried to install it in Code::Blocks but it wont work. iv...
[no replies]
by AldenB
How do I increment my Year type
 
I need to increment year in my add_day() function. Is there any way to do that without making a function specifically for that purpose? The function is locate...
[10 replies] Last: I see what you mean! I thought you meant write y++ into the add_day(),... (by AldenB)
August 2015 Pages: 1... 56789... 17
  Archived months: [jul2015] [sep2015]

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