General C++ Programming (Page 7)

by smsmsm
pthread write in file
Well I have program which have 5 thread one of them is write I know that all the other thread work...
[no replies]
get Ip address from sockaddr
//Server int sock; pthread_t thread; struct addrinfo hints, *res; int reusead...
[3 replies] Last: Uh, OK. I can't see how anyone can hate stackoverflow, but regardless... (by naraku9333)
by Won
Split string
Hi! I would like to know, how could I split a string in all possible way? For example: 1234567...
[15 replies] Last: Thank you very much MiiNiPaa !! It works perfectly! In some version ... (by Won)
read from client and save to a folder in server
Hi. I have written a server. Now in the process of writing client. Say i send a file to se...
[1 reply] : This question is leaning toward being platform dependent OP. Basically... (by Computergeek01)
Weird Including Issue With Injected DLLs
Right, I don't really know how to phrase this question, as my issue is quite strange. Basically, ...
[3 replies] Last: If you are referring to that part about "what is actually happening" t... (by Computergeek01)
Cant get input to be used in calculation
i am new c++ learner and i am writing this program thats supposed to take input from the use and cal...
[3 replies] Last: Thanks a lot SamuelAdams, now it works, and i have been tearing my hai... (by edmamol)
by asd11
Problems with the compiler I guess...
Hi everyone, I've just done a simple game in C++ (sth similar to impossible rush if you know it) usi...
[5 replies] Last: My last post is the final version! ;-) (by asd11)
move sematics
If we have say a move constructor like this: struct A { int n; A(){ n=0; } A(A&& oth...
[3 replies] Last: Passing by reference is bassing by reference: no copy is made. (by MiiNiPaa)
Printing a table!
Hi guys! Here is the deal: I have some data stored in a float data and each row represents a "math...
[2 replies] Last: see use iomanip header fi... (by sujitnag)
by smsmsm
write in specific line in c++
Hi I have a file with 1000 of '\n' ( I mean it has lots of line) I'm looking for a way to writ in ...
[1 reply] : With the way file systems work, you have to rewrite the whole file. If... (by LB)
by Czar05
Multidimensional Vectors
I was wondering how one would go about initializing a 2D vector. With a regular vector, one woul...
[3 replies] Last: > I keeping getting an error with > vector<vector<int>> v = {{1,2,3},... (by JLBorges)
by cGuru
Sorting A Vector Of Structs By Contained Data
I am sorry if there is similar questions already present on the website, but am currently failing to...
[3 replies] Last: Well, I have posted a link to example. You need a "predicate" example ... (by MiiNiPaa)
Console Interaction
I'm working on C++ on CodeBlocks with consoles of application. I'd like to set the value of a varia...
[10 replies] Last: A very simple way would be to use a temp file to store data they could... (by SamuelAdams)
by ataik
finding differences between two htm files
I have two htm files including the components and 9 parameters of components and there are lots of c...
[1 reply] : A html file is just a text file with a fancy name so that a web browse... (by SamuelAdams)
Strange problem when compiling a program
Hi, every time i try to compile the following code the compiler strangely opens another window with...
[2 replies] Last: i'm using Dev-c++ 5.11 (by mescalito)
Check amount of digits
Whats the faster way (fewest lines of code)to check amount of digits a user enters. for example i...
[3 replies] Last: A number that is larger than 99 does have more than two digits, doesn'... (by keskiverto)
how to resize a vector
void bag::add(BAG_ELEMENT_TYPE newElement) { if (my_size == my_capacity) { my_element.resize...
[1 reply] : my_element.push_back( newElement ); (by ne555)
"... was not declared in this scope"
When I build it, it returns an error in the ".cpp". The error is that neither "titulo" or "nodo->a...
[7 replies] Last: jesus i wasn't even drunk when i typed my reply :/ void before the cla... (by mutexe)
by mqazi
Pointer of type Vector
Is is there any way to create pointer of type vector that stores references to other vectors ? Also ...
[5 replies] Last: MiiNiPaa are you asking about type of values stored in vector ? (by mqazi)
How is '\t\t' a character?
So I accidentally entered '\t\t' hoping to get two tabs (I realize what I did wrong) Instead of gett...
[5 replies] Last: thanks, Computergeek01, that makes a lot of sense. I've just never see... (by sabres12)
Pages: 1... 56789... 19
  Archived months: [may2015]

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