49,757 Topics

Member Avatar for
Member Avatar for dilip.mathews

Hi All, Can we delete this pointer from a member function. I have written three programs to try this. The first two crashes at run time while the third doesn't. Can somebody explain me this????? 1) This crashes at run time. [CODE]#include <iostream> using namespace std; class Base { public: …

Member Avatar for dilip.mathews
0
187
Member Avatar for Happycow

I'm trying to understand the basics of how Object Oriented Programming works with C++. I'm not really trying to learn the language per-say (although I might be interested in learning it gradually). I brought two books on C++ and read through them once, and while some things seem to be …

Member Avatar for Bench
0
115
Member Avatar for s_nagula

I am a new member to tis group, anyone familiar with round robin algorithm, pls send me some c++ codings on round robin to <<email snipped>>

Member Avatar for Ancient Dragon
-1
131
Member Avatar for MikeTiger

hello friends, could anyone help me by send a link where can i download visual C++ compiler for free on my email <email deleted by wolfpack> I will really appreciate that. Regards,

Member Avatar for steveh
0
101
Member Avatar for SHWOO

I am learning overloaded operators, I successfully overloaded the <<and >> operators as friend functions creating cout << object and cin >> object. For the next problem I am required to overload the istream operator two ways. I must invoke it as somephonenumber.operator<<( cout ); or as somePhoneNumber << cout; …

Member Avatar for SHWOO
0
221
Member Avatar for Gunner54

Ok Im New To C++ But Im Making A Code That Should Hopefuly Make Me Able To Write Into A Program's Memory I Get These Error's [CODE] error C2059: syntax error : '.' error C2447: '{' : missing function header (old-style formal list?) [/CODE] My Code Is [CODE] .void WriteMem(DWORD …

Member Avatar for Dave Sinkula
0
579
Member Avatar for joshilay
Member Avatar for Dave Sinkula
0
578
Member Avatar for MikeTiger

Hi, I need to get data from a C++ application to a spread sheet or notepad file, has anyone any idea how to do this. I have access to programme source code but not sure where to start.

Member Avatar for Ancient Dragon
0
180
Member Avatar for Sashar400

Hi I am new to c++ and I have a simple program that I am trying to understand .Here is the program If anyone can put some comments to what the codes mean I would be grateful.//Explain Please what these lines mean. [code]#include <iostream> using namespace std; int sum(int[],int);// int …

Member Avatar for b2daj
0
143
Member Avatar for Laiq Ahmed

I want to read a Source Code file and separate the lexemes (words) and want to track the line number with the separated words? I just come up with the raw code like that... i) A struct holding a string , int pair; ii) making the link list of above …

Member Avatar for Micko
0
86
Member Avatar for zsix

I am new here and code is what i want to learn. Have been thinking about c and c++ as well as xhtml. Was ill for some time and if i want to go back to work then it needs to be something IT related. I am really happy to …

Member Avatar for ~s.o.s~
0
59
Member Avatar for SmrtAss

[COLOR=#000000]In the program of Figs. 11.3–11.5, Fig. 11.4 [/COLOR][COLOR=#cc0000]contains[/COLOR][COLOR=#000000] the [/COLOR][COLOR=#cc0000]comment[/COLOR][COLOR=#000000] "[/COLOR][COLOR=#000066]overloaded stream insertion operator; [/COLOR][COLOR=#cc0000]cannot[/COLOR][COLOR=#000066] be a member function if we would like to invoke it with [/COLOR][COLOR=#cc0000]cout[/COLOR][COLOR=#000066] << somePhoneNumber[/COLOR][COLOR=#000000];." Actually, the stream insertion operator [/COLOR][COLOR=#cc0000]could[/COLOR][COLOR=#000000] be a [/COLOR][COLOR=#000066]PhoneNumber[/COLOR][COLOR=#000000] [/COLOR][COLOR=#cc0000]class[/COLOR][COLOR=#000000] member function if we were willing to invoke it …

Member Avatar for iamthwee
0
119
Member Avatar for dilip.mathews
Member Avatar for degamer106

On a recent exam I took, the following question was given: int ***p; give the type for the each of the following: a. p b. *p c. **p d. ***p For part a, should I be given any credit for saying an "address of an address of an address?" After …

Member Avatar for ~s.o.s~
0
76
Member Avatar for Eddy Dean

Hello everyone, I downloaded the source of an internet file and need to filter a specific part of it. I know how the [inlinecode]string::size_type position = Line.find("World:</TD><TD>");[/inlinecode] function works, but this only tells me where the data I am looking for is located (the data is after "World:</TD><TD>"). I want …

Member Avatar for Eddy Dean
0
110
Member Avatar for RFBourquin

Need BigTime Help. I am having a great deal of trouble with strings and chars in C++. Judging by the posts at this site, I see I'm not alone. Other programming languages give me no problem -- I can manipulate strings pretty well. Here is my problem. How can output …

Member Avatar for GloriousEremite
0
148
Member Avatar for Treant

Hey everyone Yeah so I have this program that I'm coding and when I compile it crashes (I don't know where the source of the error is). So I've parsed through it many times to no avail. I'm using the Borland C++ compiler and the debugger that comes with it. …

