199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Kosithc

Hello, I am using this piece of code for allocating 3D array in memory by my dimensions HEIGHT, WIDTH, DEPTH which are variables. [CODE]p2DArray = new double**[HEIGHT]; for (int i = 0; i < HEIGHT; ++i) { p2DArray[i] = new double*[WIDTH]; for (int j = 0; j < WIDTH; ++j) …

Member Avatar for Ancient Dragon
0
203
Member Avatar for wikinick

Hi, For a school assignment, I have to make a game of BlackJack using VB2008 Express. I have decided that in the login screen, the user will select his name from a listbox, and then type his password into a text box in order to get to the game screen. …

Member Avatar for Pha
0
114
Member Avatar for idskot

Hey, guys. I have this code here, and for some reason, it won't update the data! At all! When you press 'submit', it just reloads the data that was already on the DB table. It's really confusing!!! [CODE] <? include_once ("../auth.php"); include_once ("../authconfig.php"); include_once ("../check.php"); $connection = mysql_connect($dbhost, $dbusername, $dbpass); …

Member Avatar for hielo
0
149
Member Avatar for Smudly

My uploader allows the following file formats: jpg pdf gif png I tested that if someone was to name a file configure.php.jpg, my uploader allows it to upload I want to do a check to see if the user has 2 extensions, and if so it will not allow them …

Member Avatar for kekkaishi
0
72
Member Avatar for afizaex

This Array topic I had many problem, someone help me? Thank you! [IMG]http://i291.photobucket.com/albums/ll311/afizaex/Awam/IMAG0001.jpg[/IMG] [IMG]http://i291.photobucket.com/albums/ll311/afizaex/Awam/IMAG0002.jpg[/IMG] [IMG]http://i291.photobucket.com/albums/ll311/afizaex/Awam/IMAG0004.jpg[/IMG]

Member Avatar for afizaex
0
134
Member Avatar for toferdagofer

When i run this it does not work like its supposed to. Basically the program is a password verifier that checks what the user enters. It works to check for the 6 characters but it does not work correctly to check for the uppercase, lowercase, or the digit. [CODE]import javax.swing.JOptionPane; …

Member Avatar for toferdagofer
0
134
Member Avatar for iceman709

Hi, thanks for reading my post. A brief background, I just started a Business Information Systems program. I am three weeks into my Java program so my experience with Java is little. The problem I am trying to solve is a 2 part question. I take pride in my work …

Member Avatar for NormR1
0
1K
Member Avatar for asian_al

I need to change this program that I made to an applet. I can't seem to get java to paint. Do i need to use a content pane? I tried using a content pane which was commented out. I must be missing something. [CODE] import javax.swing.JApplet; import javax.swing.*; import java.awt.Color; …

Member Avatar for NormR1
0
103
Member Avatar for MothershipQ

I have a 200 point program to write for school that says how much extra grain will be left in the silo and Tomorrow is the last day to turn it in. But something is wrong with my while loop. Could you help me out? Also, I'm writing this code …

Member Avatar for gerard4143
0
136
Member Avatar for nikolai090

Hi there, is it possible leave a scanf blank? For example my code is: [code=c]scanf("%s%s",&a,&b);[/code] After entering the string for "a", I would like to leave "b" blank so I press enter but it just jumps over to the next line, is there a way to leave a "b" blank? …

Member Avatar for nikolai090
0
117
Member Avatar for akinfemi

pls my eclipse galileo int r = GImage.getRed(pixel); int g = GImage.getGreen(pixel); int b = GImage.getBlue(pixel); also int [][] array = image.getPixelArray(); as an error like its not in the library... anyone pls

Member Avatar for akinfemi
0
259
Member Avatar for shinnie

I'm writing a program about words game. The program is working fine but i'm having trouble in reduce the array to size 5.that mean the user only can input 5 times then the program shut down Anyone have any ideas?

Member Avatar for jon.kiparsky
0
293
Member Avatar for Newtype

Write a short program that takes an integer value (call it n) from the user and prints out a triangle composed of O and X characters. For example, if the user enters 3 as the input, your program should print out: O OX O X O If the user enters …

Member Avatar for Newtype
0
170
Member Avatar for BoB3R

Hello, I don't have any errors it just not showing a thing if i leave only the html code it works but in php it wont so if you can help me would be cool, Thanks =] [CODE]<?php $a = trim($_REQUEST['a']); $student = trim($_GET['student']); if($a == 'edit' and !empty($id)) { …

Member Avatar for BoB3R
0
151
Member Avatar for redous

okay so i got a little script that from button links load different information within the same page what im trying to achieve is pulling php coding to the same file but each time i try it throws up errors below is the code that is giving me a problem …

Member Avatar for redous
0
309
Member Avatar for redous

Hi, I have some PHP code in a project which if a user is logged in the in will display the username and other options and if the user is a guest it wont. [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Home</title> </head> <body> <!-- HTML …

Member Avatar for redous
0
199
Member Avatar for AMADH

I a table that I have added the function to be able to sort, it works, but it is coming up with an errors: Notice: Undefined index: sort in C:\wamp\www\test stuff\test.php on line 25 Notice: Undefined index: sort in C:\wamp\www\test stuff\test.php on line 28 Notice: Undefined index: sort in C:\wamp\www\test …

Member Avatar for AMADH
0
1K
Member Avatar for TheBaby7591

I'm supposed to create a program that reads in the name of a file, then takes the names of students, which are listed (last, first, m) and concatnate the first with the last (firstlast) and add .dat at the end for each student to open a file with and unknown …

Member Avatar for TheBaby7591
0
114
Member Avatar for DanielWuVB

can somebody tell me which book for beginner in C++ .... I have some background in VB6 in old time ... Thanks !

Member Avatar for DanielWuVB
0
132
Member Avatar for toshiro101

hi! i really need a java word counting program. . . . an example input: input=> hello there!, hi! output=> hello = 2 there = 1 i hope you guys can help! i really need this! thanks in advance! by the way it should run under command prompt! thanks!

Member Avatar for NormR1
0
161
Member Avatar for iwanttolearnc

good day guys. i was studying a particular block of code and came across an operator: ->. im not exactly sure what it does. i found some notes saying that ptr-> is equivalent to(*ptr). for the life of me i just cant see how that applies here. care to help? …

Member Avatar for iwanttolearnc
0
100
Member Avatar for lewashby

Minimal Server [CODE]import socket s = socket.socket() host = socket.gethostname() port = 1234 s.bind((host, port)) s.listen(5) while True: c, addr = s.accept() print 'Got connection from', addr c.send('Thank you for connecting') c.close()[/CODE] Minimal Client [CODE]import socket s = socket.socket() host = socket.gethostname() port = 1234 s.connect((hos[/CODE]t, port)) print s.recv(1024) These …

Member Avatar for Gribouillis
0
125
Member Avatar for Puster

Hello, I am worcking on a script that do that i can upload files to my site and set size,filename, etc into my database but this isnt worcking, can someone help me?:) [CODE]<?php include "connect_profile.php"; $obj = new physic_profile(); // Setup our connection vars $obj->host = '*********'; $obj->username = 'sjo*******'; …

Member Avatar for P0lT10n
0
138
Member Avatar for ale89

Hi everyone! How is everybody? Help me modify this code to show a user profile. I need to show all the data but do not know how to put in the code to display data and other insurance I have to change the sql query. If the logged sample data …

Member Avatar for P0lT10n
0
264
Member Avatar for dschuett

I have downloaded and implemented Uploadify because users were tired of having to browse to each and every file they needed to upload(since this is used for uploading multiple pictures) allows a user to select multiple pictures at once without having to click a "BROWSE" button to go fetch each …

Member Avatar for P0lT10n
0
228
Member Avatar for myk45

Hello. im having a little problem with file inclusion. im getting the following errors: error LNK2005: "long * addresses" (?addresses@@3PAJA) already defined in rere.obj fatal error LNK1169: one or more multiply defined symbols found My 3 files are as follows: mainFile.c [CODE]//Program for a singly-linked list #include "def.h" #include<stdio.h> #include<stdlib.h> …

Member Avatar for myk45
0
107
Member Avatar for pnelsonsr

Been out in the non-NetBeans world for a while and I'm trying/needing to get back but having a problem. My app dir structure looked like this: /conf /log /data /src/com/myapp/myapp.java /src/com/myutils/myutils.java I used new project and selected import from existing sources in NetBeans. OK so far so good. The myapp.java …

Member Avatar for pnelsonsr
0
137
Member Avatar for flyingcurry

The task is to use a recursive algorithm to determine the sum of two numbers n1 and n2. I just keep on returning to using the formula n1*n1 +n2*n2 The part which I have questions is I don't get how to do this in a recursive way. Thanks!

Member Avatar for flyingcurry
0
2K
Member Avatar for Meleeruler

Alright, here's a problem I can't seem to figure out. I'm very new at all this, so hopefully this problem isn't too ridiculous. Basically the gist of it is in a program I made for a class; it wouldn't let the input for the cin.getline be typed unless I put …

Member Avatar for Meleeruler
0
259
Member Avatar for Buffalo101

I'm trying to read one line at a time from a .txt using FileInputStream. [code=Java] FileInputStream in = null; // Open an input stream in = new FileInputStream("out.txt"); int c; while ( (c = in.read() )!= -1 ) textArea2.append(new DataInputStream(in).readLine() ); in.close(); [/code] For this out.txt: [code=java] abc abc lalala …

Member Avatar for Buffalo101
0
85
Member Avatar for xterradaniel

I am having trouble coming up with formula to print a triangle of numbers in a panel. I can print them to a specified number, of my choosing, but I can't seem to come up with a formula to print them out according to the size of the frame and …

Member Avatar for NormR1
0
207
Member Avatar for red999

Are there any Java documentation similar to the one at [url]http://www.cplusplus.com/?[/url] I have checked the official Java documentation at the Sun website, but it does not show as much information as the one that I use for C++. For one thing, there are no example codes =(

Member Avatar for red999
0
68
Member Avatar for TinhornAdeniyi

[CODE][/CODE]ok this code has a few quirks that is annoying me the only part that does not straight up work is the Add a show i have a problem in increasing the size of the array. there is also the issue of couting two zeros for the minutes of the …

0
81
Member Avatar for jackforall

hey all i just got a training in a visual studio 2008 for developing sites which have their ext as .aspx and have database and all that work done usink linq now i want to create a site for me and before i start developing it i just want to …

Member Avatar for jackforall
0
102
Member Avatar for BboyRodimus

So the prompt is here: Assignment #2 will be the construction of a program that reads in an unspecified number of integers from standard input, performs some calculations on the inputted numbers, and outputs the results of those calculations to standard output. The numbers could be delimited by any kind …

Member Avatar for NormR1
0
1K
Member Avatar for newbiecoder

I took these codes from Deitel's book directly, I tried them at both Linux gcc and Codeblocks on Windows and they both gave errors. Can you tell me why I am getting these errors? Am I doing a mistake by compiling them? Here is the code: new.cpp: [CODE] #include <iostream> …

Member Avatar for newbiecoder
0
160
Member Avatar for gisek

Hi, I'm trying to create a multiplayer game and I'm wondering if it will be useful to use threads and also how to use them. There would be the following actions in the game (on linux server): 1) server checking if clients are still connected 2) collision detection 3) processing …

