337 Posted Topics
Re: you need some readings on core C++ language book. read the chapter "Operator Overloading" . and tip here , you're constructor for the class going to be look like this. [code] class FractionType { int a , b ; public: // constructor // FractionType a/b where a and b are … | |
hi all, I get a compile time error when I tried to assign A* to A[]. I get the error in DEV C++ , mingw ,error "incompatible type assignment" should I have to use dirty pointers for this ? [code=cplusplus] #include <iostream> class A { public: int a ; int … | |
Re: you can use supergrubdisk if you want the GRUB shell and load the ubunthu kernel and load initrd and boot. have a USB thumb drive ? then use it to boot supergrub-disk , by that you can go to the ubunthu , in there you can replace the bootloader in … | |
Re: [QUOTE]Do you still believe NASA's tall claim that if any asteroid is with collision path with earth , NASA will know it 25 years before the collision actually happens.[/QUOTE] NASA is not the only place that can keep track of the outer space dynamics. and according to the mordern physics … | |
Re: first of all I have a bad feeling about this. because the algorithm that I will suggest will be not complete in the polynomial time. So dataset like this , you need to scan for it. For that you can simply use the regex libraries ( whatever supported in you're … | |
Re: [code] #include <iostream> #include <string> int main() { std::string str( "This is a string\r" ); std::cout << "The length of str is " << str.length() << std::endl; // wait for a keypress getchar(); return 0; } [/code] use this code and you will see the answer is 17, why is … | |
hi all , I'm stucked with this bug or my error. I don't say that I find a bug on the visual studio compiler, what I need is to make this fix and continue my project. please give me a idea how to start after this kind of bug ? … | |
Re: my idea is you should implement the algorithm to check for collision. every time it goes a one step it will check for a collision. The the collied objet have a method to that takes the before collision velocity return the after collision velocities and then you can change the … | |
Re: when comming to the stl::vector , the use the at() method where you need the bound checking. and note that [] operator does not do the bound checking. | |
hi , Are you think US government hiding some technology that got by hacking and reverse engineering ancient technologies ? Like this one , anti gravity device , [url]http://www.youtube.com/watch?v=DVnQXhGBf7k[/url] and hyperdrive technologies for hyperspace travel. As I knew it's theorically possible but there are technological limitations on our current technology … | |
Re: [QUOTE]while ((keystroke=getch())!="=")[/QUOTE] here "=" and '=' are different. You should use the '='. because "=" is a string literal ( there is a string pool concept that string literals are normally put in the const pool). So that is the wrong in that line 121 | |
Re: isn't there any documentation for this configuration file ? Unless we have to reverse engineer that program in source code level ( if you have the source code). The best thing is that email the ex-employee unless you have to fully reverse engineer this. | |
hi , I'm in Asia Pacific zone. Sri lanka. I planed to buy n620c compaq laptop. But the prices are seems to be very high. Their price is near 440 $. Second hand but they promise me to give the brand new battery for the same price. Is that worth … | |
Re: the device drivers on the linux are implemented mostely like a module in the Linux environment. It isn't a componment of the Linux kernel , either it runs on the kernel mode. The GPL is not valid for the modules , it should not be open source. But that doesn't … | |
Re: you have to figure out that nArray is local to the main method. you can't access nArray inside you're bisearch method. So that is the problem. Looks like you new to C++ , I suggest you to read a free book on C++ first at least variable scope chapter. [url]http://en.wikibooks.org/wiki/C%2B%2B_Programming/Scope[/url] … | |
Re: may be this will help you. Copied from my guru , Dave Sinkula , don't forgot to give him some credits not for me . [url]http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046380353&id=1044780608[/url] however this is a duplicated post. | |
Re: when I installed the OS X X86 in my intel computer it works fine with the every hardware that , even some are without the drivers on the windows ( ex - my sound card ) . and do not remember that OS X is also a *nix. and this … | |
Re: [code] double calculateAverage(double Number, double Sum) { return (Number * 1.0) / Sum; } [/code] You have to divide Sum by Number , not the Number by sum. | |
Re: [QUOTE=firstPerson;991078]In my school : Software Engr : 100% deals with software Computer Science : 70% Software, 30% hardware Computer Engr : 50-50% Software to hardware.[/QUOTE] may be more precisely like this, software eng : Java / C++ / AI / mahs/ Database/ Internet technologies like PHP Perl/ business subjects like … | |
hi all, I write this program under the C++ not C. But I heaively used the malloc() and free() functions in my code. In brief what my code does is just allocate memory for NFA transition table. It grows dynamically. When the number of transitions is a %4 then it … | |
Re: If you looking for the info on game programming more precisely you can ask this on game programming. And generally in C , we take generally graphics ( nt game programming) , are you done a computer graphics subject or learned elsewhere ? If not first go and download some … | |
Re: computers are for every human beings buddy. If you are a girl then you are a subclass of human , then you are already welcomed to learn , teach and contribute to the computing technology. My mother is also a electronic engineer so your answer to this question is girls … | |
Re: two , my sweet dynabook lappy and my powerful desktop computer. and I never turn off the computers. I use the laptop computer to read ebooks and study while I can do their particles and exercises using the desktop computer. Desktop computer is powerful enough to run the compilers. and … | |
Re: actually we need Microsoft was a challenge , not as a enemy. Because any open source programmer is reading always go and read the MSDN and using their API's and even their free tools to develop open source solutions for the microsoft windows. Ture there are OSes like ReactOs that … | |
Re: [QUOTE=ithelp;980311]You need to learn postfix notation and use a stack to evaluate an expression , kerninghan and rithie C book has got code for basic calculator.[/QUOTE] as the way you speaks you know nothing about C++ right ? you know C up to now.So that ithelp's C book will do … | |
hi all , One way to gain a good computer knolwedge about the operating systems and how they work is just dig into the hardware. what are the best sites ( please not books ) for hardware diggers and programmers . Now I just installed the DSL linux in my … | |
Re: there are runtime environments like cygwin, which gives you the source code level compability. But you have to compile the entire source code targert as win32 binary. [url]http://www.cygwin.com/[/url] but there are supported under some constraints.You need some little change in you're code base. | |
Re: cool feature. This should be about the gmail web based mail client. What about other mail clients ? Shuch as Outlook and Thunderbird , then they have to implement this feature on their client application side. But this will break the original pop3 specification. | |
Re: your thread subject is "Need help writing an array to a file! " and youre question body is about writing to a array from reading a file. Both things you can done with the STL ifstream and ofstream classes. here are some examples. [url]http://www.cplusplus.com/doc/tutorial/files/[/url] and also like you use the … | |
Re: OpenServer sucks ! nothing more tell about this thing. | |
Re: Oh my my my ! Tribute for a great scientist before he die ! Life is the better thing not dead guys, and what we need is see him alive , no need him to introduce another mambo jumbo tons of math theories. Life is wonderful and live it. | |
Re: XSS type attacks are very hard to defense . Finding an XSS bug is an babish thing. | |
Re: what is the source code complexity of the windows 7 ? what is the branch complexity ? what is the ratio of bugs for a one killo line of code ? | |
This is not the fastest way and not the one that used inside the calculators and even inside the C++ math library. But this is just another way to find logrithm of base 10. | |
Re: idea: you can use the -E option to tell the compiler to just preprocess only. Edit: in vs use the /E to preprocess to the stdout then use the '>' to write it to a file. | |
Re: [QUOTE]if (a[*x]=='<' || a[*x]=='>' ||a[*x]=='!' ||a[*x]=='=')[/QUOTE] In the docs wxString just returns wxChar& and you compare it using the == operator. I'm not in linux now , see the helder or the docs of wxChar and see whether it have a == operator or not, I'm giving you just an … | |
Re: are you looking about the virtual function works ? well , that is called dynamic-polymorphism. Did you oky with OO concepts. I mean not OOP with C++. if oky then read the [url]http://www.codeguru.com/cpp/tic/tic0154.shtml[/url] may be you have to backtrack again before reading chapter 15. | |
Re: delete is a C++ keyword so use a different identifier other than delete. and also use the delete keyword to delete the arrays that you no longer using. ( I mean inside that function ). Otherwise you will get memory leaks. | |
Re: you tell me that you are using many libraries. tell me are they statically linked or not ? In the C++ it's more than main method. There may be static objects on the global scope that are created already. For example STL's input and output objects are some objects that … | |
Re: [CODE] if (x>1) { // will this work for all numbers?? cout << x%10; reverseDigits(x/10); }[/CODE] put the x = 100 and do a dry run. This , then if (x >1 ) did not pass when x=1 , for this you can say, if ( x >0 ) , … | |
Re: nop visual C++ does provide you some #pragma directives. But it not let you to extend this. These are the only pragma that you can use. [url]http://msdn.microsoft.com/en-us/library/d9x1s805%28VS.71%29.aspx[/url] | |
Re: did you send the SIGARBT signal instead of the SIGKILL ? when you send a process SIGARBT it happens. sure you are calling abort() some where. | |
Re: In pain text English , (I'm not native English bt I can clearly explain this on English more than Geek). there a different between these two. ASCII is 7-bits long and ANSI is 8-bits long. Even most experienced C++/C programmers did not know this and they come to argue this … | |
Re: [QUOTE]Especially 2 and 5: I work from home as a programmer so, hence, I rarely leave the apartment. Why would I? I have everything I need here: girlfriend, computers, pets. I do not like bright sun or Summer days-- I like rain, fog, snow... nighttime. I also smoke; it helps … | |
Re: here if you want to make the changes without breaking the code now , make that x y and z mutable. dirty but it will help you not to break the code. | |
Re: [QUOTE=komyg;953567]Well, I think that I won't be writing anything that isn't supported by GCC or GPP, however I will also need to use some drivers to access a fingerprint scanner that is connected via USB. Do you think that the differences between the Kernel present in different distros could cause … | |
I am using the lexer software independently without using the yacc parser. what I want is to use this '>' character how should I tell the lexer to do this ? [code] '\<' { InsertOperator ( ANGLE_OPEN) ; } '\>' { InsertOperator ( ANGLE_CLOSE); } [/code] I have already tried … | |
Re: [QUOTE=Narue;921881]Grats on lasting that long.[/QUOTE] agreed ! unlike my interest on mathematics ! 1st year I did very interesting.( the subjects like cal I cal II diff eq I -II Linear I ). 2nd year boring.... ( looses the interest on it). 3rd year I dorp it and change my … | |
Re: I don't think that this is the cluture here. ppl here don't like you using pirate copies or rapidshare pirate downloads. ppl in the different communities are behave very differently so this is not a good community to share them in public. Go somewhere else if you wanna to find … | |
The backside of the mobil technology , another sad story behind the mobil technology. -service provider is ( I will be banned if I say it). A grade nine student of a popular girls' school in Colombo has committed suicide after reportedly being ashamed in public by a teacher for … |
The End.