168 Posted Topics
Re: here is the basic program which can print itself [code] #include<iostream> int main () { int c; FILE *f = fopen (__FILE__, "r"); if (!f) return 1; for (c=fgetc(f); c!=EOF; c=fgetc(f)) putchar (c); fclose (f); return 0; } [/code] Well at first place i didnt want to give the souce … | |
the follwong is the basic java script i wrote and its not working (giving the desired output as i wanted ) [code] <html> <head> <title>hello </title> </head> <body> <h1 align='center'> Using Arrays </h1> <script language = "JavaScript"> emp = new array(5) emp[0] = rahul emp[1] = rahul1 emp[2] = rahul2 … ![]() | |
Well i am using fedora for a pretty long time and i am tired of the fedora looks especially when i see ubuntus latest edition . Are there any themes available or graphic packages which can enhance my OS looks. | |
there are many key words in java cryptography and none of them is been recognized in my system. Is there any way i can implement java cryptography...? | |
hello everyone ! , I am creating a form with various check boxes in it. The check boxes represent various type of workshop the person wants to attend. i just dont know how to process the data in check boxes. check.html The html code is : [code] <html> <head> <title>Untitled … | |
i am planning to upgrade my windows sp2 to sp3 . But i already have fedora installed (dual OS ). will my upgrade from sp2 to sp3 crash my fedora ? | |
well i am creating a registration form . the problem i am facing is i want to generate the name text field based on the input of number of participants. if some one wants to perform bulk registration, then he can keep filling the form again and again, having all … | |
Re: well when i had hosted my website on web server . I too was given a username n password. i guess all these have a php MyAdmin module embedded in it. it would be somewat like [url]www.urdomain.com/cpanel[/url] or so. cpanel = control panel. (it was cpanel in my case , … | |
Re: [quote] I need to add a few more fields to the data base. [/quote] well in this case not only u will have to change the php script but also the MySql DB. I guess ur aware of that(just wanted to be sure). the website where u have hosted must … | |
i have created a database initially and had framed only one table. The php script was working fine , i could store values and reterive from them. I again created one more table in the same database , inorder to store data in it. but the PhP script is by … | |
i have created a simple form (well with the help of a book ). i am able to process the data and display it . But i am[B]not able to send the same message to my mail ID[/B]. i am using WAMP server. i am running the script from my … | |
i have created 2 files 1.chat.html [code] <HTML> <HEAD> <TITLE>Enter your name</TITLE> </HEAD> <BODY> <H1>Enter your name</H1> <FORM NAME="form1" ACTION="chat123.jsp" METHOD="POST"> <INPUT TYPE="TEXT" NAME="text"> <INPUT TYPE="SUBMIT" VALUE="Submit"> </FORM> </BODY> </HTML> [/code] 2.chat123.jsp [code] <HTML> <HEAD> <TITLE> Using Java in JSP </TITLE> </HEAD> <BODY> <H1>Using Java in JSP</H1> Your Name is … | |
i have recently installed wxpython on python2.5 and wrote the following code [code] import wx app = wx.App() app.MainLoop() [/code] Then i got this error(attached file) , and i have no idea what it talks about. Traceback <most recent call last): File "<stdin>", line 1 , in <module> File "C:\Python25\Lib\site-packages\wx-2.6-msw-ansi\wx\_windows.py",line … | |
i designed a simple php form which accepts the data and then displays it, (well its supposed to ) but its kinda not displaying the values it should.. [code] <html> <head> <title> Simple feedback form </title> </head> <body> <form method = "post" action="send_simpleform.php"> <p><strong>Your name: </strong><br> <input type = "text" … | |
Re: [quote] You may run PHP scripts as console applications, which is much simpler then installing full blown server on your computer. Download and unpack php somewhere, find php.exe and run it with your file.php as parameter, from command line (cmd). C:\PHP\php.exe -f file.php [/quote] well kudos to you.. it ran … ![]() | |
well i have (not precisely) created a form which accepts manily 1.name 2.subject 3.Message well i have written the php code for that ,well the data sent by the user is supposed to come to my mail id since i am getting the message fail error i have , i … | |
well i have been doing quite lot a research on web stuff (still naive) i have got various templates for my site and then finally a seminar form which i have downloaded from [URL="http://www.wufoo.com"]http://www.wufoo.com[/URL] now i want to accept the data entered from the form and store it in my … | |
Re: at the end of the code just write getch(); then you can only exit the output after pressing ne character. | |
well recently i got the mandriva spring summer 2009 edition and i saw the snapshots.. its just awesome :cool: , well and i want to install it on my system. since i already have fedora 8 and windows xp2 partitioned on my disk and for some reason i dont want … | |
recently i have been brosing thru many web templates and have downloaded some of the,.. well now i want to modify the text and put my text in those .. well i aint have any idea on how to do that..? well if text manipulations are possibly (which i think … | |
Re: well in that case pal , could u enlighten ur more about the kind of enviornment ur working in and wat is your project all about ..? | |
Well i have a windows xp and linux (fedora 7) partition . and now i have found a new distro of linux which is called Belinix . its not very famous but has a lot to offer . Well my problem is i want to install and run belinix , … | |
well i am working on program which inputs : 1. student record (name , semester , class , branch , roll no ) 2. the various subjects on which the exam to be held 3. the date on which the subject s exam to be held the data which is … | |
i am working on my project which is on regeression of lines . well i have been successful in fitting a straight line to the given set of coordinates . since i have come so far after a lot of striving , i have been a bit exhausted on writing … | |
Re: actually u can use a flag......(its just a variable but commonly know as flag when used in such purposes ) [code] void display( ) { int option, int flag =1; system("cls"); //clear screen cout<<endl<<endl; cout<<"\t * Display Menu *\n"; cout<<"\n\t1. Display For Certein Date"<<endl; cout<<"\t2. Display All Appointments"<<endl; cout<<"\t3. exit"<<endl; … | |
Re: well here is the algorithm .... algorithm stringmatch( t[0-n-1] , p[0- m-1]) t = array of text p = array of pattern u wanna match { for i ->0 to n-m do , j->0 while j<m and p[j] = t[i+j] j <- j+1 if j = m return i return … | |
hi everyone , i am trying to access image files in java and then want to modify those bits present in the image . is there any standard package or utility which would help me to do that ...? i would be glad if you could enlighten me with other … | |
Re: well i had a similar assignment in my college .i cannot give you the complete program but the underneath can give u the nudge your looking for. [code] #include<iostream> using namespace std; struct student { char name[10]; int m1,m2,m3; float avg; void findavg() { avg = (m1+m2+m3)/3; } void disp … | |
Re: i think there is more to observe than to explain in here . i guess it would be prudent if you could run the underneath code and observe the output , it would be crystal clear . The code does the same job : [code] #include<iostream> using namespace std; int … | |
Re: well at first place ur problem is not a 2d matrix .infact its multi dimensional .. the following algo might help u a bit. 1. u will have to accept the rows and coloumns and dynamicallyy create an array.for both of yours a n b matrix. 2. as you will … | |
Re: well i do know something about face recognition , but i am pretty sure its not using neural networks, it was implemented with the concept of mathematics commonly know as eigen values n vectors .well at the first place u must know neural networks in depth to do that and … | |
Re: well at the first place i dont undstand why u need pointers for doing this , apart from the string (which u need pointer ) well as far as i have guessed u need to print the length of an array. [code] void length(char *st1[],int *i) { * i=strlen(*st1); cout<<endl<<"length … | |
Re: seems like you haven't even tried to solve a problem . we are not here to do your homework. | |
Re: yeah finally got it ... i have checked it (but not rigorously ) and its working . [code] public class NewClass { public static void main (String [] args) { String str1 = new String("madame"); int l,l1; boolean b = true ; char c1,c2; l1 = l = str1.length(); //l1 … | |
Re: [code] while(ordnum != 99999); [/code] if you put a semi colon at the end of while loop that means the loop doesnt have ne statements incorporated in them . | |
Re: well to split the number is very easy task. firtly you divide the number by 10 . and then myltiply the number by 10. (you will not get the same number since you are using int data type) [code] int x = 85; int y = x/10; //here value of … | |
Re: at the line number 57 of ur s or where ever the operation on array is happening (usually at the iterations ) . write a print array function and pass the array to the function . thus after each operation the array manipulations will be displayed , thus enlightening the … | |
Re: [quote] search for records in a struct. [/quote] well you have vaguely mentioned the problem.please tell the various data members in structure , the one whos content is unique (like roll no , employee id etc ) for all objects of struct could be easy to use as the search … | |
Re: well in ur java program u will have to write the following [code] /* <applet code = "filename" height = 300 width = 300 > </applet code> */ [/code] it should be written after the packages you import (i usually write at that position ). you can change height and … | |
Re: [quote] Hello, I have a question, when does a global variable get destructed? [/quote] well i guess when the program terminates , the global variable is freed by the OS . | |
Re: all you can do it to solve using a recursive manner [code] int fact(int n) { if(n==1) return 1; else return (n*fact(n-1)); } [/code] well this solves the major issue . now all u have to do is to fit the bits of code and put them together . | |
Re: in your code at the first place use [B]void accept()[/B] and [B]void display ()[/B] these two functions are not returning any integer values so why use int data type for them . [code] #include<iostream.h> using namespace std; class furniture { protected: float width, height; char color[10]; }; class bookshelf : … | |
Re: Well the best book as far as i have know is [B][I][U]Assembly language step by step - jeff duntemann[/U][/I][/B] he teaches you from the scratch. well after reading the whole book if u still want to develop more insight into it , then i guess u can go in for … | |
Re: [quote] I am having a lot of trouble trying to get the toUpperCase method working. I have basically put a String of text into a character array and [B][U]I want to convert a certain character in a certain place in the String to uppercase[/U][/B]. [/quote] well i doubt that u … | |
Re: well at first place i would like you to do the problem from the easy level . by this i mean its better to first just accept the numbers and then do the job you want to do and then add ne amount of sophistication you want to add. | |
Re: Well in computer architectures , the newer versions have new technology appended to the older ones . so if ur programming 8086 on an intel core 2 duo processor , it would still work (but the vice - verse will not ) , its just the size of the registers … | |
Re: well why dont you try tasm (mostly doesnt disappoint ) . besides why dont u try the following code [code] .model small .stack .data str db "Welcome to assembly $" .code mov ax , @data mov ds , ax ; gets data to data segment lea dx , str ; … | |
Re: [QUOTE=MoOou;839339]I have a question I did not understand if anyone of you understood it please explain to me [B]suppose that m and n are integers and m is nonzero. Recall that m is called a divisor of n if n=mt for some integer t; that is, when m divides n, … | |
Re: [quote] What are inline functions? Functions that the compiler knows to optimize. I think most compiler usually figure out what to inline by themselves these days. [/quote] i would like to append a little more information . first of this terminology is very much used for functions in classes . … | |
Re: well in class the data members and functions are taken in as private by default by the compiler itself , unless u explicit mention that. |
The End.