199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BlueDevil

Hello everyone,I'm having a problem with an exercise in C,I hope more experienced programmers will help me.I want to create a simple version of the game Tic-Tac-Toe.In my edition there will be a 3x3 matrix.The 2 players that will play the game will start to fill the matrix with the …

Member Avatar for abhimanipal
0
97
Member Avatar for lxXTaCoXxl

Okay so this has been bugging me for quite sometime. I thought if I skipped it and came back maybe I might figure it out but I guess not. The basic idea is to let the user generate their own content into a list box, text box, and the content …

Member Avatar for lxXTaCoXxl
0
130
Member Avatar for ThrasherK

I don't understand what I am doing wrong here. I am trying to quickly write this program so that I can use it to test a flowchart diagram that I made earlier. When the output comes up on the console "Enter a course name" and I put any input in …

Member Avatar for ThrasherK
0
171
Member Avatar for uditjindal

I want to update information i previously stored on a file but cannt do. My code is[CODE]//----------------------------- //--------------------------------"s"-Structure created-------------------- struct student { char regno[20]; //----------------------Pinfo var------------------ char name[50],gender[7],dob[20],otno[20],colg[50],branch[20],hno[10]; int rno; //----------------------Einfo var------------------ char doj[10]; float teage,twage; //----------------------Painfo var----------------- char fname[20],occ[50],ladd[100],cadd[100],ftno[20]; //----------------------Payinfo var---------------- char payj[200],dues[200],smoney[200],mode[20]; //----------------------Remarks var---------------- char remark[900]; //----------------------Marks var------------------ …

Member Avatar for abhimanipal
0
145
Member Avatar for drewpark88

Hey guys, quick question. I am new to Jquery and just need a bit of assistance. I want to create an image gallery with one div holding all of my thumbnails (.thumbs) and the second div (which would be to the right of the thumbnails) would be an enlarged image …

Member Avatar for drewpark88
0
274
Member Avatar for rockerjhr

