Forum: C++ 14 Hours Ago |
| Replies: 2 Views: 84 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.
class FractionType
{
... |
Forum: C++ 4 Days Ago |
| Replies: 10 Views: 418 right get it.
you telling that A[] is typed than A* that's why you can assign A[] to A* but not the reverse way. |
Forum: C++ 5 Days Ago |
| Replies: 10 Views: 418 And
c) Make sure you have copy ctor
d) Define a proper assignment operator for your class
and I also taught that this was a good idea. The idea of writing a
wrapper class. overload the
... |
Forum: C++ 5 Days Ago |
| Replies: 10 Views: 418 that is how I managed to make it compile. But it's syntactically
not fair that you can use A * as A[] but you can't assign a A* to
A[].
may be there is a reason for this , I want to know this... |
Forum: C++ 9 Days Ago |
| Replies: 10 Views: 418 I need to pass that data structures between multiple dll modules. So
there are initialization problems. So I can't use the std::vector :(.
But I think I can write my own wrapper class to... |
Forum: C++ 10 Days Ago |
| Replies: 10 Views: 418 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 ?
... |
Forum: C++ 19 Days Ago |
| Replies: 1 Views: 189 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... |
Forum: C++ 23 Days Ago |
| Replies: 3 Views: 482 #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; |
Forum: C++ 29 Days Ago |
| Replies: 2 Views: 288 Bingo ! that works.
Thanks a lot Acient Dragon. |
Forum: C++ 29 Days Ago |
| Replies: 2 Views: 288 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... |
Forum: C++ 31 Days Ago |
| Replies: 6 Views: 332 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. |
Forum: C++ 32 Days Ago |
| Replies: 4 Views: 278 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... |
Forum: C++ Nov 16th, 2009 |
| Replies: 3 Views: 630 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... |
Forum: C++ Nov 16th, 2009 |
| Replies: 1 Views: 271 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... |
Forum: C++ Nov 9th, 2009 |
| Replies: 2 Views: 174 may be this will help you. Copied from my guru , Dave Sinkula , don't forgot to give him some credits not for me .
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046380353&id=1044780608... |
Forum: C++ Oct 20th, 2009 |
| Replies: 3 Views: 216 double calculateAverage(double Number, double Sum)
{
return (Number * 1.0) / Sum;
}
You have to divide Sum by Number , not the Number by sum. |
Forum: C++ Sep 8th, 2009 |
| Replies: 19 Views: 647 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 the best for you and I recommand it.
Anyhow it's not a free book. Anyway if you can... |
Forum: C++ Sep 4th, 2009 |
| Replies: 2 Views: 268 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
... |
Forum: C++ Sep 3rd, 2009 |
| Replies: 7 Views: 324 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... |
Forum: C++ Sep 2nd, 2009 |
| Replies: 6 Views: 385 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 ).... |
Forum: C++ Sep 2nd, 2009 |
| Replies: 7 Views: 291 dev is a IDE not a compiler , the compiler that dev uses is the mingw.
can I know precisely why you need to implement a new #pragma
directive. for me I rarely use ( less than 10) pargma... |
Forum: C++ Sep 2nd, 2009 |
| Replies: 7 Views: 291 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.
... |
Forum: C++ Sep 1st, 2009 |
| Replies: 4 Views: 310 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... |
Forum: C++ Sep 1st, 2009 |
| Replies: 3 Views: 286 if (x>1) { // will this work for all numbers??
cout << x%10;
reverseDigits(x/10);
}
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, |
Forum: C++ Aug 21st, 2009 |
| Replies: 4 Views: 349 I'm using a scanner inside linux , and that was /dev/usb/scanner0
so it's a file in the linux. what I just doing is use the scanimage utility
in the liunx. So you can read from the scanner using... |
Forum: C++ Aug 20th, 2009 |
| Replies: 6 Views: 616 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. |
Forum: C++ Aug 20th, 2009 |
| Replies: 4 Views: 295 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. |
Forum: C++ Aug 20th, 2009 |
| Replies: 0 Views: 195 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 ?
'\<' { InsertOperator (... |
Forum: C++ May 27th, 2009 |
| Replies: 6 Views: 260 may be you can dig the job interview questions ,
the are easily can find on the internet. I have faced a java job interview ,
they mainly asked about the object oriented concepts and software... |
Forum: C++ May 27th, 2009 |
| Replies: 5 Views: 1,244 I thinks I have dig enough threads right now.Need some help now.
can somebody give me some idea about how to install 32 bit libraries .
is there is a package to download ? or something article... |
Forum: C++ May 27th, 2009 |
| Replies: 5 Views: 1,244 oky , I think you got a point ,
Then I will try to override the library searching path to lib32 directory. |
Forum: C++ May 27th, 2009 |
| Replies: 5 Views: 272 when the projects grows bigger and bigger , you will face the difficulty of finding
a new name for new identifiers without altering their meaning or you will
end up with long names like... |
Forum: C++ May 26th, 2009 |
| Replies: 5 Views: 1,244 hi , I just using 64 bit linux with my powerfull desktop computer.
and I use Scientific linux as the destro,I use the RPM binary package to install
gcc. and I using nasm also.
I write simple... |
Forum: C++ May 19th, 2009 |
| Replies: 3 Views: 228 you should have to find out some libraries that support the PHP
file handling.
there are libraries like pdflib , But I think it was written in C language.
so you need to define them using extern... |
Forum: C++ May 6th, 2009 |
| Replies: 2 Views: 329 you have to use :: operator to say that I'm going to implement
a function inside this class.
Like this.
void studentType::getData(studentType sList[], int listSize){
ifstream... |
Forum: C++ May 6th, 2009 |
| Replies: 1 Views: 494 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. |
Forum: C++ Apr 20th, 2009 |
| Replies: 15 Views: 2,322 agree ! one side but many technologies. Side is GUI programming , and the technologies are win32 , wxWidgets ,GTK, QT, MFC ... etc.
I think that's the special expertise. |
Forum: C++ Apr 19th, 2009 |
| Replies: 15 Views: 2,322 http://www.advancedlinuxprogramming.com/alp-folder/alp-ch01-advanced-unix-programming-with-linux.pdf
pages 6,7,9 contains the all the information that you need to learn about how to link object... |
Forum: C++ Apr 19th, 2009 |
| Replies: 15 Views: 2,322 Someone have said I have to link shared library and I will be fine, but that is hard cookie to a little babe
../configure --build=x86-winnt-mingw32 --disable-shared --disable-threads
and just... |
Forum: C++ Apr 18th, 2009 |
| Replies: 26 Views: 1,740 just get the stack trace and get see what's the function calls it until
you find your code.Then check the parameter values. |