- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 2
28 Posted Topics
Re: Yes! string doesn't have any specific size like int,float,etc. For eg. char a[20]; Here string a is of size 20 bytes, char b[10]; Here string b is of size 10 bytes and so on. | |
I want to change the color of the text in c++. I am using Turbo c++ 4.5 and Windows XP. I have used that textcolor(14) type code but it didn't work. It says : Call to undefined function "textcolor" in function main I have included header files iostream.h, conio.h, windows.h, … | |
[code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <table style = "width : 500px; border : 1px solid black;"> <tr> <td style = "height : 100%; border : 1px solid;"> 1st TD </td> <td rowspan = 2 style = "border : 1px solid;"> </td> <td rowspan = 2 style … | |
I have implemented Bubble Sort. How to add counters in the program so that I can calculate and display the Best Case, Worst Case & Average Case Time Complexity of this program? [code] #include <iostream> using namespace std; void bubbleSort(int arr[], int n); int compb = 0, compw = 0; … | |
Re: Add the header file <conio.h> and put getch() at the end of main() function before return statement and see if it works. | |
Re: Here's a book for you to have your concepts clear: [url]http://bit.ly/qmRTsK[/url] | |
Re: if n is a pointer i.e. int n*; and m is a simple integer i.e int m; then you use n=&m to store the memory address of m into n. And you use *n=m to store the value of m into n. * is called the Value at Operator & … | |
Re: visit w3schools.com to find out some differences in syntax of CSS for IE and Chrome | |
Re: See this: [url]http://www.codingforums.com/showthread.php?t=142757[/url] | |
Re: Yes! rand() function generates numbers from 0 to randmax. See this reference: [url]http://www.cplusplus.com/reference/clibrary/cstdlib/rand/[/url] | |
Re: &n is a reference variable. We can't use ref variables in C. However, it can be used in C++. | |
Re: [QUOTE=coolbeanbob;1633965]The program does not run when I put the destructor after the private function.[/QUOTE] Destructor must be in the public section to enable it to destruct the object after its job. | |
Re: I recommend you to use Express Edition (Free) of Microsoft Visual Studio if you want to be really a programmer. You can find the VS from Microsoft site. | |
I want to know how the structure of C++ program resembles to a client server architecture? | |
Re: I also tried your program in Turbo C++. It worked and giving the result as expected. I can understand your problem of using turbo c++ as I myself has undergone through such condition. Also, I would suggest you to write int main() rather than void main() because the latter is … | |
I have set two environment variables for JAVA JDK. 1. PATH=C:\Program Files\Java\jdk1.6.0_26\bin;%PATH% 2. CLASSPATH=C:\Program Files\Java\jdk1.6.0_26\lib\tools.jar When I compiled the file using javac it was done successfully but when I ran the file using java command I got the following error: Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld | |
I want to print the following sequence. __* _*** ***** _*** __* Here _ denotes space. I have written half program to print upto 5 stars and not able to get for down. [CODE] #include <stdio.h> void main() { for(int i=1;i<=3;i++) { for(int j=1;j<=3-i;j++) printf(" "); for(int k=1;k<=(2*i-1);k++) printf("*"); printf("\n"); … | |
I had written a program [code] #include <fstream.h> void main() { fstream f; f.open("test.txt",ios::app|ios::in|ios::binary); cout<<f.tellg(); f.close(); } [/code] My file test.txt already contains text : " hello " i.e. 5 characters But when i try this it outputs only 0 but ios::app mode places the pointer at the end of … | |
I am using CodeBlocks c++ compiler. I want to generate 11 digit random number as i am working on my computer project. How can i do this? and everytime a new random number. | |
Since gotoxy() function can have maximum values (35,25) I want to know is there any alternative to this which i can use in Turbo C++ 4.5 version. I have to make a project and therefore i urgently require a one for a better look of my project. | |
[code] #include <iostream.h> #include <conio.h> int main() { cout<<"hello"; textcolor(2); cprintf("hello"); return 0; } [/code] Errors i am getting : call to undefined function 'textcolor' in function main call to undefined function 'cprintf' in function main I am using Turbo c++ 4.5 Windows XP SP2 Also graphics.h header file is … | |
I have Turbo C++ IDE 3.0 the one that has blue working environment. Problem that i face is that when i run any program it only shows the black screen for about 3 seconds without any output and then automatically closes. I can't check the output because of this. Please … | |
i have submitted my site to google webmasters tools [url]http://www.home-remedies.freecp.net[/url] and when i verify it it shows me the following error : We've detected that your 404 (file not found) error page returns a status of 200 (Success) in the header. However i am able to access the page that … | |
Will google index my site which is created using a subdomain my site is : [url snipped] | |
I have a problem with my tv capture wdm card when i saw it in device manager having an yellow exclamation mark on it. In properties the details shown are: [B]Under general tab:[/B] Device status:"This device is not working properly because Windows cannot load the drivers required for this device. … | |
I have created a page in microsoft publisher and created a navigation bar and formatted it but when i duplicate the page the bar changes its appearance i.e. it doesn't look like what i have created in my first page. | |
I am creating web pages using microsoft publisher and i want to insert adbrite codes into my page but i don't know how to insert the code so that the ad appears on the page when i open it. Please help me. |
The End.