168 Posted Topics

Member Avatar for sara khan

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 …

Member Avatar for rahul8590
0
96
Member Avatar for rahul8590

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 …

Member Avatar for Dukane
0
137
Member Avatar for rahul8590

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.

Member Avatar for ryuslash
0
109
Member Avatar for rahul8590

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...?

Member Avatar for rahul8590
0
122
Member Avatar for rahul8590

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 …

Member Avatar for rahul8590
0
197
Member Avatar for rahul8590

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 ?

Member Avatar for Chaky
0
82
Member Avatar for rahul8590

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 …

Member Avatar for noelthefish
0
755
Member Avatar for danimal132

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 , …

Member Avatar for chrishea
0
114
Member Avatar for danimal132

[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 …

Member Avatar for rahul8590
0
76
Member Avatar for rahul8590

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 …

Member Avatar for rahul8590
0
139
Member Avatar for rahul8590

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 …

Member Avatar for pritaeas
0
96
Member Avatar for rahul8590

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 …

Member Avatar for peter_budo
0
107
Member Avatar for rahul8590

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 …

Member Avatar for shadwickman
0
162
Member Avatar for rahul8590

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" …

Member Avatar for telcontar
0
155
Member Avatar for anantwaykar

[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 …

Member Avatar for diafol
0
124
Member Avatar for rahul8590

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 …

Member Avatar for jcacquiescent27
0
110
Member Avatar for rahul8590

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 …

Member Avatar for rahul8590
0
163
Member Avatar for himgar

at the end of the code just write getch(); then you can only exit the output after pressing ne character.

Member Avatar for siddhant3s
0
327
Member Avatar for rahul8590

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 …

Member Avatar for krnekhelesh
0
144
Member Avatar for rahul8590

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 …

Member Avatar for rahul8590
0
139
Member Avatar for nakemaro

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 ..?

Member Avatar for nakemaro
0
201
Member Avatar for rahul8590

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 , …

Member Avatar for memnac
0
226
Member Avatar for rahul8590

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 …

Member Avatar for rm_daniweb
0
104
Member Avatar for rahul8590

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 …

Member Avatar for Salem
0
673
Member Avatar for pczafer

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; …

Member Avatar for tux4life
0
187
Member Avatar for frossie

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 …

Member Avatar for rahul8590
0
105
Member Avatar for rahul8590

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 …

Member Avatar for kvprajapati
0
115
Member Avatar for skisky

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 …

Member Avatar for Absaar
0
156
Member Avatar for LucyB

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 …

Member Avatar for rahul8590
0
111
Member Avatar for Prahaai

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 …

Member Avatar for rahul8590
0
148
Member Avatar for harrykokil

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 …

Member Avatar for ithelp
0
111
Member Avatar for sharensla

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 …

Member Avatar for JugglerDrummer
0
178
Member Avatar for camonchain

seems like you haven't even tried to solve a problem . we are not here to do your homework.

Member Avatar for jephthah
0
194
Member Avatar for king_786

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 …

Member Avatar for tpjava
0
167
Member Avatar for wuzj1988

[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 .

Member Avatar for wuzj1988
0
160
Member Avatar for gretty

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 …

Member Avatar for adam1122
0
98
Member Avatar for JainishP

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 …

Member Avatar for VernonDozier
0
108
Member Avatar for rudolph2004

[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 …

Member Avatar for rahul8590
0
84
Member Avatar for k2k

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 …

Member Avatar for k2k
0
169
Member Avatar for sciwizeh

[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 .

Member Avatar for ArkM
0
3K
Member Avatar for king_786

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 .

Member Avatar for tux4life
0
244
Member Avatar for kavithabhaskar

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 : …

Member Avatar for siddhant3s
0
149
Member Avatar for TheBeast32

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 …

Member Avatar for Narue
0
197
Member Avatar for rockin_rebel

[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 …

Member Avatar for rockin_rebel
0
3K
Member Avatar for alkeshtech

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.

Member Avatar for rahul8590
0
99
Member Avatar for massivefermion

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 …

Member Avatar for BestJewSinceJC
0
122
Member Avatar for Ronen444

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 ; …

Member Avatar for rahul8590
0
151
Member Avatar for MoOou

[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, …

Member Avatar for Lerner
0
291
Member Avatar for prabhu_kar

[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 . …

Member Avatar for tux4life
1
145
Member Avatar for edb500

well in class the data members and functions are taken in as private by default by the compiler itself , unless u explicit mention that.

Member Avatar for edb500
0
89

The End.