Member Avatar for Ancient Dragon
0
153
Member Avatar for fukki

Hello ! I have array of struct and i want 1] when i run the program to load the data from it. 2] when i make changes to be saved in the text file the same time or when i quit the program I tried to put data in txt …

Member Avatar for Nick Evan
0
2K
Member Avatar for fukki

Hello ! I have array of struct and i want 1] when i run the program to load the data from it. 2] when i make changes to be saved in the text file the same time or when i quit the program I tried to put data in txt …

Member Avatar for Ancient Dragon
0
549
Member Avatar for gidireich

Hi, I work on PHP code with NetBeans and Xdebug. I use Xdebug for step-by-step debugging and the like. I'm able to debug the flow of the default request, but not the flows generated by specific _get/_post or Ajax requests. Anybody has an idea how can this be done? When …

Member Avatar for gidireich
0
204
Member Avatar for PChuprina

Hello all, I am currently getting this error message: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality …

Member Avatar for PChuprina
0
361
Member Avatar for arjen

hello guys can u help me with code. Everytime i run the program and update the data in database. I got the error in this code [CODE]da.Update(ds, "reservationdata")[/CODE] [CODE] Dim dt As DataTable = ds.Tables("reservationdata") If resno.Text = "" Or custname.Text = "" Or custaddress.Text = "" Or TextBox1.Text = …