[CODE]i need a function that checks in two linked lists are equal thi is what i have so far bool equal(list L1 , list L2 , int (*p_cmp_f)() ){ if( L1==NULL && L2==NULL) return TRUE; else if( L1==NULL || L2==NULL) return FALSE; else if( (*p_cmp_f)(L1->data,L2->data) == -1) return FALSE; else …

Member Avatar for rockerjhr
0
211
Member Avatar for eileenc87

Dear All, The problem I'm facing now is when I set my DateTimePicker format yyyy-MM-dd, when I put a date in that column, they will auto generate the time now. For example, i entered 2011-03-30 but they will save in database 2011-03-30 10:56:54 AM. Question here is: How can I …

Member Avatar for eileenc87
0
91
Member Avatar for ispeakbinary

I am learning c++ now and have encountered a problem in trying to create single digit addition, multiplication and subtraction math questions. The numbers used in the questions are randomly generated from 1 to 9 and when I try to print the answer for the corresponding question, I get a …

Member Avatar for prvnkmr194
0
200
Member Avatar for leo88

Hi, i had write the following code but it seems like gt exception, can help me check got what problem? Dictionary<string, double> sortList4 = new Dictionary<string, double>(); List<double> list = ISUPP.Items.OfType<double>().ToList(); double[] value1=list.ToArray(); int c = 0; foreach (string gk in Comset2.Items) { sortList4.Add(gk, value1[0]); c++; }

Member Avatar for leo88
0
141
Member Avatar for rookanga

I need to make an address book that doesnt use a database. It suppose to have First name Last name Birthday Telephone number Address (street) Address (city, state, zip) Email address All information shall be stored in a structure at run time The application should read and write to a …

Member Avatar for rookanga
0
293
Member Avatar for valestrom

So i'm making this periodic table kinda program here mainly outta boredom. But I came across a problem, when I type in the name for the element, the program just closes. Any ideas on how to get it to work properly. Here's my current code. [CODE]#include <iostream> #include <windows.h> #include …

Member Avatar for valestrom
0
153
Member Avatar for rockerjhr

[CODE]#include <stdio.h> #include <stdlib.h> #include "globals.h" #include "list.h" status write_int(generic_ptr p_n)){ printf(" %d " , *(int *)p_n ) ; return OK ; } int compare_int( generic_ptr x , generic_ptr y){ if( *(int*) x < *(int *)y ) return -1 ; if( *(int*) x > *(int *)y ) return 1 ; …

Member Avatar for rubberman
0
204
Member Avatar for ajayb

[CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * VideoStreamingform.java * * Created on 29 Mar, 2011, 7:01:42 PM */ package audivideotransmit; import javax.media.MediaLocator; import javax.swing.JOptionPane; /** * * @author ajay */ public class VideoStreamingform extends javax.swing.JFrame { …

Member Avatar for mcriscolo
0
120
Member Avatar for Khoanyneosr

[CODE]#define WIN32_LBAN_AND_MBAN #include <windows.h> LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASSEX windowClass; ZeroMemory(&windowClass, sizeof(WNDCLASSEX)); windowClass.cbSize = sizeof(WNDCLASSEX); windowClass.style = CS_HREDRAW | CS_VREDRAW; windowClass.lpfnWndProc = (WNDPROC)WindowProc; windowClass.hInstance = hInstance; windowClass.hCursor = LoadCursor(NULL, IDC_ARROW); windowClass.hbrBackground = (HBRUSH)COLOR_WINDOW; …

Member Avatar for Khoanyneosr
0
138
Member Avatar for sumprit

Hi, everyone i have a problem in displaying Jlabels and Icons in a single JPanel. I have used Gridlayout and tried to display the Icons and JLabels in the JPanel. But using GridLayout the JLabels and Icons get dispersed and not in proper order and also the icon get crop, …

Member Avatar for sumprit
0
174
Member Avatar for sbiren

[CODE]def main(): i=input() print(i+1)[/CODE] (I use PYTHON 3.2) Why i get an error converting message ?

Member Avatar for richieking
0
176
Member Avatar for SeePlusPlus2

I don't understand how it works. What are lines 19-33 doing exactly? Why did they do "arraySize = obj.arraySize;" ? [CODE]#include <iostream> #include <iomanip> using namespace std; class NumberArray { private: double *aPtr; int arraySize; public: NumberArray(NumberArray &); NumberArray(int size, double value); ~NumberArray() { if (arraySize > 0) delete [] …

Member Avatar for mike_2000_17
0
117
Member Avatar for Joshua Kidd

Hello all, I have this page that I made: [url]http://www.globalvirtualairlines.com/MyPages/web%20app.php[/url] and on the middle column called "Total Flights" and there are many 0's. I want to be able to change all the 0's to NONE. How would I do this? Can someone help? Thanks. :)

Member Avatar for Joshua Kidd
0
116
Member Avatar for maxxjr

(I did search for this, but didn't find exactly what I am looking for). I am working on a function that will generate a sine wave at a given frequency AND sampling rate. Something that will "fill a 10k sample buffer with a 1 kHz wave at a 44.1 kHz …

Member Avatar for gusano79
0
8K
Member Avatar for avmaza

Dear friends, I have created one form to search the data from the database. the form is having four text button to get input for search. if the search criteria matches, it will display the results on next page. But I want to print while giving the input data in …

Member Avatar for nomita
0
181
Member Avatar for teedoff

Ok back again! lol I can easily use the ListSort to sort a predefined list: [CODE] <cfset myList = ListSort("wango, tango, jango,lolo,alpha","TextNoCase","ASC")> <cfoutput>#myList#</cfoutput> [/CODE] Which results in a simple text in alphabetical order like so: alpha, jango, lolo, tango, wango What I WANT to do though is sort through a …

Member Avatar for teedoff
0
263
Member Avatar for ITKnight

Hi all, I already save my login config at registry. Thanks to Jx_Man and Debasisdas for helping me on previous thread. My following code running nicely. [CODE]SaveSetting "AddressBook", "Login", "Username", Trim(txtUserName.Text)[/CODE] My settings currently saved on "HKEY_CURRENT_USER\Software\VB and VBA Program Settings\AddressBook\Login" How i can save it one level more deeper. …

Member Avatar for ITKnight
0
101
Member Avatar for Resentful

I'm currently working on one of the last parts of a project and I'm at a standstill. I am needing to remove pixels from an image that are smaller than a certain aspect. For example, if an image has a square or triangle that is smaller than 35,35 pixels, I …

Member Avatar for Unhnd_Exception
0
279
Member Avatar for ppatryk

Hi, is it ok to use an if condition as a presence check, this is my code - [ICODE]if (textBox1 != null) { MessageBox.Show("Dont Leave Blank"); } else MessageBox.Show("Successfully added");[/ICODE] my code runs however no matter if there is text in textbox1 or if its left empty it shows "Dont …

Member Avatar for gusano79
0
246
Member Avatar for coconutdumplin

Hi guys this is my very first python program I've been trying to use re.match to test to see if a string is an identifier as defined by this syntax [CODE]identifier -> letter{ letter| digit}[/CODE] I tried the following statements but when i test my program every single time it …

Member Avatar for coconutdumplin
0
117
Member Avatar for shyla

the letter e is the most frequently used letter in the english language, and the letter z is the lease used. a friend of yours doing a blah blah believes that this may not be necessarily be true of writings of first year college students. to test his theory, he …

Member Avatar for shyla
0
1K
Member Avatar for phpDave

Hi, I'm working on a site that allows users to connect with each other. User can search, find friend, and then request a connection. It works but if user request a second time it duplicates the row in table. I only want INSERT if does not exists. Here is code. …

Member Avatar for phpDave
0
96
Member Avatar for Taimoor Rana

Hello, I'm having trouble displaying an output from my code. It suppose to act like a stopwatch where seconds increment and then minutes and then hours but for some reason its not working and I cannot figure out why... :-( hope some some can guide me. Thanks [CODE]/* * To …

Member Avatar for Taimoor Rana
0
1K
Member Avatar for hawita

Hi i am trying to write a program where the user inputs a list of space separated words (more than ten are required); the program then reverses and prints the order of the words. Example: input:“Extra Credit Programs”; output: “Programs Credit Extra” but my program s far is not behaving …

Member Avatar for hawita
0
138
Member Avatar for azgold472

Ok so what im trying to do here is set putme to be coding so that when the test.txt is read it replaces `<!--ReplaceMe -->` with the contents of putme. How do i get putme to just store it at text instead of coding? <!-- Start putme --> <cfset putme …

Member Avatar for arrgh
0
131
Member Avatar for denmarkstan

i created a new project, added some textboxes and labels with one button. when i built the project the first time, i just got the error: general error c101008d: Failed to write the updated manifest to the resource of file "..\Debug\Login.exe". Access is denied. mt.exe Login someone help me please!

Member Avatar for chrjs
0
192
Member Avatar for penguino138

I need help position a bunch of things. Mostly the text bar. Here's my code: [CODE] package swingHW2; import java.util.Scanner; import javax.swing.*; import java.awt.*; public class swingHW2 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub // The Layout FlowLayout lout = …

Member Avatar for penguino138
0
185
Member Avatar for agr8lemon

I've used this many times and it's always worked, however for some reason I'm missing something. [CODE]$ddType_query="SELECT DISTINCT Type from dbo.LTN_HARDWARE"; $ddType_result=odbc_exec($conn, $ddType_query); while ($ddTypeOptionsRows = odbc_fetch_array($ddType_result)) { //echo $ddTypeOptionsRows['Type'], "\n"; $ddTypeOptions = $ddTypeOptionsRows['Type'] ; } odbc_close($conn);[/CODE] I'm trying to get the $ddTypeOptions to contain all the distinct results of …

Member Avatar for diafol
0
94
Member Avatar for charlybones

Ok, so after hours and hours of testing and searching online I'm almost convinced that this can't be done, but I'm asking here for help maybe someone can give me any idea as to why this isn't working. I'm doing this query: [CODE]SELECT * FROM( (SELECT t1.PAG5 from table1 t1 …

Member Avatar for boblarson
0
135
Member Avatar for Hyo

I have done this query : Balance:[Medical]![Price]-750 but calculation total didn't show up , and it show up to enter parameter value? help me....

Member Avatar for boblarson
0
91
Member Avatar for woolm110

Hey Everyone, I'm currently creating a simple shopping cart with interaction to PayPal. I've set up a database with a table named orders. I'm using the PayPal sandbox and what I'm looking to do is to post the order details into my database on payment completion. I have a script …

0
159
Member Avatar for tcollins412

i have a script that sends an email to cellphones: [CODE=html] <form name='celltest' method=post> <input type=hidden name=cellsubmit value=yes> <tr><td rowspan=1>Mobile Phone: <input type='text' class='efield' id='phone' name='phonetest' style='width: 200px;'></td><td style='padding-bottom: 15px; padding-left: 3px;'>&nbsp;<a href="?ref=ea&dotest=1" class='eap' style='width: 50px;'>Test</a></td></tr></table></td></tr><tr><td style='font-size: 12px; text-align: left; padding-top: 2px; padding-left: 35px;'>Provider: <select name=provider class=efield style='width:258px;' id='provider'> <option …

0
132
Member Avatar for jowana

Hi, what does this error mean? : error C2440: 'initializing' : cannot convert from 'char' to 'const char *' i'm trying to read an image from a file using this code: [COLOR="Green"]#include "itkImage.h" #include "itkImageFileReader.h" int main( int , char * argv) { typedef unsigned char PixelType; const unsigned int …

Member Avatar for jowana
0
275
Member Avatar for Aepexx

Here is the output that I should be receiving: [CODE] Please enter the name on the check (First Last): John Doe Please enter the amount for the check (as a float): 123.45 --------------------------- Pay to : John Doe $123.45 one hundred twenty three dollars and 45 cents[/CODE] Now, what I …

Member Avatar for Aepexx
0
180
Member Avatar for nadleeh

how would i go about sorting multiple items in a binary search tree.. for example if i have a list of first last and middle names and i want to sort it in a tree by last name, how would i store all three of them in each node.. should …

Member Avatar for Narue
0
122
Member Avatar for rom.

I'm making a simple IP logger. I've tested the script, but the database doesn't seem to filling up. It could be a problem with the database format etc, details below. Otherwise, I must have made an newbie oversight in the PHP. Some fresh eyes would be greatly appreciated! id: INT(10), …

Member Avatar for diafol
0
170
Member Avatar for LloydFarrell

Hi all... I am trying to get data from a table field called "custom" from a mysql database the data is stored as 23-1, where 23 is the id and 1 is the quantity How do I build an array or extract the data and place the values into two …

Member Avatar for LloydFarrell
0
102
Member Avatar for ekin5683

Hye..i dont know how to output the position for array. [QUOTE] Enter value for array A(4x5): 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 Enter value for array B(4x5): 1 2 3 4 5 1 2 3 4 …

Member Avatar for Narue
0
125
Member Avatar for nihaS

hi I m new here and not sure about how things go about... but could any one tell me about collaborations of objects in c++

Member Avatar for rubberman
0
1K
Member Avatar for leo88

How to get minimum value? [code] ArrayList arrKey = new ArrayList(); double v; double min; foreach (string subKey in sortList4.Keys) { foreach(string mee in arrKey) { sortList5.Add(mee,1); if(sortList3.ContainsKey(mee)) { sortList3.TryGetValue(mee, out v); if(v>min) { //what should do at here? } }}} [/code]

Member Avatar for leo88
0
146
Member Avatar for touda

I'd like to know: 1.) On line of code which says: "Production possibleExpansion(infile);", what is the nature of possibleExpansion(infile)? Is it a function? Is it an object of class Production? 2.) On line of code which says: "possibleExpansions.push_back(possibleExpansion);", what is the meaning of it? [CODE]#include "definition.h" #include "random.h" Definition::Definition(ifstream& infile) …

Member Avatar for Narue
0
150
Member Avatar for klemme

Hi All! I have a table with different kinds of customers information. With the code I have posted below, I want to pull out all the records from the database. When I progress to make the "create_record" page, my intention is that it should automatically be added as an extra …

Member Avatar for joban.ali
0
123
Member Avatar for Jessurider

here table is creating but the values is not inserting [CODE] private void button_Click(object sender, EventArgs e) { SqlConnection cn; cn = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=J:\\Rcar\\motion\\db_image.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"); if (cn.State==ConnectionState.Closed) { cn.Open(); } SqlCommand cmd; string sq1; sq1 = "CREATE TABLE [" +Box1.Text+ "] (name CHAR(50) PRIMARY KEY," +"id CHAR(15), …

Member Avatar for Mitja Bonca
0
165
Member Avatar for branding4you

I have some images 5 or 6 that are 800 x 300 i use in my website banner. The start loading but when number one is 1/3 of the way teh next one starts then the next, it looks real messy nee some way to preload them ... like black …

Member Avatar for branding4you
0
161
Member Avatar for vavishy

The CashAndCreditShop supermarket determines the retail price of a product based on the time it is expected to stay on the shelf. Any item that is expected to sell in one week or less is marked up 10%, and any item that is expected to stay on the shelf for …

Member Avatar for mcriscolo
0
212

The End.