199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for forjustincase

ok here's what i am trying to do. i ask user for a value or just assign a value my self for example int a=150; now i want the output like this: 1 5 0 so is this possible?? please use simple programming i guess it can be done with …

Member Avatar for JamesCherrill
0
262
Member Avatar for hwoarang69

public class j_01_FLOW_06 extends JApplet implements ActionListener { //Choice shoplist = new Choice(); //ButtonGroup bg_group = new ButtonGroup(); CheckboxGroup cg_group = new CheckboxGroup(); JCheckBox cb_i1 = new JCheckBox("fafa"); JCheckBox cb_2 = new JCheckBox("wfw"); JCheckBox cb_3 = new JCheckBox("Computer"); String s_value[]={"white sox","red sox","mets","cordianls","blue jays"}; JList l_list = new JList(s_value); Container c; …

Member Avatar for hwoarang69
0
242
Member Avatar for hwoarang69

public class J_01_FLOW_08 extends JApplet implements ActionListener { String s_value[]={"white sox","red sox","mets","cordianls","blue jays"}; JList l_list = new JList(s_value); JLabel l_label = new JLabel(); Container c; FlowLayout flow = new FlowLayout(); public void init() { c = getContentPane(); c.setLayout(flow); c.add(l_list); c.add(b); l_list.addActionListener(this); } public void actionPerformed(ActionEvent e) { String pick = …

Member Avatar for JamesCherrill
0
166
Member Avatar for eman neercs

I'm trying to cleanse a db field which stores UK postcodes. Postcodes can be 7 or 8 characters long but they will always have a space character in the 4th position from the end. The last 3 will be 1 digit plus 2 letters. Customers on entering their address will …

Member Avatar for diafol
0
217
Member Avatar for MWEB

Hallo everyone! I've a question about jQuery load function .So I have the following page .. I have to load this page : https://www.mann-hummel.com/online-catalog/EU/rum/vehicle Is that code correct? <html> <title>Load function</title> <head> <script src="http://www.filtreautomobile.ro/core/jquery-latest.js "></script> <script src="http://www.filtreautomobile.ro/core/function-demos-script.js"></script> <script type="text/javascript"> var JQFUNCS = { runFunc: { "load": { run: function(id) { …

Member Avatar for MWEB
0
142
Member Avatar for hwoarang69

so i now awt is the old version. which is Applet swing is the new version which is JApplet. code at bottom, is it normal to mix awt and swing? for ex i am using continer which is awt. and let say i dont want to mix awt with swing …

Member Avatar for hwoarang69
0
242
Member Avatar for CaptainNick

I'm pretty nee to all this stuff, I have no problems reading from the database but writing new records and updating fields etc is proving to be quite difficult. The following code is just meant to create a new record in a table, I started the field count at [2] …

Member Avatar for segal87
0
2K
Member Avatar for Gaving30

Hi, I am having some trouble, i am trying to create a site just to learn ASP.NET c#. I am stuck though trying to get values from my database, i want to say if the "customer" is logged in that i can display his address details some textboxs. Similar to …

Member Avatar for Gaving30
0
124
Member Avatar for TheQuestor

Imports System.IO Imports System.Net.Sockets Imports System.Text Imports System.Net.Security Public Class Form1 Dim PopHost As String = "my mail server" Dim UserName As String = "my user name" Dim Password As String = "my password" Dim PortNm As Integer = "110" Dim POP3 As New TcpClient Dim Read_Stream As StreamReader Dim …

Member Avatar for TheQuestor
0
503
Member Avatar for SeanKann

I'd like to search this before asking a question but I'm not sure exactly what to search for. Posting for help is always a last resort for me. What I'd like to find is I think it's called a loop? or foreach? I think.. What I want to do is …

Member Avatar for LastMitch
0
248
Member Avatar for daino

Would anyone know what the PNG Include directory variable should be for CMAKE. I can't seem to find a Cmake module to search for PNG in the program which depends on LIBPNG (unlike all it's other dependencies). I've been using PNG_INCLUDE_DIR but CMAKE doesn't seem to recognise it? thanks.

Member Avatar for daino
0
9K
Member Avatar for bdl365

i need to write a program that ouputs any five positive integers to the screen? for (int i = 1; i <= 5; i++) cout << rand () // what goes here? usually when there's a range (lets say any 3 digit number) i usually do it like this cout …

Member Avatar for markaburlingame
0
88
Member Avatar for <M/>

I wrote a php email that sends me an email whenever a web form has been submitted. Good thing is that I recieve the email, but bad thing is that I get multiple emails (3x)... one is a duplicate of the table I receieve and another just shows the HTML …

Member Avatar for JorgeM
0
117
Member Avatar for Goto_4.0

I could use some help with ideas for test values on a pseudocode project for my IT class. I do not want answers only assistance Thanks

Member Avatar for Goto_4.0
0
99
Member Avatar for nabzlfc

Hey Guys, Firstly like to say this is a great forum and has helped me a great deal in regards to learling a bit about python! But I have two programs which I require help with if possible :( **Program 1 -** *To search a text file for a user …

Member Avatar for nabzlfc
0
108
Member Avatar for mtm6042

I am having trouble finishing this code for an assignment i have due. I have to create a code that (depending on what the user picks) sorts the numbers in ascending or decending order using an array with the funcion in the code. Any help would be greatly appriciated. #include …

Member Avatar for markaburlingame
0
158
Member Avatar for leesin

I want the program can do that for me. When I enter the name of file in the same folder of .exe, the program will scan the file data and print it out the data in order. However, i do not know how to scan the data in the file …

Member Avatar for Ancient Dragon
0
152
Member Avatar for stephaniec

Please help me with following problem (I am struggling in a class that I really shouldn't have taken, and I have absolutely no idea where to start, or how to continue with it): Write a program that can be used to assign seats for a commercial airplane. The airplane has …

Member Avatar for Ancient Dragon
0
347
Member Avatar for Mgundo

iam coding a program to store textbox data into an array, iam using bounds inorder not to erase the previous data. and it is saying it needs an end of statement. Please help. Thanks. This is the code: ReDim Preserve strArrMonth (LBound (strArrMonth)) to UBound(strArrMonth)+1) strArrMonth (UBound(strArrMonth)) = textBox.Text

Member Avatar for Nutster
0
126
Member Avatar for caswimmer2011

Hi, I am making a program to open the application TextEdit on a mac (not a specific file, just open the program). I have been researching it, but have not come across much help. I have seen that I should use Runtime or Desktop classes, but i'm not sure which …

Member Avatar for caswimmer2011
0
331
Member Avatar for Fedhell

IM A COMPLETE TOOL PLEASE IGNORE / DELETE THIS POST Hello everybody, im currently trying to learn 3d game development (ive developed 2d games in the past, nothing this complex, i am a third year programming student). Ive been working on this project in my spare time for the past …

0
132
Member Avatar for Seni0RRunn3r

What's up guys? I have this question....I'm trying to extract a number from a stream after I extract a charachter but after charachter it displays ASCII value, not the actual number: cin >> ch; num1 = cin.peek(); cin.ignore(80, '\n'); cout << ch << num1;

Member Avatar for Seni0RRunn3r
0
2K
Member Avatar for mahemaa.iyer

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { int c=0; String u1=request.getParameter("u1"); String e1=request.getParameter("e1"); String user=request.getParameter("user1"); request.setAttribute("u1",u1); request.setAttribute("e1",e1); request.setAttribute("user", user); out.println("welcOme"); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con =DriverManager.getConnection("Jdbc:Odbc:db5"); String str = "select * from Table1 where email=?"; out.println("welcOme"); PreparedStatement statement = con.prepareStatement(str); statement.setString(1,user); ResultSet …

0
152
Member Avatar for Magda6347

I've been trying to do this asteriks triangle with nested loop for days and many hours and still no luck. Im using visual studio 2010 and I've been searching the web for clues and everytime I use the cout, anything iostream, const char and more it always fails I'm not …

Member Avatar for Ancient Dragon
0
239
Member Avatar for katsmiley

I have written one small program to check whether particular bit is set or not. But not getting proper value when i check for upper nibble. #define check(var,pos) ((var)&(1<<pos)) void main() { int var=30;// in binary 0011 0000 that is its 4th and 5th bits are set; int bit; printf("enter …

Member Avatar for katsmiley
0
643
Member Avatar for Enders_Game

Pretty self explanatory code. Why doesn't it work! #include <stdio.h> int main() { __asm__("number dw 0"); // declare number? printf("%d",number); __asm__("mov %eax,number" "inc %eax" "mov number,%eax"); printf("%d",number); return 0; } cc ex1.c -o ex1 ex1.c: In function ‘main’: ex1.c:22:17: error: ‘number’ undeclared (first use in this function) ex1.c:22:17: note: each …

Member Avatar for Enders_Game
0
290
Member Avatar for vishalonne

Hi Everybody I am trying to create a template class here is the code I trying to just add and multiply 2 number. But I am not able to do so using template class. class calc { public: template <class T> T multiply(T x, T y); T add(T x, T …

Member Avatar for mike_2000_17
0
213
Member Avatar for ddanielsmith

Here's my index.php page: <?php require 'connect.php'; ?> <html> <body> <form action="action.php" method="post"> Username: <input type="text" name="uname"> Password: <input type="password" name="pword"> <input type="submit" name="submit1" /> </form> </body> </html> Here's my connect.php page: <?php $connect = mysql_connect("localhost", "root", ""); if (!$connect) { die ('Could not connect: ' . mysql_error ()); } …

Member Avatar for klemme
0
133
Member Avatar for Ismail Issa

Hey guys. i am new to c# and i was wondering if you could give me a hand. it is about sets.So far i have 3 textboxes,one for set a one for b and another for result.i also have 3 buttons one for union one for difference,element found in a …

Member Avatar for ddanbe
0
116
Member Avatar for lkallas

Hello! This is my first post to this forum, so I'm kind of losing my virginity right now I am also new in VB. I hope that somebody would help me! Ok, I have a problem with a database. I want to make a program which has one input textbox, …

Member Avatar for RobCr
0
156
Member Avatar for kendaop

Hi everyone. I'm teaching myself Android and it's been nothing but trouble. I'm having difficulty even doing some of the simplest tasks. Anyways, I've created a login screen, and when the user presses "OK", I want to switch activities, but it's not working. Here're my Logcat erros: 10-26 10:24:23.779: E/Trace(952): …

Member Avatar for peter_budo
0
619
Member Avatar for vicky.parikh.1

hello, i am corrently making a desktop application which store the username and passwords from different account. now,i want to know that how can i fill this username and password in particular web site when i click on button. i have written the code for opening the web browser,when i …

Member Avatar for stultuske
0
442
Member Avatar for SCass2010

Hi all, I was looking to make an android app that gets data from a C# wcf server - at the minute I can pull some basic data and they are communicating - however what is the best way to create an app like this? I know that networking operations …

Member Avatar for peter_budo
0
104
Member Avatar for klemme

I get an error when i try to execute this PS: $ADJUST = "UPDATE modul_galleri SET pos = pos - 1 WHERE pos = ?"; $ADJUST_PREP = mysqli_stmt_prepare($connection, $ADJUST); $ADJUST_PREP = mysqli_stmt_bind_param($ADJUST_PREP, "i", $pos_op); $pos_op = $_GET['pos']; $pos_op = $pos_op + 1; mysqli_stmt_execute($ADJUST_PREP) or die(mysqli_stmt_error($ADJUST_PREP)); mysqli_stmt_free_result($ADJUST_PREP); mysqli_stmt_close($ADJUST_PREP); The error: Warning: …

Member Avatar for klemme
0
2K
Member Avatar for ntggl19

hello everyone i'm new ic and i have a problem on structs, on the very simple i want to create a struct with one int and a char table 3 potisions,this is my code #include <stdio.h> #include <string.h> #include <conio.h> struct domi { int code; char name[3]; }; main() { …

Member Avatar for ntggl19
0
202
Member Avatar for Dilah J

'Inline Code Example HereHello i'm having this error message when adding to multiple table: '"The DataAdapter.SelectCommand property needs to be initialized." 'I need to have my data saved into both table(tblStudentInfo, tblPayment) when btnFinish clicked. Please 'help, i'm working on this for days and haven't had any luck. 'For reference …

Member Avatar for Dilah J
0
1K
Member Avatar for ddanielsmith

This is my index.php page: <html> <body> <form action="action.php" method="post"> Username: <input type="text" name"username"><br /> Password: <input type="password" name="password"> <input type="submit" name="submit" /> </form> </body> </html> This is my action.php page: <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("users", $con); mysql_query("INSERT INTO userlogin …

Member Avatar for cereal
0
193
Member Avatar for raghujosh

I have a page which does an AJAX call and loads an entire page. The page that gets loaded has some Javascript. The javascript works on page by itself when loaded, but when its gets loaded by AJAX, the Javascript does not work. I dont know what I am missing. …

Member Avatar for MMSWEBSD
0
5K
Member Avatar for bettybarnes

Hello, I'd like to ask if you know how to keep my simple stopwatch timer running even when I press the back button to go back to the previous activity. How can I achieve this? Thanks for your help in advance.

Member Avatar for BigPaw
0
92
Member Avatar for abhishekbalaji

I am just beginning to learn pointers and I have a question regarding accessing the values using the address. Suppose we have an array of say 10 elements and I begin to access all the elements starting from the 10th element, and go on untill i access the 0th element... …

Member Avatar for MandrewP
0
131
Member Avatar for Wire.Crisis

Hello all. I am very excited to have found this place in that I might better my very shoddy coding skills. I am trying to learn Python with a couple of books and some ideas for programs. I am trying to figure out a matter of what I think is …

Member Avatar for Lardmeister
0
409
Member Avatar for pbracing33b

I have a program that is suppose to find the percentage of occupied rooms in the hotel. I have most of my program running, but when I try to typecast my percentage the percentage isn't coming out right and I am not sure as to why. I have set a …

Member Avatar for Ancient Dragon
0
111
Member Avatar for ranam

hi , i have a 3 columns with content and can be sorted and now i want a small symbol on them when that column is sorted like if column one is sorted then the symbol should be on 1 similarly for rest, And thank you very much for ancient …

Member Avatar for Ancient Dragon
0
135
Member Avatar for coroll

Hi all, I'm developing a simple RMI chat server. Im getting following exception when i execute Client. Server works well. java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) at sun.rmi.transport.Transport$1.run(Transport.java:177) at sun.rmi.transport.Transport$1.run(Transport.java:174) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:173) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) …

Member Avatar for JamesCherrill
0
289
Member Avatar for triumphost

Ok I know the difference between delete and delete[] BUT this question just all of a sudden popped in my head since "NOTHING" happens when I use delete[] for all purposes. Now I know when to use one or the other but it still for some odd reason bothers me …

Member Avatar for mitrmkar
0
180
Member Avatar for omgnametaken

Hey guys. I have two questions about my code(which has no errors but isnt giving the output i want)...Is it possible to have an if statement in my 3rd constructor? Also why is my output giving the filepath instead of outputting calcutations? Thanks for having a look public class order …

Member Avatar for omgnametaken
0
115
Member Avatar for nitin1

hello, Can anyone please tell me the most efficient know till date so as to find the prime numbers up to 10^8 or higher. I am using sieve and using odd number optimization with it also. but it is not too much effiecent which i want. Can you please any …

Member Avatar for Adak
0
112
Member Avatar for ddanielsmith

Here's the main index page: <html> <body> <form action="action.php" method="post"> Name: <input type="text" name="fname"> Age: <input type="text" name="age"> <input type="submit" name="mybutton" /> </form> </body> </html> Here's the action page: <?php $mycar=''; echo "$mycar"; ?> I left the variable $mycar empty because i'm trying to assign it's value as my forms …

Member Avatar for AndreRet
0
117
Member Avatar for Kniggles

HI, how do i change tis code so when the php is done it gos to page running.php insted of the " echo "1 record added"; " line ? <?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $sql="INSERT INTO Persons (FirstName, LastName, …

Member Avatar for AndreRet
0
105
Member Avatar for soumyadityac

I cant get this program working. Cant really sort out where i am wrong. The program works fine without the save/load object feature. Please help!! import java.io.*; class Account { String name ,accno; double bal; void withdraw(double amt) { System.out.print("Processing"); for(double pr = 0; pr<500000000; pr++); System.out.print("."); for(double pr = …

Member Avatar for JamesCherrill
0
146

The End.