Member Avatar for arjen
0
247
Member Avatar for kuchick32

I have a problem. I got my file to open but I don't know how to modify the file and have the output I need. Here is my code so far [code] #include <fstream> #include <iostream> #include <cstdlib> int main() { using namespace std; ifstream input; ofstream output; input.open("input.txt"); if …

Member Avatar for kuchick32
0
107
Member Avatar for Xufyan

I've create a program for the array of objects, here is the code..! [CODE]import java.io.*; class Student{ int rollno; String name; public void setValues (int rollno, String name){ this.rollno = rollno; this.name = name; } public Student getValues(){ Student s = new Student(); s.rollno=this.rollno; s.name=this.name; return s; } } class …

Member Avatar for NormR1
0
231
Member Avatar for talha06

Hello to everyone, I'm trying to setup a Spring MVC project. I posted my configuration files below. I'll be really glad if someone helps me. Thanks in advance, With regards, Talha. [B]web.xml[/B] [CODE]<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>local</display-name> <context-param> <param-name>webAppRootKey</param-name> <param-value>webapp.root</param-value> </context-param> <context-param> <param-name>log4jConfigLocation</param-name> …

0
142
Member Avatar for srikanth2321

Hi, I written this code to calculate the clusters with the points taken from a datagridview. It works fine for small number of data points. But taking lot of time(nearly 15 mins) to run for 1000 rows and 5 columns in a datagridview. Is there a way to make it …

