611 Posted Topics

Member Avatar for Inshu
Member Avatar for NardCake

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 …

Member Avatar for JamesCherrill
0
231
Member Avatar for dragonshadow001

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?

Member Avatar for richieking
0
252
Member Avatar for vishu.bhavsar

use layout to restrict objects to place and area you want. As i can see, your JTable need a size set also.

Member Avatar for mKorbel
0
1K
Member Avatar for sarafadeenl1

what is your level in c++? Do you need to store something permanent ? Do you have experience with database?

Member Avatar for sarafadeenl1
-1
203
Member Avatar for BigPaw
Member Avatar for taylor.mitchell.353

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 …

Member Avatar for JamesCherrill
0
158
Member Avatar for dgipling
Member Avatar for richieking
0
241
Member Avatar for mbh1992

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.

Member Avatar for richieking
0
138
Member Avatar for Mas49er
Member Avatar for richieking
0
241
Member Avatar for tuttu007

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 …

Member Avatar for richieking
0
425
Member Avatar for niths
Member Avatar for waluigi

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

Member Avatar for sayantanbagchi
0
6K
Member Avatar for apanimesh061

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.

Member Avatar for ~s.o.s~
0
113
Member Avatar for raviaaaa

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 …

Member Avatar for JamesCherrill
0
365
Member Avatar for sirlink99
Member Avatar for cvanithakpm
Member Avatar for sanket1512
Member Avatar for sanidon
Member Avatar for richieking
0
202
Member Avatar for codemonster
Member Avatar for roshan_iiita

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 …

Member Avatar for richieking
0
159
Member Avatar for turt2live
Member Avatar for richieking
0
648
Member Avatar for TrickyT
Member Avatar for anand01
Member Avatar for aanders5

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.

Member Avatar for aanders5
0
192
Member Avatar for TIM_M_91
Member Avatar for hmartinez

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. :-)

Member Avatar for hmartinez
0
502
Member Avatar for bobanderson93

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 …

Member Avatar for richieking
0
136
Member Avatar for riahc3

reduce the setColor values to (0,0,619,419). Image may overlapse as the size are identical hence ot of bounds error. try that!

Member Avatar for riahc3
0
1K
Member Avatar for vinnyoodles

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 …

Member Avatar for cms271828
0
299
Member Avatar for Idestruction

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.

Member Avatar for L7Sqr
0
282
Member Avatar for TrustyTony

[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): """ …

Member Avatar for TrustyTony
0
2K
Member Avatar for poolet

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]

Member Avatar for WaltP
0
1K
Member Avatar for adrain91

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 …

Member Avatar for richieking
0
438
Member Avatar for Karlwakim

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 …

Member Avatar for Karlwakim
0
155
Member Avatar for Captain Neo
Member Avatar for guccimane

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 …

Member Avatar for LRRR
0
103
Member Avatar for KingAudio
Member Avatar for richieking
0
136
Member Avatar for Karlwakim

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.

Member Avatar for LRRR
0
81
Member Avatar for mncoc
Member Avatar for see_bharath

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]

Member Avatar for Schol-R-LEA
1
307
Member Avatar for Sars
Member Avatar for richieking
0
304
Member Avatar for omer620

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]

Member Avatar for omer620
0
193
Member Avatar for smurfy
Member Avatar for smurfy
0
147
Member Avatar for jefgreen

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

Member Avatar for jefgreen
0
199
Member Avatar for skylinedrifter

Why all these unnecessary includes???? at least string and iostream will do.

Member Avatar for richieking
0
149
Member Avatar for blaze423
Member Avatar for sofia85

Sofia, Can you please show some [COLOR="Green"]organized[/COLOR] data info.?? dealing with what you got shown here is virtually not possible.

Member Avatar for JoshuaBurleson
0
4K
Member Avatar for kaskoraja
Member Avatar for Bosterk

The End.