General C++ Programming - March 2014 (Page 22)

by HAAS87
Condition Variable problem with multiple threads
 
I am trying to use Boost Conditional variable in my application to synchronize two different threads as following: The main thread, will create a TCP server ...
[no replies]
pack in Intel format
 
hey guys, i'm pretty new in programming with C ++ and my task is to implement an algorithm that packs in Intel format signals from an input vector.do you have a...
[no replies]
Recursive or not?
 
I was trying the Pascal's Triangle using Recursion and it runs perfectly fine but then I realised that I have also used Loops in my Recursive program, so I woul...
[3 replies] Last: Oops sorry, i m accessing this site using my cellphone so i guess i sc... (by Manav Mnv)
hey guys.. click this
 
please help me.. idont know to write a function.. give me some idea? #include <iostream> #include <cstdlib> using namespace std; int main() {...
[1 reply] : http://www.cplusplus.com/doc/tutorial/functions/ (by MiiNiPaa)
vector and initializer_list reference
 
there is a problem with the vector and initializer_list docs regarding size_type. in gcc at least (maybe it's in the standard?), size_type is currently defined ...
[1 reply] : What are you getting at with this? Are you indicating some deficiency... (by cire)
by Ikarus
ifstream input to different file types
 
Hello, so firstly let me present my objective. I want to create a function with a return type. However, I want to use it to read from a file (ifstream) and p...
[4 replies] Last: Oh. I don't really know how I overlooked that haha. Thanks cire, tha... (by Ikarus)
How often do you make syntax errors?
 
Sorry there is no polling option, so you can just type your number without comment (but it won't be anonymous). 1. Never (I'm just gifted this way) 2. Nev...
[10 replies] Last: 4-5 if it is a simple concept. 6-7 for new concepts that I'm testing o... (by JasperBraun)
by soori
diff bw initializing static int and static const int
 
class Stat { private: int s; static int num=2; //why is this a error static const int cnum=3;//while this is perfectly fine public: ...
[1 reply] : Because in case of in-class initialization of mutable variable, there ... (by MiiNiPaa)
Writing a Function Template With Template Template Arguments?
 
I have a function: template<class Iterator, class T> void a(Iterator, Iterator, const T&); and I want to be able to simplify calls to 'a' with calls li...
[7 replies] Last: Cubbi, I must admit I think I had a typo when I tested Your method. Th... (by xuinkrbin)
by xorkon
"Flappy Bird"-like game
 
Hey, I'm new to this forum and Im not sure if this is the right place to ask. I'm programming a game in C++ that's supposed to be something like the smartphone...
[10 replies] Last: Do you have a Github repository? Maybe I can donate some code here and... (by closed account N36fSL3A)
by MAAASD
A segmentation Fault Problem
 
Hello guys,hope you're all fine. I'm trying to make a list of elements, each element is a list. i.e. list of lists i use a member function called Next to point ...
[no replies]
Help understanding a program - NOT ASKING ANYONE TO DO IT
 
Hi Everyone, I've recently been assigned a program due this coming week on hash tables. However, the teacher is out of the office until then and despite me ...
[1 reply] : It looks like you need to store Symbol objects in your hash table us... (by MiiNiPaa)
Resizable Array Class (Not Vector)?
 
I am looking to create an object which, generally speaking, behaves like ' std::array ' in the sense the internal array has a generally fixed length but which c...
[9 replies] Last: And it is more likely that stack frame, where stack allocated array is... (by MiiNiPaa)
Null pointer
 
struct mystruct{ int n; }; class mscope{ public: std::vector<mystruct> mv; bool find_struct(int n, mystruct *pm){ ...
[2 replies] Last: The problem is that you are passing the pointer into your function by ... (by MikeyBoy)
by Lzh
大家好.我看英语很吃力
 
怎么办? I'm a Chinese, hard to read English. So I want to make a foregin friend to connect with each other. To improve my English . My qq is 1450...
[no replies]
help me with health
 
how i can make if healt 0 game end??? #include <Windows.h> #include <iostream> #include <BluetoothAPIs.h> #include <ws2bth.h> bool Move(int xa...
[1 reply] : Duplicate of http://www.cplusplus.com/forum/general/125786/ Please do... (by MikeyBoy)
Debug assertion failed
 
Why do i keep getting that error? Every time I run my program, it runs for a while and then it just crash and display the message Debug assertion failed. Any id...
[5 replies] Last: Thanks guys! I remove the -1 because as said the value of i becomes ne... (by dunkindonald)
by kuhai
Ordered Pair to Matrix Problem
 
Good day! So I have this code that creates matrices when ordered pairs are entered. #include<iostream> #include<conio.h> #include<iomanip> using namespac...
[no replies]
How to read integer values from csv file
 
Hello, I read one csv file in which it contains different types of data like string, integer etc.I want to fetch only integer data from that file and store in ...
[1 reply] : That input file seems is nearly impossible to read without some heuris... (by kbw)
March 2014 Pages: 1... 2021222324... 36
  Archived months: [feb2014] [apr2014]

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