- Upvotes Received
- 11
- Posts with Upvotes
- 10
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
35 Posted Topics
Re: The conversion of hexa to decimal follows in thid manner Hex value =A48 Decimal value =8*16^0 +4*a6 ^1 +A*16^2+... so first thing you need to do is to convert string value to integer using [CODE] int result =atoi(hexString) [/CODE] Then you can keep on dividing the integer by 10 and … | |
Hi All, I have two machines, one Solaris and another Linux. On my Linux machine , i have Oracle10g installed and have one instance(say firstInst). I have Oracle 10g installed on Solaris also. When i try to connect to this firstInst, from Solaris , i get error like *sqlplus sys/sys … ![]() | |
Re: [QUOTE=DoEds;1046216]Can anyone give me some ideas on how to find the middle value between 3 numbers.? I really dont know how to start... I know how find minimum and maximum but finding the Middle value is kinda hard for me... For those C Wizards give me some idea advice please?., … | |
Hi all, I was going throughthe concept of Polymorphism. Can anyone explain me how the vtable and vptr are created in case of virtual base class and what all values it contains. I have idea about the vTable and Vpt in case of polymorphism that the table contains the address … | |
Re: [QUOTE=LisaJane;94516]I have this program that is supposed to read part numbers from a text file. 101-110, 301-310, 501-510 and put them into a hash table. It will prompt for one of four algorithms to be used and then continue to load the part numbers. Everything seems to be working okay, … | |
Re: And please dont use [CODE] system("pause"); [/CODE] it is not a good approach.. use getch etc instead :) | |
Re: [QUOTE=leinadbg;1045113]Hello, i am searching for way, to open web page with C++ and after that to control its elements. I know that i can do this in Delphi, with WebBrowser.OleObject.Document and TWebBrowser. Do you know similar way that i can use in C++?[/QUOTE] I searched on net and found some … | |
Re: i see many syntax errors in your code. Few i will list. Rest you should compile your code. In the check member function, you have so many parameters, but where you are calling the function,the number of parameters are different Also the use of references is not proper.the way you … | |
Re: To make the program obust you need to use looping concept . This will provide user the freedom of entering any number | |
Re: Hi gunjan, Can you please tell me what is the difference between [ICODE] void function(int*d); [/ICODE] and [ICODE] void function(int &d); [/ICODE] both above are function declarations and both we do the changes to the original variable passed to the function. Then what is the exact difference. Thanks in advance | |
Re: [QUOTE=tufzz;712019]Can anyone tell me why I'm getting "number 1" as my output when i enter arguments 1, 2, 3. It seems like its always 1 and I don't know why. [CODE]int main(int argc, char *argv[]) { if (argv[1] = "1"){ printf("number 1"); }else if(argv[1] = "2"){ printf("number 2"); }else if(argv[1] … | |
Re: Yes , when you are calling a function by call by value method as you are doing in your code you are making a local copy. If you need the change to be reflected in main also you should use reference method | |
Re: [url]http://mycplus.com/tutorials/c-programming-tutorials/file-handling/[/url] check this link about file handling.Similarly you can copy objects | |
Re: Hi FAZ3, What exactly you want ? why are you using delete in your algorithm? Do you want it to be at particular position as has been done by Rhohitman or is your list like this [ICODE] struct node { int i; char a; node *next; }; [/ICODE] and you … | |
Re: [QUOTE=Se7Olutionyg;709233]// grade.cpp // display the letter grade corresponding to an exam // score assuming a noormal scale # include <iostream>; using namespace std; void displayGrade (int score); int main () { int score; displayGrade(); cin.get(); return 0 ; } // get the data void displayGrade cout << " ENTER THE … | |
Re: [QUOTE=abelingaw;709348]Ok! Now i have done it. The prblem is that i dont know how to do a switch. I mean after the program is executed and finish, How do I enable it to ask the user if he wants another try. If yes, the prog starts again and if no, … | |
Re: Hi, First of all both your functions are same. It will give compilation error at the start [ICODE] void strrep(char *ptr, char *charactobereplaced); void strrep(char *ptr, char *wordtobereplaced) [/ICODE] Also you can do this with the same function , there is no need to create two functions. Look at the … | |
Re: hi all, i have a doubt...please clarify Instead of having a base class pointer and pointing it to derived class...can we not have a derived class pointer itself to call the virtual function..how are the two cases different and what is the benefit of one over the other? | |
HI All, I am using doctrine in my project... now i am trying to update an already existing query.I am getting some DB exception..can anyone tell me what ia wrong in my code [code] $q = Doctrine_Query::create(); $campaign->update('TableName') ->set('name' , $args['name']) ->set ('credit' ,$args['credits']) ->set('comments' ,$args['comments']) ->where ('id = 2') … | |
Hi All, Can anyone please tell me how can i get the socket.dll for writing socket programming in php. Thanks | |
Hi All, I am trying to create the instance of a class without using new. [code] class StaticVar { public $i; function __construct() { $i=8; } public function StaticVar() {} public function display() { echo $i; echo $count; } } $instance = new StaticVar(); StaticVar $instance2; $instance->display(); $instance2.display(); [/code] It … | |
Hi all, I want to use preg_grep for an assosiative array. Can someone guide me how is it possible? | |
Hi All, I am new to PHP, i have installed WAMP but have no idea how to work on it. Can someone please guide me or provide some link how should i start? Thanks in advance | |
Hi all, Can someone tell me in detail what are super global variables and how are they used?? | |
Hi All, I have started learning PHP now. I am unable to find the exact difference between include and require in php? | |
[B]i have a problem in a program i am making. In my program i need to call a function again and again until the string entered in it is not correct. Initially i was using gets() but it wasn't accepting the string.[/B] [B]i cahnged it to scanf(), so it is … | |
Hi all, I am trying to understand the concept of private constructors and singleton. As far as i have studied, we can have private constructors , destructors and that they are used to avoid making instances of the class other than its member function. now that i am trying to … | |
| |
hi all, i am writing a program in which i am checking if a string contains another string(same what strstr does). i assumed intially that the string1 is a long string with spaces and string2 is a word(which might be or might not be present in string1) i have used … | |
Re: You can use [B]strtok [/B]function using string.h It helps u to get the string tokens based on the delimiter u give. | |
Re: The program is having many mistakes, firstly you are dividing the two numbers and then assigning them the values . So when the program encounters the statement of quotient , it will do something like 0/0. which is an error.similarly for remainder. also you are not printing the outputs . … | |
i need to print a wildcard * in the output . a program that takes a string as command line argument prints all the files in the directory instead of *. can u help me? | |
[B]i want to find out small projects to work upon so as to improve my grip over c, can someone tell me some sites having projects in c:confused: [/B] | |
hi can anyone tell me please what is segmented error , i have made a program in c on linux and when i am running it after compiling , after a few inputs it shows segmwntwd erroe. what is this??:?: | |
hi i am rati, i hav joined a software company recently and wud like to improve my knowledge in IT field thru this community. i wish 2 recieve a gud response 4m all regarding my problems in this field:) |
The End.