64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for baldturtle

When i try to complile it says SlotMachineReel.java:175: missing return statement I think its because all my returns are in "if" statements and it needs a default return. line 128 & line 175 Thanks in advance for any help [CODE]/** * Constructs a new reel with its current face randomly …

Member Avatar for baldturtle
0
165
Member Avatar for xcarbonx

Hello, my listbox contents output as 1 whole row like: Total Normal = 3 Total High = 5 Total Low = 6 When i want the output to be formatted like: Total Normal = 3 Total High = 5 Total Low = 6 Here is my code: [CODE] lstResults.Items.Add("Total Normal …

Member Avatar for xcarbonx
0
169
Member Avatar for alex55

So i have a string say string A = junk#crap i want to separate it to separate strings b=junk c=crap how would i go about doing that while throwing out the #?

Member Avatar for alex55
0
148
Member Avatar for fallen_prisoner

hi i am new to programming and have had problems installing C++ on vista. Is it possible to get C++ working on vista or will I need to switch back to XP or ubuntu? Does Bloodshed work on vista?

Member Avatar for asmail2020
0
177
Member Avatar for JOSheaIV

Okay I am working on a group project in class and I have to learn XML for it, would anyone be able to point me in the right direction. If I recall right we are using XML to communicate with a flash program we're building. ALso if anyone knows anything …

Member Avatar for iceandrews
0
100
Member Avatar for arsnic

Hey guys (and girls) I'm not new to C++ but it has been a while since I've used it. I'm having an issue that I can't seem to place my finger on. I have the two bits of code below. The first comes out fine, or as I expect the …

Member Avatar for arsnic
0
223
Member Avatar for miss_indie

Ahm. after my problem about editing and stuff. here's now another problem. i'm updating multiple data on my database i patterned the codes in my previous post and after i've done editing here's what happened: [COLOR="Green"]mysql error You have an error in your SQL syntax; check the manual that corresponds …

Member Avatar for miss_indie
0
179
Member Avatar for sahil1991

hi, i know structures are basically used for holding data members whereas classes can hold both functions and data members. but contrary to the definition of structures can they also hold functions?? i read that they can but there wasn't any explanation about it. hopefully,some of few can come up …

Member Avatar for sahil1991
0
107
Member Avatar for camerondane

I am running a form that pulls data from multiple mysql tables. However whenever the php/mysql code is in the html form tags it will not read the php/mysql nor will it read any php for exampl echo "here";. I have done this several times before so I imagine it …

Member Avatar for camerondane
0
198
Member Avatar for gedas

hey guys, i am looking for source code as simple as possible that would be able to represent the shape of the human body in 3d (it could be almost stick man like or preferably something like this [url]http://www.3dlinks.com/oldsite/tutorials/GENERAL/chapter6_1.cfm[/url]) i would like to use for further development such as a …

Member Avatar for gedas
0
449
Member Avatar for Tiff22

Project 1 Project 1: Moving Objects Objectives Upon Completion of this project, students will be able to : Implement small classes that conform to a set specification. Use multiple classes together to solve a larger problem. Use logic to enforce a valid internal state and perform computations. Description The purpose …

Member Avatar for Katana24
-1
85
Member Avatar for Borzoi

I am planning to start up a new business soon and part of it is selling online. I was planning on using PayPal in the early days to handle the payments until we can afford good enough security so that we can hold data such as credit card information ourselves. …

Member Avatar for Borzoi
0
216
Member Avatar for doctorjo5

There are already 2 checkboxes to change to bold and italic. Now I want to make four radio buttons to change the font of the saying "say it with style!". Below is my code. [CODE]//******************************************************************** // StyleOptionsPanel.java Author: Lewis/Loftus // // Demonstrates the use of check boxes. //******************************************************************** import javax.swing.*; …

Member Avatar for kramerd
0
2K
Member Avatar for jimlaver

Hello to all and thank you for your attention. I need to do a few programs using Turbo C 3.0, but I have a problem when I use it on my notebook (running on WinXP SP2). It starts OK: it goes into MS-DOS mode (fullscreen) and all seems good, but …

Member Avatar for varshini gowda
0
145
Member Avatar for GTRMcLaren

I have created a login system based in PHP and MySQL, where upon registration, users enter the information required in the form. However, there is another page where they can review their information once they have logged in. I am new to PHP but I would like to know the …

Member Avatar for GTRMcLaren
0
2K
Member Avatar for jemimaloh

Hi there. I am currently trying programme my code[COLOR="Red"](P)[/COLOR] to lookup a hashtable from another class[COLOR="Green"](F)[/COLOR]. IS that possible? Given that the hashtable is in the main method of [COLOR="Green"](F)[/COLOR]. Should I apply a toString() in [COLOR="Green"](F)[/COLOR] and make it a String variable before I call it into[COLOR="Red"](P)[/COLOR]? If I …

Member Avatar for jemimaloh
0
524
Member Avatar for ddellostritto

Hello all - I'm having some trouble UPDATING my mysql using php. I'm working on a event planning system; the user can click on the company to see a small report that has some areas which must be editable (payment status, etc.). I get these values into a form to …

Member Avatar for ddellostritto
0
104
Member Avatar for kracko

Hi) I needed to make it possible for the user to upload many files from many directories of his pc to server. Here is the html and js code html [CODE] <div id="addPhoto" > Path and Title of the Photo. <br /><br /> <input type="file" name="flImg0" /> <input type="text" name="txtTtl0" …

Member Avatar for kracko
0
91
Member Avatar for AirGear

I want to add sound in my Java program. I searched in Internet, and what I found was only how to add sound to java applet. Isn't there any way to insert sound into the desktop application java? Thanks in advance Regards, AG

Member Avatar for AirGear
0
141
Member Avatar for veledrom

Hi guys, I have a query which returns 0 (zero) as a result not as a row in MySQL interface. However, when I run it in PHP the query doesn't return anything although there is one value which is 0. It is a Decimal type. Neither of these work. Result …

Member Avatar for ko ko
0
76
Member Avatar for slap01

currently im working on my php code which display username,date and comments. how can i copy the username andinsert it into the other table using mysql? here's the table looks like table_1 ID USERNAME table_2 ID DATE COMMENTS

Member Avatar for muralibobby2015
0
61
Member Avatar for ftl25

Hi. I have just downloaded infozip for integration with some of our vb6 software. I got it working however, when I check the zip folder, I see that a directory structure has been created for each path contained in the filenames. E.g., I have a list of files as follows: …

0
83
Member Avatar for andydeans

hi, i have a view in the database which queries about 6 tables to produce the results and works great. however i need to create a view based on the info from this view along with data from another table. when creating the view that queries the view and table …

Member Avatar for andydeans
0
119
Member Avatar for sakurayana

hye friends..... i need your help.....does anyone know how to select 2 databases simultaneously?i want to select certain data from database 1 and database 2.please help me for this....thanks in advance....

Member Avatar for destruct0
0
86
Member Avatar for as.bhanuprakash

Hi All, I need to validate the telephone number entered by the user in a form. Following are the conditions. 1. The length of the string should be 10. 2. The first character should be ZERO. 3. Remaining 9 characters can be any digits from 1-9. I am using the …

Member Avatar for as.bhanuprakash
0
125
Member Avatar for dustbunny000

Say I have two lists: list1=[a,b,c,d,e,f,a,b,c] list2=[a,c,d] How could I compare list1 and list2 such that I would get an output like: list3=[match,-,match,match,-,-,-,-,-] So that it goes in order Here's my code: [CODE]h=[] for i in range(len(change2)): for j in range(len(atom)): if atom[j]==atom[i]: h.append("H") else: h.append("-") print h[/CODE] Both change2 …

Member Avatar for Gribouillis
0
127
Member Avatar for julianmoors

Hi, I have a page using Moo Tools with 4 images. What I would like to do is to pass a boolean value to an array that exists outside of the image, but then I need to test to see if all elements outside the array are true. If so …

Member Avatar for julianmoors
0
68
Member Avatar for jackparsana

hi, [code] public void bingdrid() { cmd.Connection = con; cmd.CommandText = "SELECT Customer.* , convert(varchar(50),StarteTime,103),convert(varchar(50),EndTime,103), CompanyMaster.Name, Country.CountryName, City.CityName, State.StateName " + "FROM Customer INNER JOIN "+ " CompanyMaster ON Customer.CompanyID = CompanyMaster.CompanyID INNER JOIN "+ " City ON Customer.CityID = City.CityID INNER JOIN "+ "Country ON Customer.CountryID = Country.CountryID INNER …

Member Avatar for jackparsana
0
159
Member Avatar for burcin erek

[CODE]#include <cstdlib> #include <iostream> #include <conio.h> using namespace std; void x(); void x(char); void x(char,int); void x(char,int,char); void x(int); void x(char); int main(int argc, char *argv[]) { x(); x('B'); x('E',30); x('B',30,'E'); x(10); x('V'); getch(); } void x() { for(int j=0;j<50;j++) cout << '*'; cout << endl; } void x(char xx) …

Member Avatar for burcin erek
0
117
Member Avatar for rakeshbpatel

Hi, How to Open PDF document in asp.net web page without asking save/open/cacel dialogue . I have tried but every time it prompts for saving/opening or cancel action. Thanks in advance. Rakesh

Member Avatar for rajeshprasath
1
1K
Member Avatar for Metsuba

[CODE]using namespace std; #include <iostream> #include <fstream> #include <string> #include <cstring> int main() { ifstream InStream; string InFile; string InToken; cout << "Please enter the filename: " << endl; cin >> InFile; InStream.open( InFile.c_str(), ios::in ); if (InStream.fail()) { cerr << "Unable to open '" << InFile << "' for …

Member Avatar for Metsuba
0
75
Member Avatar for Radio2006

I am trying to start this java program using the requirements below, but I have no idea where to start. Just so you guys know, I am just starting out in this language. i have experience in Javascript programming, but this is completely different. I am used to Java programs …

Member Avatar for Radio2006
0
247
Member Avatar for charat

So i am a college student and my assignment is to create a code that determines if an entered number is a palindrome or not. the assignment is as follows: "Write the following two methods: //Return the reversal of an integer, i.e. revers(456) returns 654 public static int reverse(int number) …

Member Avatar for weathernerd1990
0
3K
Member Avatar for aslamdoctor

Hello Friends, I am looking for a web based music player which has functionality like these 1. Play/Pause button 2. Shuffle button 3. Repeat button 4. Search from playlist option 5. Volume Up/Down button 6. Next/Previous button I am currently using wordpress to on my site & uploading sons through …

Member Avatar for aslamdoctor
0
157
Member Avatar for Davenavie

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; //first step add this namespace Project4 { class Program { static void Main(string[] args) { Random random = new Random(); { int m = 0, j = 0, k = 0; Console.WriteLine("Enter Statet(m or j or k)"); String state = …

Member Avatar for Davenavie
0
129
Member Avatar for programmer12

Here is a snippet of my codes[CODE]<?php $animesql = "Select titles.name FROM titles WHERE titles.cat_id = 1 ORDER by name ASC"; $animeres = mysql_query($animesql); echo "<table id='MISC' style='display:none;' width='200' border='0' cellspacing='0' cellpadding='0'>"; echo "<tr><td><p class='al_toggle_txt'>"; while ($anime_list = mysql_fetch_assoc($animeres)) { //$str = str_replace(" ","",$anime_list['name']); $str = preg_replace('/[^a-zA-Z0-9]/','',$anime_list['name']); echo "<span style='cursor:pointer;' …

Member Avatar for programmer12
0
245
Member Avatar for Megabyte89

Sorry if this is in the wrong thread, I haven't been here in a long time. Hi, I'm having a hard time in trying to position my wx.StaticText and wx.TextCtrl so that it's not stuck at the very top and very left. Life so [URL="http://i154.photobucket.com/albums/s274/Tye-Ann/daniweb.png"]Screenshot Here[/URL] Here is the code …

Member Avatar for Megabyte89
0
982
Member Avatar for fuston05

New to programming. I am using fopen, fwrite fead to read and add content to a flat txt file. I can check to see if file_exists no problem, but if file exists but its empty... not sure how to check for that. Was hoping to at least get pointed in …

Member Avatar for fuston05
0
79
Member Avatar for DanielWuVB

Is there anyone use VB to write the POS software (for intrenet use only, not online) ? I am thinking about to write a POS software for restaurant, any suggestion ? which is better VB, C++, C# or .... Thanks

Member Avatar for DanielWuVB
0
87
Member Avatar for rico001

Hello I was trying to compile programs using DevC++ for Windows, (I also looked at WxDevC++) I can get generic console apps I made in C++ to compile under windows. What I want to be able to do is compile some opensource programs that use make to compile. When I …

Member Avatar for rico001
0
194
Member Avatar for crodriguez08

Hey there, I can't seem to figure out why i can't access the member '*next' from the Node class to the Shuffle function. Any help would be great. [CODE]/* llist.h * LList */ #include <iostream> #include <string> using namespace std; typedef string ElementType; class LList; class Node { protected: ElementType …

