General C++ Programming - July 2013 (Page 10)

by jfrahm
program output that doesn't wait for replies but still captures them
 
I am trying to write a program that can communicate over a very latent internet connection involving a cellular modem. I have some software packages that handle...
[5 replies] Last: Brilliant. I'll start there. Thanks! (by jfrahm)
by vRltwE
Trouble debuging
 
Please watch http://www.youtube.com/watch?feature...&v=Mj43Q_zbe6Y. What may cause the segmentation fault just after the mouse enters the window? What's the ...
[no replies]
Problem with loops and void
 
Greetings, this is an assignment which the purpose is too calculate an angle value in form of trigonometric functions. These are the codes that I've wrote so fa...
[2 replies] Last: Thank you! :D (by shrayder)
The use of Iterators instead of Indexing
 
I was reading the Wikipedia article on Iterators and found this: An iterator may allow the container object to be modified without invalidating the iter...
[6 replies] Last: IMO the main strength of iterators is it brings you closer to containe... (by kevinc)
by tee360
Classes, dynamic arrays, constructors, and overloading
 
Okay here is what I'm tasked with: Imagining vectors were not defined in C++ ... Define a class called VectorDouble that is like a class for a vector wit...
[16 replies] Last: Yea, never tested that function. That's fixed, however in my most rece... (by closed account N36fSL3A)
general
 
what does this mean ? int (*cmp)(const char *, const char *));
[3 replies] Last: and it is definition.. you have assign cmp before you make call using ... (by kulkarnisr)
by ajh32
Socket help required
 
I'm just trying to write a simple check that we are able to connext to a remote host via an internal proxy server, then send a simple HEAD command and receive t...
[3 replies] Last: Apologies, I missed that. I'm unsure about this too. May be a bit abo... (by MrHutch)
Operator Overloading Using a Friend Function
 
What is the role of friend function in this program? Is it even executed here? Thanks, pintu #include <iostream> using namespace std; class loc { int...
[2 replies] Last: the friend declaration in the class allows the function loc operator+(... (by Christian99)
output unusal format for text file
 
Hello everyone, Bit of a problem, I'm trying to output the data from my code into a particular format to a text file. The format is y0 y1 y2 y...
[1 reply] : You could use the ofstream header. when you create the ofstream objec... (by Christian99)
by A S
Debugging problem
 
Hello my friends , my problem isn't in the code syntax because it is comepletely fixed , but this time it is with the debugging , when i run out the progra...
[2 replies] Last: Status 0xc000013a is STATUS_NO_MEDIA_IN_DEVICE. Make sure that your d... (by JLBorges)
very noob question - sorry
 
Hi , if i define num variable as global like below , each array element's value is '0' .However , if I define it locally (in the pr_row function),each elem...
[5 replies] Last: and also some people might say that global variables aren't good styl... (by MikeyBoy)
by nkhau
Can someone guide me how to correct this program.
 
1. Airline Reservation System Green Dot airline has just purchased a computer for its new automated reservation system. You have been asked to program the new...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/1/ You're posting way too muc... (by MrHutch)
Parallel computing tech
 
Hi, I recently followed some online documents about parallel computing in C++. However, it seems confusing considering several available technics. As I know,...
[no replies]
strstream is it safe for using
 
Good morning all, Is it safe to use use strstream. I just googled it, and most of them are saying to use stringstream. But unfortunately my environment is not ...
[5 replies] Last: Thank you all :-) (by kulkarnisr)
std::unordered_set::find
 
Hi, I have a question about searching in a std::unordered_set: I'm storing custom classes in my set, the classes have a data member (std::string in my case)....
[no replies]
by Daleth
Extending a STL algorithm
 
This is more of a critique request. I wrote a version of find_all() which searches through containers for matches and returns another container that holds it...
[5 replies] Last: I would declare the algorithm the following way template < typename I... (by vlad from moscow)
Convert pointer object to plain object in c++
 
Hi, I have pointer object and i have to assign to another variable ( new object ). But if i change any value in new object should not reflect in old object. I...
[5 replies] Last: You will have to show your entire implementation of the class. Yes, ... (by abhishekm71)
by frnick
C++ help
 
Hi . I need help. It's a simple plane seat booking system. Let's say this are the available seats : 1 A B C D 2 A B C D 3 A B C D And the user entered r...
[4 replies] Last: Oo. I'm stucked here goes my program so far : int main() { const in... (by frnick)
Read string in file and add count
 
Hi i'm looking for a program to read a file to look for strings and add a count. kill.log in the same folder as program player1 was killed by player2 ...
[7 replies] Last: my string::find returns 0 or 1. No, it does not. Please reference ... (by cire)
by warice
Array
 
Hi I would like to ask if anyone knows how to solve the problem. How do I get a certain row like row 3 column 4 value from the .txt file to minus away anothe...
[no replies]
July 2013 Pages: 1... 89101112... 34
  Archived months: [jun2013] [aug2013]

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