Jump to content
xisto Community

bidarshi

Members
  • Content Count

    8
  • Joined

  • Last visited

  1. Let me join in the discussion. Microcontroller: I stress is one of the most powerful micros in the electronics world. These small things and rightly compete with the microprocessors in most aspects. To use the microcontroller and its programming language one must consult the proper manual. While in my high school I had been taught the Intel 8051 with a different programming compatability than the PIC or other stuff I can point out the common features of microcontrollers in general.This might serve as a beginner's tutorial.Micro controllers in general have I/O capability, memory clock associated with them.When properly interfaced and programmed they can be used to produce interesting products.For the 8051 the ports are bit addressable which is more desireable properety of addressability.
  2. At last I found a challenging and debateable thread to answer. My favourite game is Age of Empires 2. I feel I must also say why this microsoft product is my all time favourite. This game demands strategical moves, also brave play moves on part of the player. In other games we might find one or the other component but surely not all the components of the age of empires 2 content.At last I found a challenging and debateable thread to answer. My favourite game is Age of Empires 2. I feel I must also say why this microsoft product is my all time favourite. This game demands strategical moves, also brave play moves on part of the player. In other games we might find one or the other component but surely not all the components of the age of empires 2 content.
  3. I must admit google talk is a great work by google.And as rightly pointed previously most of the people are now having gmail account to access google talk it wont be any problem to send instand messages.Enjoy! and it is true that there is no meaning for a chatting software if we can not chat with people. But I have one query in this regard like yahoo messenger is there any chat room facility in google talk? As for me I could not find one.There is much enjoyment in reaching rooms. It will be helpful for me if anyone can suggest the solution to my query.I must admit google talk is a great work by google.And as rightly pointed previously most of the people are now having gmail account to access google talk it wont be any problem to send instand messages.Enjoy! and it is true that there is no meaning for a chatting software if we can not chat with people. But I have one query in this regard like yahoo messenger is there any chat room facility in google talk? As for me I could not find one.There is much enjoyment in reaching rooms. It will be helpful for me if anyone can suggest the solution to my query.
  4. Well let me help out of this problem. Two or more data types in Declaration does not necessarily mean a code like int char function(); It may be the error. But a more serious type of syntax error would be declaring the function to be of one type say int function(); and then during the definition of the function body declaring it to be of say char function(){//body;}. The compiler will report an error in this case and I think this is a more common error among programmers.Check if you have commited the same.Now for malloc function. Malloc is used to dynamically allocate memory for an array say. In normal array declaration say array[10] we are allocating a fixed 10 unit size of the array.In practice it may not be suitable. Sometimes we might need more space and sometime it result in loss of valuable memory space. malloc is used in this case to dynamically allocate the memory. Malloc on success returns the pointer to the created memory location . It must be properly typecast before use as fundamentally malloc returns a void type pointer.
  5. Well I am not an expert in C programming and I think I can address your problem with a logical approach. For reducing a fraction you first check whether the numerator and the denominator are relatively prime to each other. If yes it means the fractions are already reduced. If they are not relatively prime further reduction is possible. Now you find the greatest common factor between the two that is numerator and denominator.Divide both the numerator and denominator with the greatest common factor.The fraction is thus reduced. You check it and meanwhile I will also check whether it is working. But I think there is no bug in this approach.
  6. Let me join discussing this topic and add help you with your problem. C++ is an easy language to learn. The idea of efficient programming is to master the logic flow and designing according to th requirement of the problem or client.C++ is a structured language which is a super set of the C language. Many new features are added to the classical C to evolve itself into C++. To learn C++ or any other programming language one must master logic flow concept and the basics of the programming language syntax.While visual basic which you have learned is a more designer friendly language than C++ we must remember that the designing domains are different for this two languages .Where Visual basic gives much stress on visual aspects C++ is a more machine close language. To start with get hold of a good book then start designing small applications your self.Trust me you will suceed. But if you have time you start with learning C as I repeat C++ is only a superset of C.
  7. Let me join discussing this topic and add continuation to this thread. C++ is an easy language to learn. And it is true that programming is often considered to be an art. The idea of efficient programming is to master the logic flow and designing according to th requirement of the problem or client.C++ is a structured language which is a super set of the C language. Many new features are added to the classical C to evolve itself into C++. To learn C++ or any other programming language one must master logic flow concept and the basics of the programming language syntax.Be it C++ or Java or PHP programming is never difficult. to learn concept of structured language C++ is a good start while C is the classical procedural language.
  8. I think you can solve your problem in C or C++ by entering your input data into a character type string. The length of this string you can easily obtain.Now you can extract each individual character from the string. Check each character's ASCII value whether they are between the range for the characters . if this result is true neglect the character and search for the next character. If the checking implies that the extracted character is not a character or a special character then this extracted character is an integer.You store this CHARACTER in a result array.Now if you output the result string you will get the integers entered. In my knowledge there is no readymade function to extract the integers as such and you will have to code it yourself.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.