64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for armanus

I'm attempting to make a Tic-Tac-Toe against the computer program, I'm pretty much done, but i can't figure out how to stop the computer from making the exact same move as the human does. Thank You. [CODE]// Include the libraries #include <iostream> #include <string> // Use standerd namespaces. using namespace …

Member Avatar for SgtMe
0
181
Member Avatar for VB 2012

I have a problem that needs fixing How do you get all open tabs shown in a KryptonListbox My fail attempt : TabpagesHtml.Items.Add(Form1.SuperKryptonNavigator.Pages.Item(0)) : :@

Member Avatar for VB 2012
0
181
Member Avatar for Superstar288

Hi everyone im a bit confused with my work and i hope you can help me. i need to get some values from a text file and enter it into a 2D array ive done this part ok with the following code however in my file i have some other …

Member Avatar for Superstar288
0
155
Member Avatar for neo_31591

hey guys/...am stuck at one point....help me please! ! ! its a quiz progg... one ques...4 options... i have one button---NEXT QUES--- It should display the next ques--it should also take the user selected option, compare it with the correct option and show if the Answer is right or wrong …

Member Avatar for neo_31591
0
92
Member Avatar for Dinnerfortwo

Hi, im trying to figure out how to call a function's variable from here [CODE]def legal_moves(board): moves = [] for square in range(DINNER): if board [square] == SPACE: moves.append(square) return moves[/CODE] I want to take the variable moves and use it for main How would I do that?

Member Avatar for TrustyTony
0
85
Member Avatar for mmonclair

I've been looking around online for a while and haven't been able to find a solution available with the resources at my disposal. Here's the scenario: I have an online training site I manage and do development for. We've been offering surveys to get feedback at the time that a …

Member Avatar for mmonclair
0
96
Member Avatar for Oregand

Hey guys, im just learning how to use methods but I really cant seem to understand them. We have a question where we have to write a program for the following game. There is a little known dice game which is played with a pair of dice and has the …

Member Avatar for Oregand
0
3K
Member Avatar for Alkaline8214

Hello everyone. My name is Mike. I am a new member :). I hope to be using this forum quite a bit to extend my knowledge base on c++ and java.(just wanted to introduce myself being my 1st post and all lol) Well my class was tasked with making a …

Member Avatar for VernonDozier
0
4K
Member Avatar for Oregand

Hi guys, Im pretty new to programming so bear with me if you think this is baby stuff:P Ive just been introduced to methods last weeks and after a week of study Im no better at understanding them. The problem is I just seem to grasp how to you them …

Member Avatar for Oregand
0
135
Member Avatar for Friendly Lotus

Hi all, I am trying to update the colour of a Tkinter label, so as the value of a variable changes so to does the colour of the text. Below is a simple example of what I am trying to achieve, but the problem is when I press the button …

Member Avatar for TrustyTony
0
15K
Member Avatar for Dhruv Gairola

Hi there friendly people of daniweb. My problem is that when i double click an executable jar file, nothing happens. Even when i use command prompt and type java -jar "filenae" it doesnt work. Any ideas why?

Member Avatar for Dhruv Gairola
0
120
Member Avatar for choover12

hello, i want to be able to split this string: "StraightPath1, 1, 2" into 3 sections: name, x, y. but when i use this code:[CODE]string[] pieces = line.Split(',')[/CODE] it only i can only read the last 2 parts like this: [CODE] string Name = pieces[0]; //output: null int X = …

Member Avatar for choover12
0
167
Member Avatar for khaled_jawaher

i have written the code in client,server,interfaces.i have created stubs and skaleton. i have run rmiregistry very well.i have run server.i have an error in client side,when i run client.it is moving to the catch not looking up to the correct address of server. the code of client is: [CODE]import …

Member Avatar for ~s.o.s~
0
161
Member Avatar for Waffles007

Hi, I'm having trouble finding out how to have a link pull a certain id from a single file and display that id's content within a certain div on the page. I'm trying to cut down on the amount of pages on my site by loading certain critical code into …

Member Avatar for Waffles007
0
3K
Member Avatar for neo_31591

hey guys... i made a database using Access....it consists of questions and 4options each... i made a quiz progg through java and connected the database using jdbc.... before,since it was my trial attempt, i entered silly ques into the database like whats ur name with 4 options....just to check if …

Member Avatar for neo_31591
0
124
Member Avatar for MysticalNomad

I have the following code that is very simple and gets information from form fields and mails it off. The issue is that when the email is received using Microsoft Outlook 2003 the message is blank and the actual message that is supposed to be there is an attached HTML …

Member Avatar for MysticalNomad
0
186
Member Avatar for dorien

Hi, I want to copy a row from a 2d vector in an existing 1d vector. I found a similar tread, which copies into a newly defined vector as such: [CODE]vector< data_type > copyRow( vec2d[3].begin(), vec2d[3].end());[/CODE] Now I want to change this code, so that copyRow already exists. My idea …

Member Avatar for dorien
0
1K
Member Avatar for sanjaypandit