Member Avatar for hag++
0
210
Member Avatar for ronaldpaul

Hello. I wanna integrate a site similar to [URL="http://www.superknowa.com"]http://www.superknowa.com[/URL]. In this site when you got Services menu, there they have different menu in the left side. Again when u goto Products menu they have a different menu in the left. In the other pages no menu will be shown. How …

Member Avatar for trilithon
0
227
Member Avatar for Reliable

Hello Everyone, Hope you're having a great weekend, especially in the Chicago land area where it's usually pretty chilly this time of the year and instead it's in the mid eighties. I'm looking to make an unsubscribe page. I don't know if everything can be done automatically or not and …

Member Avatar for P0lT10n
0
1K
Member Avatar for trilithon

Hi All, I need to change the default values of checkboxes to 1 for checked and 0 for unchecked instead of 0 for checked and NULL for unchecked. If this is possible and how is it done. Here is the script that I am using: THE UPDATE FORM [CODE=php] <?php …

Member Avatar for trilithon
0
207
Member Avatar for Efficience

Hello Everyone , I've this strange problem with using char pointer in my c++ programme with the gcc compiler (version 3.4.2). [code] char a='A'; char *c=&a; printf("%p %c\n",c,*c); std::cout<<c<<" "<<*c<<std::endl; [/code] I expect the output of printf and cout to be same but why am I getting strange output like …

