199,114 Archived Topics
Remove Filter ![]() | |
Hi im a c++ beginner and i'm doing a tic tac toe program hollywood squares style only with math questions. what im trying to do here is im trying to insert a timer such that the player only has 20 seconds to answer each question or he/she loses his/her turn.. … | |
I want to compute the difference of time values. The values are loaded from my database (which are captured via biometrics) into labels. Here's a screen shot: [ATTACH]19115[/ATTACH] And I would like also to separate the hour value and minutes then the computation. Any idea where I will start.? :) … | |
Here is what my page is suppose to look like. There are clickable tabs at the top namely: Home, About, Contact Us. When I click on the About tab for example, the content for the About would be displayed. However, the content for the Home tab is still there. I … | |
I have a text file with the following numbers: 1 2 3 4 5 6 How do I read each individual number into an array? It needs to move along each row so read in 1, 2 and then 3 into a array of 6 integers. Then move to the … | |
Well, i'm working on a text Editor. I'm still a little nooby with C++. I'm trying to create a Goto Line Command. Would someone give me an example of how to do it? Thanks :P | |
I'm trying to create a desktop based mailing software where one can attach files and then mail it to any mail address. I'm having 2 problems. 1. I cannot attach files which are greater than 2mb in size although I use my G-mail account to send a mail and g-mail … | |
Hello I'm using a form with a dropdown list. When the user select "Test1" in the dropdown then press the button "Submit" it has to send the data to [url]www.test1.com[/url]. When the user select "Test2" in the dropdown then press the button "Submit" it has to send the date to … | |
i have this code: [CODE]<?php session_start(); $id=$_SESSION['uid']; include "dbconnect.php"; $query = "SELECT FROM members WHERE id='$id'"; $result = mysql_query($query); $row = mysql_fetch_array($result); ?>[/CODE] and it says mysql_fetch_array is not a valid argument. help please | |
Hello All, My problem is, i have one database and application in web server, another application in local server which is having another database . But some tables are same in database server and in my local database. I want to update these particular tables from data base server into … | |
I am new to java, and have this assignment do when I have to count consonants and vowels among other thigs , and I already wrote a program that works. However, I feel that there is still room for improvement specifically in the vowel and consonant counts. Could you help … | |
How can I perform the following with this API? Form is setup in PHP for registered user to enter domain name On submit.. Check if domain is available > - If NO > output to XML > run the loop again in 5 minutes - If YES > output to … | |
Hello all, I have a problem with a function I wrote. I wrote a main() that takes from current library a *.c file (that the user gives by the argv[1]) and make a copy of itself but without the comments and saves it as *.c1, so after this operation we … | |
![]() | I'm having some fundamental issues with some basic abstraction. Here is the super class: [CODE] public abstract class Tile extends JLabel implements MouseListener { public Tile() { setIcon(new ImageIcon(getClass().getResource("images/blank.gif"))); } @Override public void mousePressed(MouseEvent e) { System.out.println("clicked"); switch(e.getModifiers()) { case InputEvent.BUTTON1_MASK: leftClick(); break; case InputEvent.BUTTON2_MASK: rightClick(); break; } } public … ![]() |
am trying to connect a jsp page to a postgress database i have created a jdbcconnects.java file and compiled it with jsp_api.jar from my apache..../lib directory i have placed the class file in root/WEB-INF/classes folder the code of my class file is [CODE] import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public … | |
Hey guys. Im writing a console based application which i want to convert to a windowed application. however, i still want the user to be able to type in input and for my program to be able to output in a console based style, i'd just like the option to … | |
Are constants, defined by using the keyword const , external linkage or internal linkage? Can constants be modified using pointers? What about constants defined using by #define? | |
hi i am sathish. i am asp.net beginner i want learn grid view in asp.net using C# . i donot how to do. so any one know plz send me step by step.. thank you | |
I have this code : for downloading image from the web [CODE]PictureBox1.ImageLocation =""[/CODE] and i want to add Progress Bar if start download the image start the Progress Bar and when finished the download Progress Bar =100 | |
[CODE]while ($row = mysql_fetch_assoc($query)){ echo("<tr id='$a' bgcolor='B0C4DE'>"); $sr_num=$row['b_sr_num']; echo ('<td>'.$row['b_sr_num'].'</td>'); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); if($row['b_avail']>0) { if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page echo("<td>Available</td>"); }else echo("<td><INPUT TYPE=button id=show name=show[] value=add onClick=buttonPress('$sr_num','$a')></td>"); [/CODE] can you give me the code of or sample to use … | |
how can a user be able to type what ever he wants such as " i went to the park...", i tried to do it but with my string variable it only read the first word typed in, such as i in this case. please help. | |
[CODE]i understand int cars[23]; can be accessed using pointer notation such as... int cars[10]; int *carz; *(carz+1); // carz[1]; im curious as to what the equivalent pointer notation would be for a structure..for example struct car { int wheels; float gas; float engineHP; }; struct car cobalt; cout << cobalt.engineHP … | |
Next week I am going to begin learning about linked list, I know very little currently. Are there any well written explanations of linked list online? Or can someone explain the logic to me. Want to have a background before I start learning it from my professor. | |
Here is my code so far for my program: [CODE]#include<iostream> using namespace std; int main() { int number; int guess; char reply; srand (time(NULL)); number = rand() % 1000 + 1; do { do { cout << "Guess the Number" << endl; cin >> guess; if (guess > number) { … | |
The title explains most of it. at the point in the code where this frame gets created it immediately opens, closes, then segfaults, and the whole program dies. the program worked find before this frame was added and the only code using this frame from outside of it is the … | |
hey..i'm developing an application..something like a custom desktop..now what i want to do is to disable alt-tab, ctrl-alt-del etc . i tried to set the registry value of "CoolSwitch" to disable alt tab, but i get an error..i think i need to run my application as admin to write in … | |
Hi, here i just try to delete the content in text file between S and e letter. but i don't know to write the ReplaceAll() methode after this [CODE]String[] paras = Pattern.compile("^(S)(.*)(e)$").split(inputText);[/CODE] How could i use ReplaceAll() here? Thank you | |
I am working on a app at the moment, as practice mostly. But I have like 25 $vars that accumulate over the course of like 2 pages of forms gathering information. On the final page i use all these $vars to put together an estimate. My question is: Is there … | |
ok i think that i am missing something here but i not sure what. i have a function with a class that is supposed to take all the data make a query and then put into an array the data i would like to collect later function [CODE] function getDataLoop($strDbType, … | |
This week in class we are looking at functions and how to use them. This is the example we got during class: [CODE]#include <iostream> #include <string> using namespace std; //function prototype int getTotal(int,string); void verifySeasons (int&); int main() { string name; // name of player int totalGoals = 0; // … | |
I learned Python and understand the mechanics to write scripts with functions and classes, etc. Most of my scripts run via the interactive prompt but I've done a little GUI programming to create some menus and buttons. I don't understand how larger programs are put together on a high level. … | |
Hi friends, I am a final year Mechanical Student and I am doing my Final year project in C++. My project requires some complicated programming in C++.. Here are the details. Initially I need to create a random matrix. The user will give the no of rows and columns. For … | |
hello please help me how can i get the height of the tree?I really don't have idea how to get this can you help me please thank you in advance hoping for your positive response...here is my code [CODE] private Node root; public boolean isEmpty() { return root==null; } public … | |
Hello, I have a JFrame, inside which is a JPanel, in which I am drawing lines in the paintComponent() function at an interval of 1 second. The screen always freezes. How can I change the program below such that I can see the lines being drawn after every second? Thank … | |
[CODE] /* Fabrice Toussaint section N938 Feburary 1, 2011 Purspose of program is to locate centroid and find distance between all three points and centroid */ #include <iostream>// for cout and cin #include <cmath> // for sqrt () and pow (x,y) using namespace std; int main () { float distance1; … | |
I'm having trouble getting some data from a combobox. I have a series of comboboxes that populate as you make selections from the boxes. Each combobox is using data that is pulled from a SQL database into a dataset. This all works. When I get to the last box, I … | |
How would I get text from HTML on a website? This is all I know to get to it but its only the elements; webBrowserMain.Document.GetElementById("footer").Children GetElementsByTagName("ptz-footer") GetElementsByName("ptz_value") The ptz_value has the text I want to retrieve. Thanks... | |
I use Microsoft Visual Studio Professional on my Desktop PC, but my GTX 260 just failed and im dojng an RMA, so I started trying to program on my laptop. I am around 1/3 of the way through Ivor Hortons Beginning Visual C++, the book covers Native C++ and C++/CLI, … | |
Hi, right I'll try put this across quickly but basically at the moment I have AJAX posting to a separate PHP page and then getting the response which is echoed on that page which is then used on the original page to display. This works fine and is all good, … | |
HI Everyone ! Do anyone know how to split string ? Especially this one . Do anyone know funtion "__DATE__" , it show month/date/year. you know ,it is string so i want to separate it because i need month to make condition. | |
Please can anyone explain me how I can connect a mysql database with a j2me application. I would be great full if you can give me some code samples or tutorials. thank you. | |
I am new to android development and I have been asked to create a do not call application. Essentially what this app will do is allow the user to store data on the device and then submit it to the do not call database. I have all the UIs created … | |
First of all, hi everyone! Im a C++ newbie and i'd like to get a good grasp of the concepts soon. I'm currently working on this [CODE]#include <iostream> using namespace std; int main() { int i, j, lines; cout << "This Program creates Christmas Trees." << endl; do { cout … | |
Hi I'm pritty new to C# I'm having trouble with items repeating in a combo box This method gets the values from my table and stores it in the list of strings which it does fine . . . I think. [CODE]public class EditStates { public List<string> getStates(CEditStates ced) { … | |
Hi,I am new in c# development and I have some problems in my smart device application.I have 3 forms: Orders, Add_orders, Add_client. Orders is the mainform. What I want is that when I click 'Save' on Add_orders form, to navigate back to Orders form but not to close the Add_orders … | |
Hi I am attempting to insert into a remote PostgreSqL database as a novice. I am using C# 2008 Express, on Windows 7. I have made a connection through a connection string which works well. So far I have this code placed after the connection code. string insertString = @"Insert … | |
Hi I'm using pysnmp 4.1.1.4a (yes, I know there's a newer version but it has the same behavior) and py2exe. When I execute a pysnmp oneliner, like this: [CODE] errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().nextCmd( cmdgen.CommunityData('my-agent', 'public', 0), cmdgen.UdpTransportTarget((self.IPaddress, self.Port)), self.keydict[ key ][0] [/CODE] I get this output: [CODE] File … | |
Hello all! I am making a web application that allows someone to create a website through the various steps of the app. The system is based on templates, that a user picks and then chooses the content to go into it. I have all the info stored in a session … | |
Hi Folks, I've been looking around all day and I've tried numerous suggestions, but to no avail. I've got a struct in C# defined as: [code] [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct GenericTrackRecord<T> { public Int32 hasValue; public T value; } [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct OTXFixDetailsStruct { public … | |
hi i am having a problem with a php script. i have 3 files index.php, home.html.php, form.html.php. home.html.php is working fine, if has a form that is submitting fine but when it submits i get a problem. maybe someone can help me out please i would be grateful as i … | |
Hi All, I am writing a client server program that has quite a few GUI's in it. Basically, everything is working except for the problem I'm encountering. Well, obviously :P I am not currently running my server program in order to simulate what would happen to the client if the … |
The End.