132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for levraheit

the program asks the user to input the number of users who wants to play. i couldn't get the result of players.length individually. each players result should be number of correct answers from the number of questions asked. please help!. [CODE]import java.text.DecimalFormat; import java.util.Random; import javax.swing.*; public class coll { …

Software Development java java-swing
Member Avatar for levraheit
0
105
Member Avatar for tyson.crouch

G'day, I've got rather a simple problem to deal with though i'm personally having some trouble. I've recently fixed up some of my database queries so that i use a view to get the data that i need. My view gets the following info: [LIST] [*]Attraction Name [*]Package ID [*]Package …

Software Development java
Member Avatar for tyson.crouch
0
321
Member Avatar for aleesya88

code [code] import java.awt.*; import javax.swing.*; import java.awt.geom.*; public class QuestionA extends JApplet { public void init() { PanelLukis panel = new PanelLukis(this); getContentPane().add(panel); } } class PanelLukis extends JPanel { private int x_axis, y_axis; private int squareWidth, squareHeight; private int x, y, coordinateX, coordinateY, squareNo; JApplet app; public PanelLukis(JApplet …

Software Development gaming java java-swing
Member Avatar for aleesya88
0
154
Member Avatar for noobday

Hi, I am currently programming using c++ language and want to take advantage of some very useful wolfram mathematica functions : By that, i mean sending external datas or using symbolic calculus, applying required functions, and taking the result back in an array of my c++ program for example; I …

Software Development c c# c++
Member Avatar for noobday
0
92
Member Avatar for Ayaat Monem

I couldn't understand what (ASCII Code) is.Thanks

Software Development c++
Member Avatar for abhimanipal
0
278
Member Avatar for mimis

Hi, how can i save the text from a file in a 2d array? For example the file will be like: ebjevjhb tgbvtrjk trjgbj tgrrktgtr kgtrl tkltrg t feg ergfern gn sdcx xssw And i want to save this in a char 2d array like: char str[3][100] so str[0]="ebjevjhb tgbvtrjk …

Software Development c++
Member Avatar for Ancient Dragon
0
120
Member Avatar for socket_to_me

Hello. This is my first post, and I am fairly new to C. I am writing a socket program and I am getting a segmentation fault upon runtime. My program compiles fine. I'm pretty sure it is due to my implementation of my data structure. My struct looks something like …

Software Development c data-structure
Member Avatar for abhimanipal
0
98
Member Avatar for darkdai

does anyone know whats wrong with my function? [CODE] void quarter(detailstype info[]) { int i,j; for(i=1; i<4; i++) { printf("for month: %d", info[i].month); for(j=1; j<emp; j++) { info[i].qt1=info[j].sal_amount+info[i].qt1; } printf("%f", info[i].qt1); } }[/CODE] it is giving me this error: error C2111: pointer addition requires integral operand

Software Development c
Member Avatar for abhimanipal
0
97
Member Avatar for spach79

Hi Guys, New to C# and I am struggling with storing a selected item from the array of comboboxes created at the runtime. Can you please help me [U]write the command within the [/U][U]button_Click event [/U]so that it calculates the sum of all selected items from the comboboxes created at …

Software Development
Member Avatar for finito
0
231
Member Avatar for leesho

i have an assignment due for my c++ class where we have to input from the keyboard the quantity and input from the keyboard the stock price. so that it outputs as: Stock Item Quantity Unit Price Total Value ---------------------------------------------- Television 5 368.00 1840.00 Video Recorder 8 268.00 2144.00 Camera …

Software Development c++ ios
Member Avatar for finito
0
169
Member Avatar for PierlucSS

I've added a small function in the Resources.Designer.cs and it working great, the problem is that when I add or remove something from the Resources.resx this function always get removed, is there any indicator I could put or anyway to bypass this? Thank you!

Software Development
Member Avatar for nick.crane
0
154
Member Avatar for sdhawan

hi, i have a rich text box in my application and a save button.Can anyone tell me how to send that text from rich text box to database .Thanks

Software Development
Member Avatar for sdhawan
0
93
Member Avatar for nezbo

Hello there, i've been searching the web and a few books for the last days with this (simple?) problem and only ended up fairly confused. the scenario: me and my friends are learning python while/by writing a little game together. My current problem is conserning getting the items (from classes) …

Software Development python
Member Avatar for nezbo
0
198
Member Avatar for jellybeannn

Can someone please help me in creating an array, I've got a DataTable with 270months columns so I've used a forloop for that. My array has to be the same as C158_Calc but only for 73months. At the moment the array is returnig each element as 0. C158_Calc values are …

Software Development
Member Avatar for Teme64
0
101
Member Avatar for DaveTran

I would like to automatically call a base class method for a class that inherits from the base class. From the extent of my limited knowledge, I know I can do this using base.Method(). [CODE] public abstract class Foo { private int a; private float b; public virtual void Init() …

Software Development
Member Avatar for DaveTran
0
127
Member Avatar for pink_872

Hello everyone, I am trying to build this simple chat program that consist of two classes. One is Server class and the other one is Clint class, but I have this problem with it. It does send and receive strings, but after the the second received string it does stop. …

Software Development client-server java
Member Avatar for s_sridhar
0
170
Member Avatar for dnk77

Gday all, I am studying/part time teaching C++ in an australian technical college. I have been asked to write a problem and solution for a class of young students. This is what i have so far: The header file 'DIGI_O.OBJ' contains functions 'void setup(void), 'int Ain(void)' and 'void Bout(int)'. The …

Software Development c
Member Avatar for Nick Evan
0
75
Member Avatar for new2programming

can anyone tell me why the timer doesn't work in my code? The game runs good but there is no timer? [CODE]//---------------- includes ---------------- #include "global.h" #include "SDL.h" #include <string> #include <cstdlib> #include <windows.h> #include <mmsystem.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <conio.h> #pragma comment(lib, "winmm.lib") using namespace std; …

Software Development c++ visual-studio
Member Avatar for daviddoria
0
241
Member Avatar for Abdel_eid

Dear friends i just need a web link or an ebook that contains all java built in functions and classes with it's return types and parameters. thanks in advance

Software Development java
Member Avatar for Abdel_eid
0
88
Member Avatar for larsen182

Hi guys:-) I have no experience in programming, and i realise that asking for someone to write an entire programme for me might be a stretch, but unfortunately i havent got any mates that are good at programming. I think the program i need is fairly simple once you know …

Software Development python
Member Avatar for larsen182
0
219
Member Avatar for yasemin

Hi, I have a question regarding a program I'm writing in C. I have a few variables which I would like to assign a random number to. However the sum of all the numbers I assign should equal 1. I have not been able to find a way to do …

Software Development c
Member Avatar for finito
0
99
Member Avatar for staufa

Hi im trying to connect to my database but i dont know why i cant load my jdbc driver: -I've saved the jar file together with the other java files in the same folder called "a" -I used –classpath flag: Windows: "java -classpath .\mysql-connector-java-3.1.8-bin.jar;. LabDB4" but I dont know if …

Software Development java
Member Avatar for peter_budo
0
226
Member Avatar for vanalex

Hello everybody! I need to move the get pointer of a text file at the beginning so i wrote in my program the following line (knowing that in a binary file really works): [code=c]ifstream in; in.open("data.txt", ios::in); in.seekg(0, ios_base::beg); [/code] but...in my text file doesn't really work. Is there a …

Software Development c++ file-system ios
Member Avatar for vanalex
0
226
Member Avatar for Theanonymous

Hi this is my problem Define a class Circle that stores the center and radius of a circle, by keeping the numbers in a dynamically allocated array of doubles. Supply the "big three" memory management functions. Use this class to demonstrate (a) the difference between initialization Circle s; Circle t …

Software Development c++
Member Avatar for Theanonymous
0
113
Member Avatar for azra36

i have an unhandled exception cx0005:access violation in VC6++ while i try to run my c code with main.exe it gives a window showing to send a error report or to debug, while i give debug, it takes to fwrite file an breaks at the point --> if (anybuf(stream))//this is …

Software Development c file-stream
Member Avatar for azra36
0
372
Member Avatar for vinsbg

pls help me with this one..everything is ok but when i add student and faculty number and then try to list them says "No added students'...:@ This is: main.cpp [code] #include <iostream> #include "Student.h" #include "Course.h" using namespace std; list<CStudent*> students; list<CCourse*> courses; CCourse* findCourse(string name) { CCourse* course = …

Software Development c++ oop
Member Avatar for vinsbg
0
123
Member Avatar for NPOT

I want to get the size of a folder and also the size of files in that folder but the output is zero even though I used the java **long method** for file size and a for loop to access the files in the folder.The programme only outputs the size …

Software Development java
Member Avatar for masijade
0
132
Member Avatar for tacoman

Hi, I am writing a program that receives a binary data stream over serial. The size of the bytes I read fluctuates between 1 and 4 bytes. I want to read the specified number of bytes, and return an UInt32 with the binary data. I have tested around with the …

Software Development
Member Avatar for renevdkooij
0
839
Member Avatar for chama89

I'm running Eclipse for Java. I created a DOM version of an XML file. Now I want to change an attribute of an element in the file. I called a method that called a method in the class that controls the DOM, and I got a dialog box saying "JDI …

Software Development java queue xml
Member Avatar for patrick076
0
1K
Member Avatar for BonaDrag

Im trying to write c# form validation for a xaml-form. The only two things that seem to work are the lines of code that clears the text- and passwordboxes and displays the messagebox. Are my regex-examples wrong, or do I need to work with some kind of while-statement(s)? [code=c] //start …

Software Development c# regex
Member Avatar for BonaDrag
0
124
Member Avatar for Sandhya212

Hi, I need to make a pairs between array elements. For eg if the sored array I have is [CODE]1 1 1 2 1 4 1 6 2 3 2 5 2 8 2 9 3 7 3 10[/CODE] then I need to pair every element of the 2nd column …

Software Development c++
Member Avatar for Sandhya212
0
245
Member Avatar for GamerXxX

I creating a 2d computer game, and I want to put enemies that in that appear at random coordinates. The problem is i'm not sure entirely how to do it. I have the "enemy" in a array of 30,and then i want to put these 30 enemies on a map, …

Software Development c++
Member Avatar for GamerXxX
0
762
Member Avatar for beforetheyknew

I dont really know specifically what im searching for, which is why i haven't just found this via searching the web. Have you guys come accross or know of any sort of quiz questions like where it gives you a for loop which isn't in the normal format and then …

Software Development java
Member Avatar for dongbv
0
111
Member Avatar for gargi3542

hie all, i needed to make a code in simple turbo c for ethernet packet injection as well as data reception. I tried the code in windows but its not working. possibly due to linux based commands. plz help me..

Software Development c
Member Avatar for gargi3542
0
191
Member Avatar for abhilala

how to pass two parameters using a dataenvironment. I have a table salary record in which there are two coloumns date and unit, i want to pass these parameters at run time.

Software Development sql visual-basic
Member Avatar for Bashir ahmad
0
93
Member Avatar for Raakesh399

Hi every one!! I have a java program and i don't know how to delete a record from an array of objects using JOptionPane

Software Development java
Member Avatar for jwenting
0
93
Member Avatar for helios0684

Alright, let's try this again. I've started over from scratch and we have got the basic functions working. Everything so far has checked out, but I am still trying to get it to pull the right credentials. I can get it to pull one of the rows out of the …

Software Development postgresql python session sql
Member Avatar for woooee
0
297
Member Avatar for WesFox13

Hello all, I need a bit of help with this program, I need to make my code create a complete binary tree using an array. As well as create a driver class that displays the tree graphically Here is what I have so far with my code Tree Code: [CODE]import …

Software Development java
Member Avatar for WesFox13
0
170
Member Avatar for sanjkadam

I need to submit a project in vb & sql I have a project in vb & access which I have to convert to vb & sql secondly I have basic idea of sql data connection. but unfortunately I have done my sql class long back & lost the notes …

Software Development mysql visual-basic
Member Avatar for vb5prgrmr
0
85
Member Avatar for puppykillaz

I am getting an error message that is quite new to me. I normally can call methods without incident but this time, I saw a new error message. This code is sample coding I am using to see how to fix three of my issues. First Class [CODE] public class …

Software Development java java-swing
Member Avatar for puppykillaz
0
315
Member Avatar for bklearner

I believe that ofstream is for writing into a file and ifstream is for reading from a file. I am trying to write into a file by taking commandline input from the user which is the accept_data() function and and then display all the data from the file that the …

Software Development c++ ios
Member Avatar for NathanOliver
0
259
Member Avatar for toadzky

I am writing a script to rename and reorganize the mp3 on my iPod. For those who don't know, if you drag and drop your music from the iPod to a computer, there is a crazy F## folder structure and all the names are 4 random characters. I want to …

Software Development python
Member Avatar for TrustyTony
0
185
Member Avatar for avarionist

I'm trying to just use a normal stack and have it pop the numbers in the order stacks normally go but it just keeps popping 28 (or at least from output thats what i see) it should just be pretty straight forward but .... [CODE] #include <iostream> #include <stack> using …

Software Development c++
Member Avatar for avarionist
0
116
Member Avatar for debugger09

hi guys!! i am wrting a program for a small arithemtic game,it displays two numbers and ask user to enter the sum of these two numbers,the program runs fine but i want to add a countdown timer,i mean time limit for user to answer all 10 questions within 30 seconds.i …

Software Development c++
Member Avatar for debugger09
0
153
Member Avatar for brad82

Hey all, I am pretty new to C and am trying to make a basic HTTP server to learn more about sockets. I managed to get the sockets working fine, and sent some data to the browser when I hardcoded the data. However I am now trying to read from …

Software Development c
Member Avatar for Aia
0
110
Member Avatar for niconico96

Hello. I have a file, with some HTML in it. I would like to make a shell/bash script that moves ALL of the content of that file into ANOTHER HTML file at a CERTAIN line number... Does anyone have any suggestions? If not possible at a certain line, then at …

Software Development file-system shell-scripting
Member Avatar for niconico96
0
158
Member Avatar for Choink23

we were tasked to come up with a peer 2 peer chat program using serial ports using only nasm and C language. can anyone give me an idea on how i can do it? or references that can help me figure out what to do. i'd really appreciate you're help …

Software Development assembly peer-to-peer
Member Avatar for thxliatdu
0
80
Member Avatar for vbx_wx

It is posible in a linked list implementation,the nod to hold more then one information ? for exemplei want the node to hold a person`s name,adress,country,etc....

Software Development c++ linked-list
Member Avatar for Narue
0
148
Member Avatar for Sandhya212

Hi, I would need to create unique filenames appended by the iteration number. For eg. [CODE]for( i=0;i<iterations;i++){ ofstream outfile("iterfile"+"i"); // i.e filename should be iterfile0 for 1st iteration. } [/CODE] I need to cast "i" from int to char so I tried [CODE]ofstream outfile("iterfile"+(char)i)[/CODE] but it did not work. How …

Software Development c++
Member Avatar for Sandhya212
0
221
Member Avatar for ferenczi

Hello, I have a question: [CODE] Algorithm DFS(Vertex V) mark[V] := 1; print[V]; for each (edge (V, W)) do if mark[W] = 0; DFS(W); [/CODE] I would like to realize this recursive procedure (depth-first search), but in my graph representation (with adjacency lists) I use two different classes, one for …

Software Development algorithm c++
Member Avatar for thelamb
0
126

The End.