i want to made a form in which there is three fields. 1. product value: suppose:1500 2. number of product:2 3. then i want to show multiple of these values in third textbox without submitting form . how can i do this. help me

Member Avatar for hacker43.gaurav
0
107
Member Avatar for lee.j.baxter

Hi folks, I'm writing some utility classes for a project, and I've written an abstract class called "XPObjectTable" that displays a table of objects of a given type. To refresh this, I'm using "AbstractTableModel.fireTableDataChanged()". Now I'm writing a similar class for JList, but can't find a similar method (i.e. "AbstractListModel.fireListDataChanged()"). …

Member Avatar for lee.j.baxter
0
190
Member Avatar for Trle94
Member Avatar for Trle94
0
336
Member Avatar for ash07

Hello aLL I need a small help from you guys.. I am creating project in VB6.0 and access 2003, form has combobox,tab control,textbox msflexgrid .. I am trying to retrive data from database.I have a sub procedure which is nicely working for all controls except combobox. while debugging I found …

Member Avatar for AndreRet
0
213
Member Avatar for divyakrishnan

Hi... I am doing a PHP project.I had executed the project on 3 machines.For one machine it is showing a warning as follows.. [U][B]warning[/B][/U] Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. …

Member Avatar for divyakrishnan
0
132
Member Avatar for Geertc

Hello everybody, for my application I want to implement a email-clickcounter, next to link-clickcounter. Most links and emails (mailto:) appear on a page that gives details about a search-result from my home-made searchmodule. I have set up the counting system like this : Every link is redirected to a click.php-file. …

Member Avatar for Geertc
0
158
Member Avatar for bshrestha

Hi guys! i am stuck in my fraction program. i hope you guys can solve it. here i have posted my code. i am trying to get for e.g. 4/2 need to get me answer like 2/1 or 2/4 show me 1/2. i hope you can help me out. i …

Member Avatar for SgtMe
0
118
Member Avatar for MoreBloodWine

Wasn't quite sure what to do for a title on this one, anyway... number_format(getNetDonations(date('%')) + 23.97, 2) I'm using the above to try and pull total donations ever received on my site but here's where it gets hinky. There's safety checks in the code "or so I'm told by the …

Member Avatar for MoreBloodWine
0
94
Member Avatar for hondros

Hello, I'm trying to take a C array of char's and trying to take all of the spaces out of it. Yet I keep running into a segmentation fault. Can anyone help me here? [code] #include <stdio.h> #include <stdlib.h> int strlen(char* Str) { int toret=0; int i=0; char tmp = …

Member Avatar for VernonDozier
0
207
Member Avatar for CharliePrynn

Hello, I currently have been coding this. [CODE]Imports System.IO Imports System.IO.Compression Imports System.Windows.Forms Imports System Imports Ionic.Zip Imports System.IO.Path Imports System.Net.WebException Imports System.Net Imports System.Text Imports System.Net.Sockets Imports System.Security.Cryptography Public Class Main ' FTP upload Private Sub FTPU() If ListBox2.SelectedItem = Nothing Then MsgBox("Select world.") Else Dim clsRequest As System.Net.FtpWebRequest …

Member Avatar for CharliePrynn
0
210
Member Avatar for ppohlmann

Hello Gurus, i have several forms on a page that get generated dynamicly form a database. Checking the fields etc requires an id for each form .. i have a problem with this code here. . elid is the id of the form .. the elid gets passed from the …

Member Avatar for Airshow
0
114
Member Avatar for Aventurine

Hi there, I am a PHP developer and know little of JS - in my current project I have hit a few probs as I know I need to incoporate some JS. After some help already from this community I have almost completed the JS part of one page that …

Member Avatar for Aventurine
0
208
Member Avatar for Buffalo101

