No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Student (pursuing B.Tech in computer science)
- Interests
- Playing computer games, playing football
- PC Specs
- OS: Windows XP with Service Pack2 Intel Centrino mobile technology 1.73Ghz 120GB of Hard disk with 1.49GB…
Can someone tell me from where can I download a Personal Web Server for Windows XP SP2, if not , then an alternative for that ?? I want to do programming in ASP on my personal computer.:confused: |
|
Can someone tell me from where can I download a Personal Web Server for Windows XP SP2, if not , then an alternative for that ??:confused: I want to do programming in ASP on my personal computer. |
|
I have got an assignment question : Constructors cannot be virtual , however destructors can. Justify the statement in reference to memory leak. Please help me out figuring the answer. |
|
I am not able to figure out how to calculate the determinant of a matrix whose size and elements are to be taken from user. Could someone help me !! |
|
My instructor at my engineering institute has given the following assignment question: Create a database of scientists and labourers and maintain the same by making use of inheritance. We haven't been taught the database connectivity with program execution, so that's not to be used. I wrote the following code: [code] … |
|
I am facing a problem in void pointers in c++. Have a look at the following code: [code=cplusplus] #include<iostream.h> int main() { void *ptr; int x=3; float y=2.35f; char c='A'; ptr=&x; cout<<endl<<*ptr; //line 1 ptr=&y; cout<<endl<<*ptr;// line 2 ptr=&c; cout<<endl<<*ptr;//line 3 cout<<endl; return 0; } [/code] I am getting the … |
|
Could someone please why do we say that the syntax of enhanced for loop (for-each) in java in streamlined. Also, my java compiler does not compile programs containing the enhanced for loop. It gives errors like: for(int x:collection) { } ^ ; expected Could someone suggest solutions to this? |
|
I am not able to understand why in the following program it is mentioned in my book: The value of ~a is ANDed with 0x0f (0000 1111) in binary in order to reduce its value to less than 16, so it can be printed by use of the binary array. … |
|
Could someone please tell me how to overload ++ operator in the postfix form. ++ sholud increment the instance variable avar of following class: class A { int avar; public: A() { avar=0; } A(int a) { avar=a; } void display() { cout<<endl<<avar; } |
|
Re:
I have assignment and need help determining if I am correct. The question reads: a.Write a function that determines whether a number is prime b.use the function to determine and print out all prime numbers between 2 and 10,000. [B][U]How many numbers to you have to test before being sure … |
|
Re:
I'm extremely new to c++- this is a homework question- I do not understand how to write my program for this problem: Write a function named yrCalc() that has an interger parameter representing the total number of days since the turn of the last century (1/1/1900) and reference parameters named … |
|
Re:
I don't understand why this program is making me input two more times (after the program is finished) before it terminates. All other programs that I do usually terminates while this code idles. For those who are confused, I have to enter extra characters and hit "enter," twice before the … |
|
Re:
Help me! what is operator overloading?explain its types, with examples |
|
could any one tell me the exact syntax and semantics of cin.get() and cin.ignore() ? |
|
#include<iostream.h> class A { int avar; public: A() { avar=0; } A(int a) { avar=a; } void dis() { cout<<endl<<"avar = "<<avar; } void operator ++ (); }; void A::operator ++ () /*[B][U] from compilation message it is known that this is prefix form , how do I specify the … |
|
#include<iostream.h> #include<string.h> class person { protected: char name[20]; int code; public: person(char *a,int c) { strcpy(name,a); code=c; } void dis() { cout<<endl<<"name : "<<name; cout<<endl<<"code : "<<code; } }; class account:virtual public person { protected: long pay; public: account(char *a,int b,long c):person(a,b) { pay=c; } void dis() { person::dis(); cout<<endl<<"pay … |
|
I am not able to figure out the code required for accepting a string from user , but the memory for it should be dynamically allocated and referenced using pointer. Have a look at the following: char *p=new char[length_of_string+1]; This statement would work to dynamically allocate the string ,but still … |
|
// runtime error encountered , cannot resolve symbol i ,please help!!! class promote { public static void main(String args[]) { byte b=42; char c='a'; short s=1024; int i=50000; float f=5.67f; double d=.1234; double result=(f*b)+(i/c)-(d*s); System.out.println( (f*b) + " + " + (i/c) + " - " + (d*s) ); System.out.println("result … |
|
|
Re:
hi.. i'm having trouble with my project.. i keep getting "Unhandled Exception" [code=c++] # include <conio.h> # include <stdio.h> class bank { float x; public: void deposit(); void withdraw(); void disp_det(); }; void bank::deposit() { float more; printf(" enter the amount to deposit: "); scanf("%f", more); x += more; } … |
Re:
Hello all: I create a simple source file in VC++ , I tried something simple,there is two strings: string1:MICROSOFTCPP string2:HELLO I want to write a code to make string2 is equal with string1,so it must be string1:MICROSOFTCPP string2:[COLOR="Green"]HELLO[/COLOR][COLOR="Red"]HELLO[/COLOR]HEL so it seem the string2 its repeat itself until it's length is … |
|
[code=cplusplus] #include<iostream.h> #include<string.h> int main() { int x; cout<<endl<<"enter x:"; cin>>x; int temp=x; int count=0; while(temp!=0) { count++; temp=temp/10; } char *p=new char[count+1]; for(int i=0;i<count;i++) { *(p+i)='\0'; } for(i=count-1;i>=0&&x!=0;i--) { *(p+i)=x%10; x=x/10; } *(p+count)='\0'; cout<<endl<<"converted string : "; for(i=0;i<count;i++) cout<<(int)*(p+i); // int type cast used , if not used then … |
|
[code=cplusplus] #include<iostream.h> class mat { int **matrix; int row,col; public: mat(int r,int c); void get_element(int a,int b,int value); int &disp_element(int a,int b); int getrow() {return row;} int getcol() {return col;} friend mat operator + (mat &m1,mat &m2); friend mat operator - (mat &m1,mat &m2); ~mat() { delete matrix; } }; … |
|
class matrix { int **p; int d1,d2; public: matrix(int x,int y); //constructor allocates block of specified size /*I am not specifying contructor code*/ void get_element(int i,int j,int value) { p[i][j]=value; } int put_element(int i,int j) { return p[i][j]; } // [U][B]return statement encountering access violation during runtime , Help!!![/B][/U] }; |
|
Re:
Hey I know i am over looking somthing small but can i get some help on line 23 [code](strcmp(chartryname, charname)==0 && (chartrypassword, charpassword) ==0){ [/code] I know this will not work its just to show what i am trying to do. I need to check two pairs of strings how … |
|
/* unable to return value from following function due to if - else block within function..*/ mat operator + (mat &m1,mat &m2) //mat is a class for matrix object { int r1=m1.getrow(); //getrow returns number of rows in matrix int r2=m2.getrow(); int c1=m1.getcol(); //getcol returns number of columns in matrix … |
|
[code=c++] /* unable to return value from following function - adds two matrix class objects */ mat operator + (mat &m1,mat &m2) // mat is a class for matrices { int r1=m1.getrow(); // getrow returns number of rows int r2=m2.getrow(); int c1=m1.getcol(); //getcol returns number of cols int c2=m2.getcol(); if((r1!=r2)||(c1!=c2)) … |