Beginners - January 2010 (Page 10)

How to - network programming with C++?
 
I'm a java developer. Recently, at university, I have been assigned a task about network programming with C++. The specification is about create a distributed ...
[3 replies] Last: I've never programmed with c++ for networks, but I think java is very ... (by brokenbot)
Using a pointer to point to an object
 
Hello everyone, this is my first post, and I would like to know how I can use a pointer to point to an object itself so that I can call a function from the obje...
[6 replies] Last: Ah, lol, that's alright, I almost certainly would have done the same t... (by serviteur sociale)
Converting two bytes into a short *solved*
 
As you may be aware of, shorts are stored in two bytes, integers 4 and so on.. I have been spending a couple of hours (5-7) so far trying to come up with a f...
[2 replies] Last: I see. =D This is awesome, thankyou! (by Krisando)
Inheritance
 
I've at this for awhile.I'm down to one error and i can't figure it out.the error is at line 73 and its states error C2084:function 'void Exttime::timeZone(void...
[1 reply] : Read the error. You already defined that function on line 36. There's ... (by tummychow)
by omk
Understanding performance cost of code.
 
Hi, Ive come to the point in coding that I feel like I should learn abit more about performance cost of code. Ive tried to search on the web but havent reall...
[7 replies] Last: The compiler might inline if you ask politely. (that is, it may ignore... (by tummychow)
New to C++. I need a compiler.
 
I am 13 and really interested in computer programming. (Windows only) I am going to try learning the basics/intermediate level of C++. Can anyone recommend a F...
[2 replies] Last: http://www.cplusplus.com/forum/articles/7263/ (by Bazzy)
How to free multidimensional arrays
 
Hi there, I have created a 3D array A representing 100 4x3 matrices of doubles: ui xdim = 100; ui ydim = 4; ui zdim = 3; double ***A = (d...
[3 replies] Last: All right! Duoas, what you suggested is correct; it works fine. The... (by Terrylee)
STL set/map find/find_if
 
Hi! I am using STL data structures in my project. The main point is that I desire to get a sorted data structure where I can find an object. Consider some...
[4 replies] Last: No matter what you do, lookup based on any criterion other than the so... (by jsmith)
return 2 values
 
Is there a more efficient way to return two values from a function? If two values must be returned. I add the two values then return it. int mustReturnTw...
[15 replies] Last: Heh, well then, here's a n-ary solution using an improper list of std... (by Duthomhas)
by eruina
static struct tm in a class
 
Hi all, I would like to use the tm struct as a static variable. The date to store would not be the current system time but one manually entered during ru...
[3 replies] Last: tm is not a pointer. It is a struct. Try Indice::dateTime.tm_year .... (by PanGalactic)
real C++ code call from Fortran
 
Dear forum members I want to call C++ code from fortran , there is a lot of information about how to do it using c or c++ with extern C if there any w...
[3 replies] Last: lmao this is a fortran question not c++ SMH (by brokenbot)
IF statement inside while loop not working
 
Hello I am writing a program that allows the user to input multiple sets of numbers and it shows the count, total, and average of the numbers then displays them...
[2 replies] Last: I think you have break a little before it's needed... so it breaks out... (by brokenbot)
Question on Friend Classes
 
Hi, Is there a way to create friendship between specific objects rather than between classes? Take a look at this simple, short example of class friendship...
[4 replies] Last: That kind of thing can't be determined at compile time. You'd have to... (by Disch)
getline(); not working
 
http://pastebin.com/m4f94e320 On line 38 and 88 my getline() command is not working or being ignored for some reason. I had to put in cin.get(); above them t...
[4 replies] Last: Just to sum up: >> _ takes in the next data (char, string or numeri... (by van)
binary search
 
please do the necessary corrections in the program below as when i put a different no than in the array the program hangs program: #include<iostream.h> #incl...
[8 replies] Last: Bubble Sort? Binary Search? (by blackcoder41)
Using the delete operator
 
My main function asks the user to enter a number then it calls this function using that number. int fact(const int x) { double * table = new double ; ...
[3 replies] Last: Thank you for your help. (by Allen E)
get start up path
 
is there a way to get the directory in which the executable started? i found Application.StartupPath but don't know how to use it... should i include sthg? ...
[5 replies] Last: I'm not asking you. ;-) I'm asking rompecabezas . He could be aski... (by Duthomhas)
by sebas
pointer to pointer
 
Hi, i've posted a message before but i didn't manage to allocate and free a pointer to pointer variable (matrix). I want to use it as Matrix to manage better....
[3 replies] Last: I managed to solve my problem finally. Thanks for these tutorials guys... (by sebas)
by Atraii
Making A List
 
So as the story goes, I was picked for an entry in a school group to do an assignment on C++. I had 20 days to learn as much as I could and complete the assignm...
[3 replies] Last: Thank you for the quick reply and I'm sorry for the long delay in resp... (by Atraii)
Pointer confusion. Please explain :)
 
Today I've learned some concepts about Pointer in C++ and I have a confusion in this code snippet and its result. Source Code: // Pointer array #include...
[2 replies] Last: cout thinks that pointers to char are null-terminated C strings so... (by Bazzy)
January 2010 Pages: 1... 89101112... 24
  Archived months: [dec2009] [feb2010]

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