199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dmiller071

Hi all, I'm working on a maze project with different types of robots. One of the robots is supposed to be a right-hand-rule robot which follows his right hand. The way I'm coding it so far, is I have an Enum Orientation. If the right hand is facing UP, DOWN, …

Member Avatar for Dmiller071
0
1K
Member Avatar for Behseini

Hi everyone, Can you please let me know why I am getting error on populating Persian(Arabic)Numbers?! I have saved the php file as "Uncode in UTF-8" format which can display the dropdown list in a HTML correctly but when I want to retrieve them in PHP I encountered with following …

Member Avatar for diafol
0
366
Member Avatar for sidra 100

hi i have made a program to find average and standard deviation. n it read input from other. rest of things are fine plz guide me my output for Standard deiation sD comes NaN. i have searched alot bt couldnot find solution my code is [CODE]import java.io.*; import java.util.*; public …

Member Avatar for Taywin
0
170
Member Avatar for zack_falcon

Okay, so I have two arrays: [CODE]public int[] start = new int[21] { 0, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 14 }; public int[] end = new int[21] { 0, 1, 1, 1, 1, 1, 1, 2, …

Member Avatar for zack_falcon
0
189
Member Avatar for Destluck

Alright to star off let me say sorry for my english typos. This question is not for a homework and in no way related to school. Im in 3d conception. But looking to get a program for personal use. I have a project i want to work on and need …

Member Avatar for raptr_dflo
0
153
Member Avatar for spunkywacko

Hey guys. I'm having some trouble with this error. [CODE] class App(): i = 0 def updateCount(self): i = i +1 app = App() app.updateCount() input('Enter') [/CODE] I have tried global i but get an error 'global name i is not defined'. Can someone clue me in? Cheers :D

Member Avatar for Gribouillis
0
206
Member Avatar for mc3330418

I have this project that takes a team name, how many members are on a team and the individual times. I need to output the teamname and times (in seconds) and then the total time of each team. I'm having trouble adding the total team times. [CODE]while(infile.peek() !=EOF) { getline …

Member Avatar for Narue
0
120
Member Avatar for AT--O

Using VB Express 2010 in windows XP Pro 64. A ListBox shows the project forms names. On ListBox_DoubleClick [CODE] For Each F As Form In xFormCollection If F.Name = ListBox.SelectedItem.ToString Then Try F.Show() Catch ex As Exception MsgBox(ex.Message) End Try End If Next [/CODE] Works fine the first time but …

Member Avatar for AT--O
0
1K
Member Avatar for as3g

I'm new to python and I'm trying to count punctuation in a string input by user, and I"ve been able to do it w/ out a loop, but would like to emply a more efficiant method. I've been able to loop through and grabb the characters, but they are'nt being …

Member Avatar for as3g
0
171
Member Avatar for wfws

I'm working on a school C++ program, and its my first that uses classes and objects. Its great fun, and I'm almost done. I have a problem with the search function, which involves several pieces of code- the .h files, the .cpp implementation file, and the main code file. If …

Member Avatar for gusano79
0
100
Member Avatar for yapaarachchi
Member Avatar for TheSomalilander
0
226
Member Avatar for ndayala

i get this error every time i try to compile the code below. any suggestions --------------------------------------------------------------------------------------- Compiler: Default compiler Executing gcc.exe... gcc.exe "C:\Users\ndayala\Desktop\19266\main_random.c" -o "C:\Users\ndayala\Desktop\19266\main_random.exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" C:\Users\ndayala\Desktop\19266\main_random.c:9:22: sys/mman.h: No such file or directory C:\Users\ndayala\Desktop\19266\main_random.c: In function `main': C:\Users\ndayala\Desktop\19266\main_random.c:30: error: `PROT_READ' undeclared (first use in this function) C:\Users\ndayala\Desktop\19266\main_random.c:30: error: (Each …

Member Avatar for gerard4143
0
565
Member Avatar for goltu

First in web form THere will appear one textbox and button. enter the number in textbox and press the button.Pressing button create Dynamically t number of dropdownlist as entered in textbox.I successful do it .But when i what use the seletedvalue of dropdownlist I cannot through anthor buttton . I …

Member Avatar for goltu
0
914
Member Avatar for Vishwasdeep

Hi, Myself Vishwasdeep. I am doing a project work on asp.net. I am getting an error/exception on my code. [CODE] using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using System.Data.Sql; using System.Data.SqlClient; namespace WebApplication2 …

Member Avatar for Vishwasdeep
0
818
Member Avatar for trevor_shiggs

Newb here. Parse error: syntax error, unexpected '{' in /home/litt6041/public_html/listing/wp-content/plugins/great-real-estate/templatefunctions.php on line 1502 Heres the code I have in that doccument. Sorry its so long. For some reason dreamweaver adds a bunch of spaces when viewing. Please help, Thanks! [CODE] <?php /* * public functions provided by the Great Real …

Member Avatar for Stefano Mtangoo
0
300
Member Avatar for PixelExchange

I have a program which consists of two windows (hWnd, and picturewind). I would like to write code which takes an action every time a person clicks inside of the second window (picturewind) but not when the person clicks in the first window (hWnd). Can anyone tell me how I …

Member Avatar for PixelExchange
0
153
Member Avatar for nimka

hi , i am new to programming in java , i developed a program in java , my program is take two input files , first file has one sequence and second file has multiple sequences and then compute the edit distance between these two files . my problem is …

Member Avatar for Taywin
0
140
Member Avatar for gouki2005

I got the Jasypt 1.8 and i have jasypt-1.8 folder but how can i add this new libraries to my project org.jasypt doesnt appear so what i need to do?

Member Avatar for peter_budo
0
247
Member Avatar for mehdi.yazdani

hi, i created the page that it contains captcha for submitting my form and insert it inside the data base but in the main page i putted my text fields later i created iframe which is displaying my captcha images with refresh button in the insert page i need to …

Member Avatar for mehdi.yazdani
0
120
Member Avatar for smith32

I'm trying to do the third writer/reader problem with semaphore (as mention on wiki). But it's not working properly. First 16-element array seem to work properly. But after first, it got wrong. Even though I think I'm almost there, I can't find the error at all. My code is as …

0
145
Member Avatar for Plantcode

Hello, I'm a newbie working with vbnet but i'm trying to create a project were I enter a name in a textbox and save it to a access database. I'm trying to create the OledbConnection but i'm getting this error: "oleDbException was unhandled" this is the code i'm using: [CODE]Private …

Member Avatar for Plantcode
0
252
Member Avatar for strongguy12345

alright well i have already posted in the python forum part, now this question is the same one as the one i did for college level computer science but this is for university. any way im pretty sure i have it but before when it was working it would say …

Member Avatar for strongguy12345
0
252
Member Avatar for Eneswar

Hello, im trying to do a single html page with multiple checkboxes to hide/show text when checked/unchecked. I'm really bad at html but so far I have got this: The problem I have is I dont know how to add more checkboxes. Would appreciate some help. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for Eneswar
0
556
Member Avatar for AODfan

Hello, I am taking a JavaScript class and I am currently on an assignment where my Professor wants me to create a dice roller program with the following stipulations: * Users can choose via form how many sides that they can choose from, between 2 and 100. * Dice are …

Member Avatar for Taywin
0
317
Member Avatar for peuceul

Hi all, I have a question regarding an extern variable. ---test.c [CODE]#include <stdio.h> #include </home/peuceul/debug/test.h> extern int a; int print1() { printf("value of a in extern is %d\n", a); int a = 2; printf("value of a is %d\n", a); } int print2() { printf("value of a in second method is …

Member Avatar for WaltP
0
1K
Member Avatar for circles

Hi all, 2nd week programming and face first into the wall again haha. As always I appreciate any advice or critique. I have a small c++ program that reads through log files from a program and scans for errors. For the most part it works really well but I'm trying …

Member Avatar for WaltP
0
192
Member Avatar for Dmiller071

Hi all! The past couple times I posted they were all about 2D arrays.. and here I am again with them =( I cannot escape them! Anyway, the project I'm working on requires a Maze class that holds a 2D array and different types of robots that will find their …

Member Avatar for Dmiller071
0
293
Member Avatar for sha11e

[CODE] //Creating a variable for the connection called //"con" Connection con = DriverManager.getConnection("jdbc:mysql://IP_ADDRESS:3306/DATABASE_NAME", "USERNAME", "PASSWORD"); ... [/CODE] If I don't want at least the username and password to be shown in clear text... is there something I can do? Have them in a file thats encrypted or... I don't know.. …

Member Avatar for ~s.o.s~
0
107
Member Avatar for jhudielpeco

Please repair my loop. [CODE]#include <iostream> using namespace std; int main(){ int size; cout << "How large a triangle do you want? "; cin >> size; for (int r = 0; r < size; r++) { for (int c = 1; c <= size; c++) { if (c <= r) …

Member Avatar for WaltP
0
137
Member Avatar for nikki05

Hi, I am using PHPBB for my forum. My intention is if someone registers to my website, he/she will be login to forum as well, automatically. That means no need to register twice to use the forum. Is there a way forward to achieve this? Will greatly appreciate your suggestions. …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for greenq

I am implementing Selection sort in doubly - linked list. I have to sort list by surnames by finding smallest element and inserting it into beginning of the list But there are some troubles when I run my program I have NIL exception in Sort Method in while loop. Help …

Member Avatar for Taywin
0
2K
Member Avatar for amitshree

[CODE]#include<stdio.h> #include<conio.h> struct node{ int data; struct node *next; }; struct node *creat_list(struct node *start); void display(struct node *start); struct node *addatbeg(struct node *start,int data); struct node *addatend(struct node *start,int data); int main(void) { struct node *start=NULL; int choice,data; while(1) { printf("1.creat linklist\n"); printf("2.display\n"); printf("3.add at beg\n"); printf("4.adda t end\n"); …

Member Avatar for amitshree
0
170
Member Avatar for BoBok2002

Hi, I have drawn a human face using simple shapes such as big circle for the face, little circles for the eyes, lines for eyebrows and triangle for the nose. I have been asked to create a template for various expressions of the face (fear, happiness, disgust, etc). Once I'm …

Member Avatar for BoBok2002
0
453
Member Avatar for omlac
Member Avatar for chrishea
0
80
Member Avatar for smepperson

Hi Everyone, It has been some time since I've posted here but I am truly having trouble seeing the forest for the trees so to speak. I have changed my code so many times I missed the time it worked because I want it to do more. Upon Exit btn …

Member Avatar for smepperson
0
1K
Member Avatar for Kalys3
Member Avatar for ktsangop

Hi there! I would like a little help regarding the following code. The following code will wait for a non-blocking socket connection, and then wait to receive a certain packet. When the packet arrives, it will do something and then close connection and reinitialize it in order to be able …

Member Avatar for ktsangop
0
391
Member Avatar for kei01040

import java.util.*; import static java.lang.System.*; public class tester { public static void main(String args[]) { Scanner kbReader = new Scanner (in); System.out.print("Enter your integer here."); //enter 3001 int i = kbReader.nextInt( ); int count =0; for(int i = 100; i <= 999; i++) { int factors = 0 ; for …

Member Avatar for Taywin
0
7K
Member Avatar for Dann0

Hey guys, hope I'm in the right section here, I presume Pygame falls under python. I'm trying to make a circle move left,right,up or down depending on the users input (e.g if the user presses the "a" key then the circle will move left by itself, rebound off the edge …

Member Avatar for Dann0
0
198
Member Avatar for Vaspar

Hello I am trying to make a bot which will download files and upload on server. I have no idea how to do that (yet) can someone guide me which methods will be used in downloading file and uploading (ftp server) and one more thing is there any size limitation …

Member Avatar for vijayvishwanath
0
153
Member Avatar for sanzhar

how to play from bytes (like sound) but without filename.... I read from InputStream by bytes, it must play... It is like sound streaming...

Member Avatar for sanzhar
0
54
Member Avatar for dark_sider_1

I'd like to add (using the mathematical term) two Integer ArrayLists in Java, as well as divide them and multiply. How would I go about this algorithmically? I can't for the life of me think of something, perhaps having to do with two's complements. Okay, so let's say that I …

Member Avatar for Taywin
0
217
Member Avatar for pankajjarial

[CODE]<?php include('connection/database.php'); require ('xajax/xajax_core/xajax.inc.php'); $xajax = new xajax(); function autocomplete($val) { if($val!="") { $query=mysql_query("select * from name where name like '".$val."%'"); $rows=mysql_num_rows($query); $out="<table width='100%' bgcolor='#bfbfc3'>"; while($data=mysql_fetch_array($query)) { $out.="<tr><td>".$data['name']."</td></tr>"; } $out.="</table>"; $objResponse=new xajaxResponse(); $objResponse->assign('div1','innerHTML',$out); $objResponse->script("jQuery:$('td').click(function(){ var a=$(this).attr('innerHTML'); $('#name').attr('value',a); $('#div1').attr('innerHTML',''); }); $('td').mouseover(function(){ $(this).css('background-color','gray'); }); $('td').mouseout(function(){ $(this).css('background-color',''); }); "); return $objResponse; } else …

Member Avatar for pritaeas
0
159
Member Avatar for diestro

Hi, Having some trouble getting it all together. I have a table in which i need to get Distinct names based on latest date. This is what the table looks like; Table Scores; [CODE] --------------------------------------------------------------------- | Name | Date | High Score | Medium Score | Low Score | --------------------------------------------------------------------- …

Member Avatar for diestro
0
115
Member Avatar for Panathinaikos22

Hello, is possible in C# create a file with custom extension? and the file can be open only from progra and not from others text editors. I have a login form were i store logs in txt file for now, that i want is to create an file named *.lst …

Member Avatar for Panathinaikos22
0
147
Member Avatar for noobies

Could ANYONE check on my code. As I compare the DSO with the DSO para, it seems doesn't compare both data at all. I have been converting the DSO as double first between comparing it as if i compare with string it doesn't work. anyone could help me please. I …

Member Avatar for hericles
0
212
Member Avatar for jackmaverick1

I need to access a file that isn't relative to the directory that the .jar file is in. I got lucky with another part of the program doing this, but I really don't know how. Thanks, Jack

Member Avatar for JamesCherrill
0
107
Member Avatar for euclid135

Hello all, I got some problem in handling thread so my form is not hang when performing a long time computing, Here is my simple simulation of my program, first time my program start, it will make a form that contains a button that will perform a long time computing …

Member Avatar for euclid135
0
155
Member Avatar for ChaseRLewis

Alright I've been writing C/C++ code for a few years but recently got into helping make an indie game with a few guys. We are scripting in C# but i'm just a bit lost on how to do some stuff without pointers. Its a generic class that holds the non-work …

Member Avatar for ChaseRLewis
0
258
Member Avatar for dwiniers

Hello there Good Day! Anybody can help me or teach me the code on how to lock the text box on my program. I have the navigation keys and add, edit, delete search command button. What i want is during the run time you cannot changed everything information in the …

Member Avatar for dwiniers
0
193

The End.