Member Avatar for Efficience
0
617
Member Avatar for awestove
0
67
Member Avatar for ivan3510

Hi! Sory for my bad english! How to make (simply, font color,size,bold,italic,underline,url,and image,undo,redo) tiny editor? Is there any website with tutorial? Thanks!

Member Avatar for ivan3510
0
197
Member Avatar for gaurav_13191

I have the following code for DDA Line Algorithm in C :- [CODE] //DDA Line Algorithm #include<stdio.h> #include<graphics.h> #include<conio.h> #include<math.h> #include<stdlib.h> #define Round(a) ((int)(a+0.5)) void linDDA(int xa,int ya,int xb,int yb); int main() { int gdriver=DETECT,gmode; initgraph(&gdriver,&gmode,"E:\\TC\\bgi"); linDDA(10,20,200,100); clrscr(); getch(); return 0; } void linDDA(int xa,int ya,int xb,int yb) { int …

Member Avatar for gaurav_13191
0
108
Member Avatar for kracko

I cant decide if it is appropriate to use user defined functions for every single action in a page..or it somehow may slow the work? I can alternatively make different php files instead of functions,,and they will do the same thing depending on values of some variables, but i would …

Member Avatar for kracko
0
114
Member Avatar for daudiam

I want to make a GUI application in which I want to do something continuously (i.e. in while loop) in a different thread, until the user presses a button. In this other thread, I am accessing GUI elements and hence I have to use [B]SwingUtilities.invokeLater()[/B] for this thread. But since …

Member Avatar for daudiam
0
1K

The End.