Hello, I'm trying to change the look of java apps to something native. In my first JFrame, I'm using: [code=java] try { //org.fife.plaf.VisualStudio2005.VisualStudio2005LookAndFeel //de.javasoft.plaf.synthetica.SyntheticaStandardLookAndFeel //com.jgoodies.looks.plastic.Plastic3DLookAndFeel //UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (InstantiationException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (UnsupportedLookAndFeelException e) { …

Member Avatar for leiger
1
159
Member Avatar for toferdagofer

Im having problems with my input validation. Its not working correctly. Keeps repeating the validation loop even when i enter something that should be correct. basically im trying to make it so that the only valid answer is either uppercase or lower case letters a-d. [CODE]#include <iostream> using namespace std; …

Member Avatar for Lerner
0
150
Member Avatar for wazaa

I have just started using python and am trying to write a program that generates 200 random numbers in the range (1,50),then counts the number of occurrences of each number and prints the frequency of occurrence. I have created the part of the code which generates the random numbers. I …

Member Avatar for wazaa
0
3K
Member Avatar for purijatin

Can some one please suggest a good advanced book on Concurrent Processes. I am a bit week in it and would like to give a lot of time to improve

Member Avatar for Ezzaral
0
83
Member Avatar for c2q

Hi. I have a function that needs to split a string on the seperators given by the function. so if i had the seperators as !.?: then it should split the string at those points. if i have a string 'hello. world! hello.' how can i return a list with …

Member Avatar for ultimatebuster
0
624
Member Avatar for hiddepolen

Hi guys, I need some help with sprintf. I get the general idea, and I think everything works, but my MessageBox will not diplay the right text. [CODE]int a = 25; char buf [80]; sprintf(buf, "%d", a ); MessageBox(NULL, (LPCWSTR)buf, L"Sel Change", MB_OK);[/CODE]

Member Avatar for hiddepolen
0
133
Member Avatar for sciprog1

Hello Members, The following Client/Server does a simple chat where I am able to send and receive one line at a time. How should I proceed if I were to send at aleast 4-5 lines at a time. Any help (with some sample pseudocode) would be of immense help. Thank …

Member Avatar for sciprog1
0
239
Member Avatar for TinhornAdeniyi

This is supposed to be a code for a video game store [CODE]#include<iostream> #include<fstream> using namespace std; ifstream infile; struct VideoGame { string Name; string Genre; string Publisher; string Developer; string Platform; string Price; int count; VideoGame *link; }; void CreateList(VideoGame*& first, VideoGame*& last); void CheckOut(VideoGame*& first, string title); bool …

Member Avatar for TinhornAdeniyi
0
236
Member Avatar for Java_90

Here is my code, I want it so you type something in to the textfield and then you press the button next to it which puts the text in the textArea. It compiles but when you click the JButton it errors out, I'm a beginner to Java anyone know what …

Member Avatar for Java_90
0
2K
Member Avatar for vedro-compota

Dear programmers)) Please tell me - why in С# this line [CODE]string [this.LevelNumber] mass = new string [this.LevelNumber];[/CODE] isn't permissible? What can be an equivalent for it? Thank you for your answers)

Member Avatar for vedro-compota
0
139
Member Avatar for Smed

I'm trying to sort a 3D array and having little success. I have read various methods on how this is done for two dimensions, but I can't seem to scale it up. example array: [CODE]r =[[['steve',1, 40], ['steve',3, 20], ['steve',2, 30]], [['john',5, 50], ['john',6, 40], ['john',4, 30]]][/CODE] I want this …

Member Avatar for TrustyTony
0
212
Member Avatar for nejger

Hello, I'm doing a Converter, from Roman to arabic and the other way. Now I need help to do a program who can do bigger numbers/letters than 3999. I must use the information: (M) is 1000 *1000 and (L)= 50 * 1000 etc. So ( ) means 1000. I must …

Member Avatar for woooee
0
177
Member Avatar for showman13

Good Morning All, Hopefully someone out there has a resolution to this issue. I have a form that I want to use drop down boxes for the country and state. That is no problem, I already have them. The issue comes in when someone has filled out the form, but …

Member Avatar for showman13
0
127
Member Avatar for burcin erek

i made a class test program with telephone directory. it writes name and telephone number but not surname i have used return name,surname which does not carry both string. is it possible to do them without writing another function script. thanks in advance [CODE]#include <cstdlib> #include <iostream> using namespace std; …

Member Avatar for jonsca
0
102
Member Avatar for Sunshineserene

Hi all, I am trying to call a 2D array from another class, and equate the 2D array to a 2D array in the class its at. However, I'm having some problems. I can call the 2D array from the class that I want to, but it seems like my …

Member Avatar for Sunshineserene
0
2K
Member Avatar for wrhurst

Hello all, I want to change the following code to have the user enter ANY NAME to see if the person is present in the array. I'v been trying for a couple hours now but keep getting errors. There's more to this problem but I have to get past this …

Member Avatar for wrhurst
0
170
Member Avatar for fahadyousaf

i have made this little program in GUI, Please help in these following error. 1st time when we save the data second time it comes to 2nd field name not on cnic field, it should ask cnic field first then other ask for other fields. Please any one guide me …

Member Avatar for kramerd
0
239
Member Avatar for Jonil

Hello! I'm suppose to code a word counter for my Java class. The user is suppose to keep entering a sentence until they type "xxx" then at the end, it'd count how many words entered. It's only counting the "xxx" for me, so at the end, it says I only …

Member Avatar for kramerd
0
158
Member Avatar for wdearth

I'm supposed to create a bill for a catering group utilizing at least two functions, which functions could I use for this and how will I use them? I've done it with mainly if and else statements and simple calculations, any functions I can use? #include<iostream> #include<iomanip> #include<string> using namespace …

Member Avatar for mtbs1826
0
228
Member Avatar for bibiki

I have the following code as taken from the book I read from: [CODE] import java.awt.*; import javax.swing.*; /** Frame1 is a frame with a label and a button */ public class Frame1 extends JFrame { /** Constructor Frame1 creates a frame with a label and button */ public Frame1() …

Member Avatar for kramerd
0
202
Member Avatar for itisnot_me

ok so i am running into this problem that i cant seem to fix. trying to make a dynamic query. i am grabbing variables from post data and trying to put them in the query but everytime i try to run the query it doesnt work. [CODE] $id = $_POST["id"]; …

Member Avatar for itisnot_me
0
268

The End.