Member Avatar for Salem
0
108
Member Avatar for Miles Archer

I have never compiled before, and I will leave it to you gurus. But I want to drive this (single) program around the block, so any assistance would be appreciated. I have: WindowsXP Pro Borland Compiler 5.5 (free version) MS Visual C++ 2005 Express and the Platform SDK I am …

Member Avatar for Salem
1
340
Member Avatar for Rosicky

Write a password authentication program using a Binary Search Tree for a fast username search. Your program must meet the following requirements: Inputs: Before doing an authentication, read a file named “authen.pwd” that stores pairs of username and password. Wait for a command from a user and respond accordingly. For …

Member Avatar for ~s.o.s~
0
139
Member Avatar for Fred Frazelle

the database module of the Open Source project OpenOffice. We (they) are having difficulties with the code in the Base module which allows updateable queries. See [url]http://www.openoffice.org/issues/show_bug.cgi?id=53377[/url] . i have volunteered to comb the web and place announcements on different sites in order to encourage volunteers to help with the …

0
79
Member Avatar for Daan

Hello :-) I'm trying to pass a filestream to a function: [code]template <class T> void grid<T>::print(std::ofstream file) { for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) file << cell[i][j] << "\t"; file << std::endl; } }[/code] so that I …

Member Avatar for Daan
0
161
Member Avatar for Daan

I'm writing small command line programs that for instance numerically solve systems of differential equations. The programs are so simple, that I think it would be an overkill to use a development environment like MS Visual Studio or Anjunta. I'm progamming on a Linux computer, and I use Gedit to …

Member Avatar for joe_blow
0
82
Member Avatar for MrAdam

Hey everyone. I've been checking out this forum for a while, but this is my first post. I have a question that I hope someone can answer for me. I have been working on learning C++ for about 2 months now and am beginning to grasp the basics more and …

Member Avatar for hollystyles
0
137
Member Avatar for steve_randle

hi.. i would like to compare a user-input string with another string to see if they matched so what should i do? sample code: [CODE] getline(cin,string); if((i==25)&&([I]string comparsion here[/I])) do this; else if((i==25)&&([I]similar string comparison[/I])) do something else; [/CODE] so what should i do? i tried [CODE]const char* str = …

Member Avatar for steve_randle
0
147
Member Avatar for nlsna17

[CODE]# include<iostream.h> void main() const int m=3; const int n=4; const int p=5; int A[m][n]; int B[n][p]; { cout<<"3x4 matrix"; for(m=0; m<3; m++) { for(n=0; n<4; n++) cin>>A[m][n]; cout<<A[m][n]<<"\t"; } cout<<"\n"; cout<<"4x5 matrix"; for(n=0; n<3; n++) { for(p=0; p<5; p++) cin>>B[n][p]; cout<<B[n][p]<<"\t"; } cout<<"\n"; int d, c=0; for(m=0; m<3; m++) …

Member Avatar for dilip.mathews
0
135
Member Avatar for djkross

So I have this sorting program due and I did it all but there's something crazy happening when I run the program. If I enter a value that's greater than 6400 for the size of my array, the program crashes when it tries to sort it out. Also, when i …

Member Avatar for djkross
0
74
Member Avatar for blazinking

hi all, I'm new to site {nice work on the forum ;) } and to c++ in general. I've started a class in the subject not to long ago and have hit a snag on one of the programing projects i was asigned to do ... I just cant figure …

Member Avatar for WolfPack
0
143
Member Avatar for moe1983

[B][U][COLOR=#000000]part iII: project[/COLOR][/U][/B] [B][U][COLOR=#000000]Problem 1[/COLOR][/U][/B] [COLOR=#000000] [/COLOR] [COLOR=#000000]a- Compute the median of a data file. The median is the number that has the same number of data elements greater than the number as there are less than the number. For purposes of this problem, you are to assume that the …

Member Avatar for WolfPack
0
373
Member Avatar for shadevar

Hello, This is my first post here, although I have been browsing these forums for a while now, and I must say this is quite an informative place. I have a small question that I would like to post, more to verify if I am correct or not in how …

Member Avatar for shadevar
0
112
Member Avatar for maharba

I have a question. I'm writing a small program in c++ for my kid to help her with maths and to teach myself how to program. I'm using srand() to get a few random numbers for her to divide with the number she choose. All is fine until I get …

Member Avatar for bkelly
0
104

The End.