199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zarbhebz_1012

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

Member Avatar for WaltP
0
140
Member Avatar for abelingaw

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

Member Avatar for WaltP
0
83
Member Avatar for ellenski

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 …

Member Avatar for zizuno
0
164
Member Avatar for junioryz

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 …

Member Avatar for Mitja Bonca
0
2K
Member Avatar for AnonymousX

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

Member Avatar for chrjs
0
349
Member Avatar for chetanbasuray

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 …

Member Avatar for chetanbasuray
0
403
Member Avatar for stebentje

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 …

Member Avatar for HemantPHP
0
104
Member Avatar for tcollins412

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

Member Avatar for lyrico
0
120
Member Avatar for Shanti C

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 …

Member Avatar for Shanti C
0
235
Member Avatar for alemojarro

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 …

Member Avatar for alemojarro
0
201
Member Avatar for SuPrAiCeR69

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 …

Member Avatar for HemantPHP
0
200
Member Avatar for Adami

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 …

Member Avatar for Ancient Dragon
0
171
Member Avatar for ztini

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 …

Member Avatar for ztini
0
187
Member Avatar for ankurmawanda

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 …

Member Avatar for ankurmawanda
0
179
Member Avatar for lexusdominus

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 …

Member Avatar for lexusdominus
0
211
Member Avatar for DJSAN10

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?

Member Avatar for DJSAN10
0
136
Member Avatar for psathish2

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

Member Avatar for afroz khan
0
301
Member Avatar for 8mir

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

Member Avatar for 8mir
0
1K
Member Avatar for yamot47

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

Member Avatar for yamot47
0
72
Member Avatar for Mayank23

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.

Member Avatar for Mayank23
0
171
Member Avatar for lochnessmonster

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

Member Avatar for VernonDozier
0
147
Member Avatar for Nandomo

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.

Member Avatar for Nandomo
0
96
Member Avatar for MultipleMoney

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) { …

Member Avatar for MultipleMoney
0
1K
Member Avatar for dythanor

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 …

Member Avatar for dythanor
0
471
Member Avatar for dimasalang

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 …

Member Avatar for dimasalang
0
182
Member Avatar for Neversleepin

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

Member Avatar for Neversleepin
0
139
Member Avatar for fuston05

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 …

Member Avatar for fuston05
0
126
Member Avatar for itisnot_me

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

Member Avatar for itisnot_me
0
212
Member Avatar for juangalvez4

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

Member Avatar for pseudorandom21
0
137
Member Avatar for wirth.jason

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

Member Avatar for sneaker
0
111
Member Avatar for Prasanna Venkat

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 …

Member Avatar for pseudorandom21
0
186
Member Avatar for jemz

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 …

Member Avatar for jemz
0
190
Member Avatar for sciprog1

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 …

Member Avatar for Ezzaral
0
366
Member Avatar for fabricetoussain

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

Member Avatar for pseudorandom21
0
113
Member Avatar for bklynman01

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 …

Member Avatar for CodeWord
0
128
Member Avatar for GAME

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

Member Avatar for GAME
0
100
Member Avatar for L3gacy

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

Member Avatar for mike_2000_17
0
401
Member Avatar for jaydeebee84

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

Member Avatar for jaydeebee84
0
145
Member Avatar for chamnab

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.

Member Avatar for chrjs
0
108
Member Avatar for jrosh

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.

Member Avatar for peter_budo
0
109
Member Avatar for jt_murphree

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 …

Member Avatar for peter_budo
0
107
Member Avatar for juangalvez4

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 …

Member Avatar for juangalvez4
0
134
Member Avatar for ChrisHunter

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) { …

Member Avatar for lolafuertes
0
214
Member Avatar for Gobytza

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 …

Member Avatar for lolafuertes
0
130
Member Avatar for BobPawley

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 …

Member Avatar for lolafuertes
0
221
Member Avatar for LoveMyPadres

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 …

Member Avatar for LoveMyPadres
0
350
Member Avatar for keyroche

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 …

Member Avatar for sDJh
0
621
Member Avatar for canadiancoder

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 …

Member Avatar for canadiancoder
0
3K
Member Avatar for paullanesra

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 …

Member Avatar for EricIskhakov
0
143
Member Avatar for initialise

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 …

0
130

The End.