29 Posted Topics
Hello all, Yesterday, I did a regrettable action.... I opened disk management and made c drive as an active partition.Now the computer says bootmgr is missing(at start up). When I tried to recover from recovery area of hard disk by clicking assist button on Vaio it didn't work.It showed windows … | |
Hi all, Some laptops come with dedicated gpus while some laptops come with integrated gpu. I bought a Sony Vaio laptop with Intel core i5-2450 and Nvidia graphics card.... Does my laptop graphics( like windows aero) work even If I disable the Nvidia driver.... What do I have to in … | |
Re: Try it understand the concepts behind rather than try putting code snippets together. Use `JFrame#setUndecorated(true);` to remove the title bar of the JFrame,`JFrame#setResiable(false);` to make the window static( unresizable) and make the window size full. This combination makes the window fullscreen). See the edited code of JamesCherill below: import java.awt.*; … | |
Hi all, A question asks me to write overloading functions to square,circle ,rectangle and triangle.... But since the square and circle have only one parameter I had to change the parameter of area of circle to double...... Is this the only way to accomplish this..... Are there any other ways … | |
Hi all, A problem asks me to create a point class,line class composing two points, a triangle class composing three lines.Also a right angle triangle and an equilateral triangle class both inherit triangle class.I did this. public class Point{ private int x; private int y; public Point(int x,int y){ //error … | |
hi all, In the book "Programming Languages-Pragmatics" second edition by Michael l. Scott and Morgan Kaufmann, there is a sentence while explaining about copy constructor: "In recognition of this intent, a single-argument constructor in C++ is called a copy constructor." This is about the constructor of the form foo::foo(const foo& … | |
Hi all, I came to know that in Java or c++, constructor is executed only after the allocation of space.... Then what does an implicit default constructor(in c++) or default constructor in Java does....? If we explicitly define our constructor then the initialization will be done according to our needs! … | |
Re: [QUOTE=roverphoenix;968484]A simple program to calculate permutations of a string using recursion, I have used a malloc string of size 100 , you can change it to whatever value you want. The author is currently working at Microsoft,any questions can be directed to [email]raghu_tillu@hotmail.com[/email][/QUOTE] It takes very long time to complete … | |
Hello, I wrote two programs which sort first names which are already sorted by their last names.One is with Selection sort and the other is with Quicksort! The question is , "is any one of them stable?." "If the names with same first names are still in sorted order by … | |
Re: [QUOTE=WaltP;1710700][iCODE]getche()[/iCODE] is a non-standard function and should not be used at all. They are trying to keep the program window open when you execute the code using the IDE. It's best to use a standard C function (like [iCODE]getchar()[/iCODE]) for that. [iCODE]return 0;[/iCODE] is required because [iCODE]main()[/iCODE] is an integer … | |
Hi.... I wrote a program for Quick Sort algorithm.... It is compiled fine....but it is giving a run time error i.e., Segmentation Fault.... I tried hard but couldn't find out what is that thing causing segmentation error in this program.... Please help.... I'm getting segmentation fault very frequently (i'm using … | |
I wrote this program for insertion sort.I compiled the source file in xubuntu terminal.But when I try to run a.out executable....terminal showing "segmentation fault".I don't about segmentation fault..when segmentation fault occurs...what is the thing in the source file that is causing segmentation fault... Thanks in advance...... [CODE]#include<stdio.h> main(){ int i,j,n,key; … | |
Hi, I got a doubt about for loop while i was thinking about time complexity.... Is increment operation in for loop a two steps operation i.e., increment i and assign it the i or an one step operation just like just incrementing it? Is there any pointer operation involved in … | |
Re: Hey it is showing me some errors in dev-C compiler please help me. | |
Hi,please help me! I wanna write a program for gauss jordon elimination ,for that I need to sort/exchange the rows such that the rows are in order of their increasing zero elements before non zero element in each row like below suppose, input 0 0 3 4 5 0 3 … | |
Hi! I have written a function for passing a string into it and finding its length. When I pass a string it prints a correct value. But when I take two strings and passing them individual len(str1),len(str2) after scanning two strings it returns the wrong value. In the first case … | |
Hi! I have been learning c language on linux for two months.Today I have changed to Windows and don't know how to ,where to write programs and compile them and execution.Please exlain me. (Windows-7,acer) Thanx. | |
Hi, I am using ubuntu linux system.In that I am unable to use strrev() function for reversing a string.Is there any library function in linux equivalent to strrev(). Thanks in advance. | |
Hello! I have a small doubt about formal specifiers. I have seen in many programs of printf statements,writing "%2d".What is the use of writing an integer before d or any formal specifiers. Thanks in advance | |
Hi! The following program gives the integer value of char string as output.Suppose if we give "1998",it will give integer 1998.In [CODE]i=i<<3+i<<1+(*string-'0')[/CODE]I understood that it will multiply i by 10,but in *string-'0' I don't know what is going there..?.Here what refers string is it index in 1998 or whole 1998. … | |
Hi! The following program gives the integer value of char string as output.Suppose if we give "1998",it will give integer 1998.In [CODE]i=i<<3+i<<1+(*string-'0')[/CODE]I understood that it will multiply i by 10,but in *string-'0' I don't know what is going there..?.Here what refers string is it index in 1998 or whole 1998. … | |
Hi! I have seen a function to do "atoi for converting a string to its numeric equivalent. It copes with optional leading white space and an optional + or - sign. " The structure of the program reflects the form of the input: skip white space, if any get sign, … | |
Hi! I wrote a program on iteration of numbers means-- if n=10 ---n=10/2=5 5 is odd so 3(n)+1 upto getting 1. Here is program [CODE]#include<stdio.h> main() { int i,n,c=0; printf("n= "); scanf("%d",n); while(n!=1){ if(n%2==0){ n=n/2; } else{ n=3*n+1; } printf("%d\t",n); c++; printf("%d\n",c);/*printing no of iterations of n*/ } }[/CODE] I … | |
Hi! I have optimized the program posted in [URL="http://www.daniweb.com/code/snippet286940.html"]Http-webserver in C[/URL] to my sytem.Ok!. All the things in this program are fine.I inserted index.html file to this program.Now I want to share my files such as pdfs via LAN with this program.How to do that.Please help me. [CODE]#include<stdio.h> #include<string.h> #include<arpa/inet.h> … | |
Re: Please tell me how to do file sharing on local network with this program | |
Re: Hi Mindster please help me with [url]http://www.daniweb.com/code/snippet286940.html[/url] program to share local files | |
I am a B.Tech 1st year student.I am unable to understand the program given below.Please any one explain me.Any help would be appreciated. This program is for printing longest line of given input lines.. [#include <stdio.h> #define MAXLINE 1000 /* maximum input line length */ int getlines(char line[], int maxline); … | |
Re: It seems like a professional program.You are saying you don't have any experience with C,then how can you chose this program to complete.Are you a professional IT person.If it is ,no IT person will be there who doesn't know C. |
The End.