125 Posted Topics
Re: Great problem! :D but I don't see any effort here. Where is your code? | |
Re: there is different ways to solve the problem. you can store the value in a static variable if you have only one user at a time (which is not the case i believe), or you can directly access the variables of object [hint: every user is an object. login informations, … | |
Re: it is always good to use diff classes in java... datz the whole point of OO programming... i don't know y u r trying to put them together. n wat classes do u want to combine? watz the approach u have made? show us some of ur work so that … | |
Re: I am not clear about the problem yet. But seems like you did not declare any class. In java, almost e'thing is an object. So in order to make your function work, you have to put it inside an object. sample solution can be: [code] public class MyClassName { public … | |
Re: Hey! Obviously doable. You should try Java Media Framework (JMF). They have a lot of samples. This is a complete solution for sound. Link: [url]http://java.sun.com/products/java-media/jmf/[/url] | |
Hello, I usually don't complain too much. But this time I am getting mad. I just wrote a linked list, where 1. If the value was not present before in the list, it will be added. In this case, there is a capacity. If the new value increases the list … | |
Re: awww! big guy! try with dell's customer service. | |
Re: aha! for php thr r some hosting service...... or u can try this [url]http://www.free-webhosts.com/webhosting-01.php[/url] ...... here u ll find a bunch of free web hosting companies | |
Re: boot from cd.... n run chkdisk or if ur compaq have any tool to check hard disk's condition...... bcoz some times, the hd is fine, but the rpm rates becomes too low to run the pc..... check the rpm, any bad sector. | |
Re: if u have to include i after all the calculations, the ans. will be some thing like a+ib, whr a and b are two numbers..... as example 2+3i or 4-7i ....... n ans.s shud look like this. | |
Re: besides, u can write a test file to implement the functions one by one..... thus, u can understand which function is not working actually..... good luck! | |
Re: we do binary calculation on following manner: [QUOTE] [CODE]0 1 0 . 1 0 1 0*2^0 1*2^(-3) 0 1/8 (.125) 1*2^1 0*2^(-2) 2 0 0*2^2 1*2^(-1) 0 1/2 (.5) ---------------------------------------------------------------- (Adding all) 2. 625[/CODE] [/QUOTE] read carefully, then read salem's posting..... i hope u ll get ur ans. :).... cheers! | |
Re: yah.... using array is good idea for beginners..... n don't forget to subtract 1 from the total element number before finding the avg.... :P .... as i used to do such mistakes a lot! *** after finishing ur coding, ask if u r still in any trouble! | |
Re: or might be a good job in any institutions or in uni, as prof or research....... so cheers! :) | |
Re: very simple u r calling char m_f_name[30] inside ur remove member function..... n u r not returning anything to the main function..... so, watever is done inside the remove function doesn't link to the main function.... beside, in every function u r doing wrong work..... u r not giving anything, … | |
Re: [QUOTE=Tiffiney_v24][code]#include "stdafx.h" #include <iostream> using namespace std; // class with identifiers and functions class real { private: double n[10],s; // declarations int i; double avg; public: real() { s=0; } void read() { cout<<"Please Enter 10 Numbers"<<endl; for (i=0;i<10;i++) { cout<<"You have Entered Number:"; cin>>n[i]; } }; void print() { … | |
Re: u can use debugging tool or watch function of ur compiler for better understanding wat u made wrong..... n the thing is i have run ur program.... it seems like it z working fine.... okay for overdraw: [code] if(fwithamount>bal) { printf("\nYour new balance is $%.2f\n",bal-fwithamount-35); bal=bal-fwithamount-35; } else { printf("\nYour … | |
Re: ok [QUOTE]string text = "the Dog At5674 654 Mypaper";[/QUOTE] instead write [QUOTE]char text[max_lim]="the Dog At5674 654 Mypaper";[/QUOTE] don't forget to declare the value of the constant max_lim then instead of the for loop u used, try [QUOTE] int count=1 //assuming u r starting with first word for(i=1; text[i]!='\0' ;i++) { … | |
| |
Re: check this: [QUOTE]int _tmain(int argc, _TCHAR* argv[]); { { class real [/QUOTE] try without these lines..... y r u using int _tmain(int argc, _TCHAR* argv[]); for? and check brackets on the top part! n which compiler u r using? | |
Re: sandra, i agree with narue...... at first u have to help urself.... try to solve the problems..... wish ur good luck with dat...... if u face problem after ur 3 hrs trying on any single issue, then plz post ur code here.... thank you :) | |
Re: and u can use stricmp() instead of strcmp() to ignore upper case n lower case ..... actually this is not good way to compare string sizes....... bcoz: [QUOTE]int strcmp (const char str1[], const char str2[]);[/QUOTE] compares str1 and str2 if they have same character. try [QUOTE]int strlen (const char str[]);[/QUOTE] … | |
Re: don't worry, we might be worse than u :P...... come on, we don't know u personally.... n here u r trying to learn...... no one will laugh at u.... e'one is very nice here | |
Re: if (isEmpty(s)) // if stack is empty, cannot remove data { cout << "Stack underflow"<<endl; exit(1); //terminate the program } You can write: if (isEmpty(s)) // if stack is empty, cannot remove data { throw invalid_argument("Stack Underflow"); } same in push(), top() and other functions. then the main() should be: … | |
Re: [QUOTE]do { c = fgetc (stdin); tmp->element = c; tmp->edge = new Nodec; tmp = tmp->edge; } while (c != '\n');[/QUOTE] Here, the loop is running although the line is finished..... so better, if u use EOF or only while loop. |
The End.