611 Posted Topics
Re: pretty useless until you give more codes to support that. sorry .. | |
Re: Which GUI are you working with? if its default swing, then you need JFileChooser to do that. Also you will need to know about actions that activates the right clicking. Put something there and we will assist you. We dont give codes here. We are not free code factory. We … | |
Re: Also you are using the standard laout manager with Swing. How do you want to see the app layout, can you draw or show us a pic or something how you want to see your layout so that we can assist you? | |
Re: use layout to restrict objects to place and area you want. As i can see, your JTable need a size set also. | |
Re: what is your level in c++? Do you need to store something permanent ? Do you have experience with database? | |
Re: you must readline then split the line by spaces, count splited data, then know how many data splitted, then insert into the corresponding variables. with this you will always know the amount of data needed to insert. Also why use substring if you can not determing the data. Use regular … | |
Re: And always main() must be int method not void as it returns a value. | |
Re: you need o produce more code than this as we cant help you without the entire code that makes sense. post full lenght of code. | |
Re: This is very simple to achieve however, you need to show some effort ok? | |
Re: I think he did not write this script himself because he coild have spoted that the error was due to zero info in the String array that he is trying to index. To make things simple for you,hard code your ip address and add a readin to your script to … | |
Re: Only flash or cgi script can help you my friend ;) | |
Re: change the 31-33line to this [code] // redirect to success page if($success){ // try this @header("location:success_page.php?name=$username");// Direct to a new page //echo "We've recived your contact information"; } [/code] then have a success.php to recieve the get variable . [code] $foo=$_GET['name']; echo "Thank you $foo<br/"; echo "You win the price"; … | |
Re: Also is the data supposed to be used often and saved for future checkups...? if the above is false, then keeping in array is the best idea cos it is only for a short period of time. | |
Re: There are 2 things that comes to mind.. 1. Did you code this yourself 2. If so , then why didnt you use a supported object like ListIterator of ArrayList which will be easy to manipulate? Also with the int and interger examples... line 40 and 85 is nt necessary … | |
Re: And so what is the current proble then :=) | |
Re: Have you guys forgotten about something?? The code tags!!??? | |
Re: You need to know how to use time. Every GUI got time that run. You need to bind the movement and speach with the time. Very simple. You must also know the length of the audio you want to use. You show give the same time for both animation and … | |
Re: Sometimes its more easier to do a prototype as NormR1 said. Nice you got it fix | |
Re: TrickyT show what you have done so far ok..? | |
Re: Well said James. Everything in java is object and though you may not see inside, but they are connected one way or another. JFrames,JButtoms etc.. all externds from the JComponent . from htc phone. | |
Re: please close the thread. | |
Re: Most of the IDE's may tell you the line where you got these errors. Also as stated by the errors, fixing it is just a simple thing. At least for now you know what the problem is. That is the begining of the solution. :-) | |
Re: try this. [CODE]#include <iostream> using namespace std; #define STACKSIZE 10 class stack { private: int arr[STACKSIZE+1]; int tos; public: stack(); void push(int x); int pop(); bool is_empty(); bool is_full(); int size(); void display(); }; stack::stack() { tos = 0; } void stack::push(int x) { if(!is_full()) arr[tos++] = x; else cout … | |
Re: reduce the setColor values to (0,0,619,419). Image may overlapse as the size are identical hence ot of bounds error. try that! | |
Re: For the body to follow.... you need a 2 dimentional array that consists of the points to use as a route. The array consists of cordinations x and y; your computer screen consists of the same dots(cordination) called pixels. That means the food for the snake must register on one … | |
Re: tip. You need to use a while loop to keep the programe runing to take all the input and write to disk by closing the file. That is you must have your file operation in a first while loop to reopen the file after every input/data recieved from the serial. | |
Re: [QUOTE=pyTony;1736650]Update with better style than this newbie did and changing the match to be similar to this better regular expression, which is little restricted version from [url]http://www.regular-expressions.info/email.html[/url] (no test.@web.com accepted) Here you see some examples that standard would pass: [url]http://en.wikipedia.org/wiki/Email_address#Valid_email_addresses[/url] [CODE]# -*- coding: latin1 -*- import re def validate_email(address): """ … | |
Re: very simple with stringstream. for example you want to use int from string and you dont know how to convert it. use this.[CODE] string int_in_string ; getline(cin, int_in_string); int int_from_string; stringstream(int_in_string) >> int_from_string ; cout << int_from_string; ## normal int [/CODE] | |
Re: And was there anythin special to include sys??? At least if you wanted a nice grib on the file operation. include os. also you could simply use ....[CODE] with open(filename,"w") as opfile: opfile.write(foo.decode('utf8') [/CODE] or use [code]with open(os.chmod(os.path.realpath(filename),0777),'w'):[/code] to get super control over the created file. in the end.... [CODE]import … | |
Re: but why bothering yourself about char for switch??? Use int which is very clean and really the best for switch. logic means less complications but efficient. [CODE] int asn; cin>>ans; switch(ans){ case 1: break; case 2: break; default: break; } [/CODE] very simple. why ASCII for a simple algo.? Why … | |
Re: can you please put your code into the code tags? | |
Re: Also to what AD said. You must always assign 0 to a pointer after you delete. So that you dont get a pointer hunging around with unknown memory. [CODE] bar *foo = new bar; foo->set_name("name"); foo->get_name(); delete foo; foo = 0; [/CODE] To release 100% the memory and secure the … | |
Re: declare [CODE]double x, y;[/CODE] and use. To handle the precisions. | |
Re: Because of this memory problem the creator of C++ came up with pointers and dynamic memory. Look into that if you need a memory management. | |
Re: instead of working on char.... in cpp there is a string. very flexible and you can easily do that. [CODE] string foo = "hello"; foo +=" world"; std::cout << foo; // out put hello world [/CODE] | |
Re: Put your code in the code tag first.At least make it readable. | |
Re: try this [CODE] #include <iostream> using namespace std; int main(int argc, char **argv) { string foo, bar; cout <<"Enter a word :\n"; getline(cin,foo); for(unsigned int ista=0;ista <foo.length();++ista){ bar += foo[ista]; cout <<bar<<endl; } return 0; } [/CODE] | |
Re: Can you show what you have already? Some code please..... | |
Re: [QUOTE=jefgreen;1714958]I want the user to enter a letter A through F, yes; however, I want A/a=0, B/b=1, etc. In the function main, I declared and initialized upper and lowercase letters, A-F, 0-5, as ints. As far as the rows go, just a regular old int is fine.[/QUOTE] do the type … | |
Re: Why all these unnecessary includes???? at least string and iostream will do. | |
| |
Re: Sofia, Can you please show some [COLOR="Green"]organized[/COLOR] data info.?? dealing with what you got shown here is virtually not possible. | |
Re: Do you have to delete only the first five lines ????? | |
Re: pyPdf is a simple as abc. it cant get cheaper than that! |
The End.