337 Posted Topics

Member Avatar for Zay

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 …

Member Avatar for NicAx64
0
173
Member Avatar for NicAx64

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 …

Member Avatar for NicAx64
0
151
Member Avatar for thebluestar

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 …

Member Avatar for NicAx64
0
114
Member Avatar for ithelp

[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 …

Member Avatar for vegaseat
0
137
Member Avatar for stari07

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 …

Member Avatar for NicAx64
-1
308
Member Avatar for red999

[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 …

Member Avatar for Ancient Dragon
0
145
Member Avatar for NicAx64

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 ? …

Member Avatar for NicAx64
0
185
Member Avatar for spiriad

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 …

Member Avatar for spiriad
0
116
Member Avatar for zephy2

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.

Member Avatar for twomers
0
485
Member Avatar for NicAx64

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 …

Member Avatar for MosaicFuneral
-3
386
Member Avatar for scott6480

[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

Member Avatar for kvprajapati
0
573
Member Avatar for dondulla

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.

Member Avatar for NicAx64
0
117
Member Avatar for NicAx64

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 …

Member Avatar for asifsid
-1
260
Member Avatar for mps727

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 …

Member Avatar for mikeP32
0
269
Member Avatar for wangatang126

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] …

Member Avatar for stephen186
0
104
Member Avatar for Ashishinani1756

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.

Member Avatar for NicAx64
0
110
Member Avatar for khess

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 …

Member Avatar for jaanu123
1
810
Member Avatar for Doughnuts

[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.

Member Avatar for Doughnuts
0
119
Member Avatar for serkan sendur

[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 …

Member Avatar for jingle_br
0
226
Member Avatar for NicAx64

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 …

Member Avatar for dkalita
0
173
Member Avatar for virtualmisc

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 …

Member Avatar for NicAx64
0
115
Member Avatar for ahihihi...

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 …

Member Avatar for Lardmeister
1
225
Member Avatar for matthewl

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 …

Member Avatar for jbennet
0
301
Member Avatar for khess

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 …

Member Avatar for Alex_
0
739
Member Avatar for ticktock

[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 …

Member Avatar for ticktock
0
142
Member Avatar for NicAx64

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 …

Member Avatar for replicajewelry
0
175
Member Avatar for riahc3

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.

Member Avatar for vincent2085
0
138
Member Avatar for Lisa Hoover

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.

Member Avatar for altf2junkie
0
211
Member Avatar for rena0514

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 …

Member Avatar for DdoubleD
0
114
Member Avatar for khess
Member Avatar for newsguy

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.

Member Avatar for NicAx64
0
422
Member Avatar for happygeek
Member Avatar for sommoP
0
176
Member Avatar for happygeek

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 ?

Member Avatar for NicAx64
0
350
Member Avatar for NicAx64

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.

Member Avatar for ddanbe
0
105
Member Avatar for selsium

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.

Member Avatar for Dave Sinkula
-1
136
Member Avatar for urbancalli

[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 …

Member Avatar for urbancalli
0
122
Member Avatar for sanjeet_singh88

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.

Member Avatar for NicAx64
0
91
Member Avatar for xfreebornx

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.

Member Avatar for xfreebornx
-3
453
Member Avatar for daviddoria

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 …

Member Avatar for NicAx64
0
2K
Member Avatar for gretty

[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 ) , …

Member Avatar for Tom Gunn
0
98
Member Avatar for goody11

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]

Member Avatar for Salem
0
141
Member Avatar for anil_t_n

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.

Member Avatar for anil_t_n
0
645
Member Avatar for kishan4every1

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 …

Member Avatar for GrimJack
0
120
Member Avatar for MattEvans

[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 …

Member Avatar for ithelp
0
498
Member Avatar for bushimports

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.

Member Avatar for mrnutty
0
932
Member Avatar for komyg

[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 …

Member Avatar for NicAx64
0
179
Member Avatar for NicAx64

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 …

0
75
Member Avatar for Ancient Dragon

[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 …

Member Avatar for Wasser
1
232
Member Avatar for The Dude

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 …

Member Avatar for Hiroshe
0
145
Member Avatar for NicAx64

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 …

Member Avatar for josh2
0
282

The End.