Member Avatar for srikanth2321
0
129
Member Avatar for Mikeysaxton

Okay so the object is to print a wheel based on the user's input of the inner and outer radii. I've written a program that checks to see if the distance of the x and y is within the radius. However, i get some weird stretched out tire. If anyone …

Member Avatar for Mikeysaxton
0
203
Member Avatar for coolhunk

Hi, I am trying to develop a chess game using textual interface. I am using console read to capture moves and update the board accordingly. I am unable to remove Jlabel from the JPanel, i have called sthng lyk panel.remoove(label).......Can any one help me to sort it out plz or …

Member Avatar for coolhunk
0
118
Member Avatar for fukki

I have read many topics regarding sort but i wasn`t able to sort them. I am new in C++. What changes i must do to sort the names alphabetically ? [code]#include "stdafx.h" #include <iostream> #include <string> using namespace std; class classroom { public: string studentName; void classroom::createStudent(string); }; void classroom::createStudent(string …

Member Avatar for fukki
0
146
Member Avatar for Buffalo101

Hello, I have a jTextArea I want to use as an accounts panel by an administrator. The admin can append user + " " + password + " \n" to the jTextArea (one line per user + password). When someone tries to log in, the idea is to iterate through …

Member Avatar for Buffalo101
0
187

The End.