64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for AbberLine

Hi Recently I started programming C (not C++) in borland 4.5 at school. Now my teammate and I have to make a small game. Therefor I will use an two-dimensional array, the field (a table, rows and colmnes). This two-dimensional array holds chars ("X", "|", "J", "-" and " "). …

Member Avatar for AbberLine
1
223
Member Avatar for klrdn

I copied qbasic.exe and qbasic.hlp (no way to tell the version ?) from my Dos 6 Install floppy into a folder. Qbasic.exe executes ok either from within or outside the folder, but can't access its help file. I used the qbasic options 'help path' tab to enter the correct path …

Member Avatar for klrdn
1
497
Member Avatar for Ravenous Wolf

here is a question which some would consider silly but i would still love to ask. what are the chances of C# or java replacing c++ as the gaming language? more and more books are being written about game design in C#. c++ has the advantages of being fast and …

Member Avatar for maddog39
0
188
Member Avatar for Artmann

Hello. I've recently started to explore the world of Java ME, and now ther's only one problem. Compiling. I've installed Java adk 1.6, Sony Ericsson SDK and even some tool I found under Suns Java ME section but the compiler still doesn't find the ME packages. Hope somone could post …

Member Avatar for peter_budo
0
155
Member Avatar for cs_tx_usa

How could we implement the code if I want to read a grayscale image file into two dimensional byte array? Since we don't always know the number of rows and columns binary file has beforehand, how can I read that into 2-D array? A grayscale image is single band image …

Member Avatar for iamthwee
0
231
Member Avatar for chaosatom333

Hi, i am given an array of atomic numbers, and I need to arrange them in order from 1-100 or something. the program i wrote is this [code] for(fill = 0; fill < (m-1); ++fill) { if(atomic_num[index_of_min] <= atomic_num[fill]) { temp = atomic_num[index_of_min]; atomic_num[index_of_min] = atomic_num[fill]; atomic_num[fill] = temp; } …

Member Avatar for iamthwee
0
283
Member Avatar for LarZ

Can anyone point me in the direction of a small app that displays 2 panels on a frame, where one panel is small and at the top taking up about 20% of the frame, and the other panel takes up 80%. I would like it to be possible using wxBoxSizer …

Member Avatar for vegaseat
0
833
Member Avatar for LanierWexford

Is there a function to remove punctuation from a string, or check to see if a char is a letter? This is a home work assignment to: 1 Write a class stack and a class queue 2 Test your classes by writing a program that will ask the user for …

Member Avatar for LanierWexford
0
1K
Member Avatar for Magda

Hi all, I need to write this program today and I really struggle :-( Would you be able to help at all? public class ISPN { private int[] authorId; private int[] programId; /** * Creates a new instance of ISPN */ public ISPN(int[] anAuthorId, int[] aProgramId) //constructor that takes two …

Member Avatar for Joey Bumba
0
301
Member Avatar for jackskell26

Hello All, This is suppose to be my finished code for my "PacMan Game". All this "game" is suppose to do is to allow a Pacman to eat dots that can be placed on the screen at any location by clicking the mouse. It has a main class and a …

Member Avatar for jackskell26
0
127
Member Avatar for drew.haley

Is there a way to accept keystrokes through c# in a console app? Basically I want to apply macros/the f-keys to my program, thanks.

Member Avatar for InfiNate
0
119
Member Avatar for Questions???

I was wondering if someone would be willing to assist me. The program listed below compiles, but when I run it I get the following error an exception 'System.FormatException. I think my error is possibly convertinting the string in the readLine to a boolean inorder to test the true false …

Member Avatar for Questions???
0
265
Member Avatar for aloh

Hi, I'm quite a beginner and not sure if I can be helpful in the future. But I'll try! anyway, here is my problem... I've been searching on the net & looking up books but still don't have a clue of how to get it work. I have to simulate …

Member Avatar for Salem
0
130
Member Avatar for tactfulsaint

please i need some help with this, i want to display the curent date n time at the bottom of this page. when i run it . THANKS. [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.util.Calendar; /* <applet code=" The.class" height=20 width=20> </applet> */ public class The …

Member Avatar for tactfulsaint
0
157
Member Avatar for satimis

Hi folks, Perl === Instead of using following command printing output to a file; $ perl AAA.pl > /pathto/name_of_file is it possible adding "print file function" to the script 1) If YES Please advise how to make it. 2) Can I add following bash syntax to the script user=$(whoami); now=$(date …

Member Avatar for KevinADC
0
199
Member Avatar for mattp123

Hey guys I need some help on this code. I'll just post the parts of the code needed to do thing I'm stuck on. [CODE]class Robot { public: // Constructor Robot(Arena* ap, int r, int c); // Accessors int row() const; int col() const; // Mutators void move(); private: Arena* …

Member Avatar for Lerner
0
81
Member Avatar for blindkilla

here is my problem ... I have a bunch of usernames in a listbox called listBox1, how can i store each line of text into a mulitiple arrays of a string? i cant seem to figure it out I want to do this so later i can use "usernames[x]" so …

Member Avatar for blindkilla
0
98
Member Avatar for kahaj

I thought this script was working. I absolutely cannot get IIS to fully and completely work on my home comp. After making a special trip to school to test this thing out, it ends up that it's only displaying the last data entered instead of the averages, totals, etc. This …

Member Avatar for kahaj
0
130
Member Avatar for fishsqzr

I can't seem to get OleDb controls to show up in C# Express. Are they excluded for some reason? I have made sure they are selected in the "Choose Toolbox items..." dialog, where they are listed, but they don't appear anywhere on the toolbar. I tried to add them to …

Member Avatar for fishsqzr
0
83
Member Avatar for Acidburn

Hello there guys, I've got a strange problem... I'm using NetBeans IDE v5.5 and when I run my application inside netbeans by clicking 'Run main project' it runs and everything works correctly. Now when I go to the dist folder and double click it... (the Jar file is assicated with …

Member Avatar for Black Box
0
109
Member Avatar for jay64

I don't really know how to explain this easily. I guess I will layout the project I am trying to do, and the problem I am having with it, and maybe someone could explain it better to me. I am trying to build an online food journal for a fitness/nutrition …

Member Avatar for jay64
0
151
Member Avatar for Barefootsanders

Hey everyone, I'm attempting to monitor a directory, including subdirectories, for changes and update a database. The database part I can do, I just cant figure out how to monitor the directory for changes.. any suggestions? Is there an easy way to do it like function.getChanges(directory)?? Microsoft seems to make …

Member Avatar for Barefootsanders
0
90
Member Avatar for fishsqzr

This may be a NET bug, but maybe I'm missing something. I've been trying to trap a certain kind of error when using a DataGridView. The following describes the steps to generate the error. I used a typed dataset to make the example quick, but the same thing happens if …

Member Avatar for fishsqzr
0
557
Member Avatar for drsmith

I want to create a dynamic link to a file...basically the info is displayed in a .php template read in from MySQL db. I want to also have a link to the saved text file. Here is some of what I have: [code] $date=$_POST[Date_Entered]; $shift=$_POST[shift]; $shift_table=$shift."_shift_duties"; $fileDir="TOP".$shift."Shiftlog" $fileID=.$date."_".$shift."shift.rtf"; [/code] and …

Member Avatar for drsmith
0
106
Member Avatar for zandiago

Good day to all of you who assisted me. I never thought I'd pass this class, but with all your help, I made it. This is the only C++ course that I needed...so I really wont have any c++ questions to post around here to bug anyone...but i'll still hang …

Member Avatar for zandiago
2
95
Member Avatar for Nareshp_123

Hi all, i need to do like ,when i place the mouse pointer on a textbox(i think its onmouseover event.not sure) it should display or popup a small message which provides information about the format of values need to be entered in that textbox.please provide me like how can i …

Member Avatar for Nareshp_123
0
103
Member Avatar for DaitoTsu

Hi there guys & gals, this is my first post here will try to be as accurate as possible. The problem i have seems to me to be quite basic but i cannot for the life of me work out how i can do it, am hoping you good folks …

Member Avatar for DaitoTsu
0
192
Member Avatar for mghihor

Hi GridView Experts! I have problems with GridView when adding a column using TemplateField. I fill GridView1 from a stored procedure. It has a Select statement and returns 14 columns, `AutoGenerateColumns="True"`. When I add two columns manually to be able to start drag and drop, the drag and drop works …

Member Avatar for mghihor
0
661
Member Avatar for chaosatom333

Hi, i merged two files into chem.out but i need to figure out how I would arrange them by atomic number and how i can eliminate the duplicates. Should I use structures? here is the program i wrote so far, [code=c] #include<stdio.h> #include<math.h> #include<string.h> void merge_chem(FILE * inp1, FILE* inp2, …

Member Avatar for Salem
0
260
Member Avatar for 18041980

I need script for pinging the machines in subnet make list of alive hosts with there OS version redirected in a file. I am from System admin field and not aware of scripting and also beginner of UNIX. Thanks in advance.

Member Avatar for 18041980
0
213
Member Avatar for jaepi

Hello there, do have any idea if there is a function that gets wchar from the stream, somewhat similar to fgets function. Thanks. :)

Member Avatar for jaepi
0
148
Member Avatar for jaepi

Hello there, is there a function in Linux that can handle the reading of an .ini file? Thanks.

Member Avatar for jaepi
0
1K
Member Avatar for chaosatom333

Hi, I copied one file into another but couldn't figure out how I would number the lines and put a heading on chem.lis, which is the output. here is the program i wrote so far [code=c] #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int argc, char *argv[]) { FILE *inp, *outp; char ch; …

Member Avatar for Duoas
0
271
Member Avatar for slayer10

i want ot make a 2-dimensional array of JToggleButtons to store toggle button names but i cant figure out the snytax Please Help!

Member Avatar for slayer10
0
289
Member Avatar for moyles
Member Avatar for BensonRoss

Trying to write a program that will add two vectors (of type vect_t) and return a vector of type vect_t. Though I can't get my add_vect function to work. lots of redefinition errors telling me different basic types, and i can't figure out how to make it work right. Any …

Member Avatar for BensonRoss
0
99
Member Avatar for kahaj

I'm writing to a file. There are only ten items able to be written to the file (game scores, test results, whatever). I'm using a drop-down selection list on the form to tell which number is being submitted. Is there any way to have it checked as the page loads …

Member Avatar for kahaj
0
107
Member Avatar for thanaras

Hello. I have a grayscale image that i want to process. I take the raster and then i want to scan the pixels and once i find a non-black pixel, i want to make an operetion(which doesn't matter right now). When i have an ARGB image i do this int[] …

Member Avatar for Ezzaral
0
126
Member Avatar for kv79

Hi to all ,just a small question. When i read in the book for Win32 API tur. in c++, this: " cbSize The size of the structure. " I asked my self ,what sturcture? I tought we useing class.

Member Avatar for kv79
0
115
Member Avatar for Noliving

Hello everyone, my problem that I'm have is that I have to get the volume and the surface area of a sphere using a class. I believe I was able to do that part of the problem correctly. The issue I'm having is getting that information to print from the …

Member Avatar for imamyth
0
113
Member Avatar for __vmware__

Hello, I have problem witch i've been working on for a couple of days now with no real progress. The problem is that i'm trying to search trough a array of pointer for a certain value. If the value exist return that value to be used in another function, but …

Member Avatar for __vmware__
1
109
Member Avatar for ChaseVoid

Has anyone installed it? I've downloaded both express and full developer edition but I can't get past the user account stage. Can someone give me valid userID's and passowords for it? I don't have a password on my user account though..

Member Avatar for ChaseVoid
0
89
Member Avatar for kings

hi i have a table where dates and other info are getting inserted... i have a form where the user can select a start date end date.. based on the start date and end date ..i want to retrieve all the content stored between these dates.....

Member Avatar for nav33n
0
85
Member Avatar for ssriram

Hi all, I'm working on a GPS/GSM based project and I want to convert the RMC parameters to BINARY format. Actual RMC Sentence looks like this: $GPRMC,171004.031,A, 3658.4246,N,12201.3362,W,23.44,255.42, 060206 Interpretation as follows: 171004.031 = UTC of position fix (hours, mins, secs, decimal secs) A = GPS Status, Valid (V = …

Member Avatar for Belrog
0
211
Member Avatar for Oxiegen

Hi! Sorry about my bad grammer and/or spelling. English is not my native language. I don't know if this already have been asked and answered, however... I'm currently developing a program in which it will be possible to select table fields from a database and set various criteria using dropdown-lists. …

Member Avatar for Oxiegen
0
236
Member Avatar for eranga262154

Hi all, I have a string(not a CString), actually a file path. As an example, [CODE]c:\Test\MyProject\G00062_002_01.srf[/CODE] Then in following way get some data. [CODE] string FullPath = c:\Test\MyProject\G00062_002_01.srf string filePath = FullPath.GetFileTitle(); string groupID; string sessionId; string partID; groupID = filePath.substr(1, 5); sessionId = filePath.substr(7, 3); partID = filePath.substr(11, 2); …

Member Avatar for Duoas
0
115
Member Avatar for vonzul

This program should traverse a directory and save the file names into an array so I can manipulate data within the files. The problem is that the program prints the name of the files in the first loop, but it only saves the last file name in the array. Below …

Member Avatar for vonzul
0
3K
Member Avatar for kings

hi i want to insert the textbox content to database....wen i give disabled="true" data is not getting inserted in database....when there is no disabled attribute it is getting inserted..... <form name="fm3"> <table> <tr> <td>splendor Id</td><td><input type="text" name="id3" size="20" disabled="true" value=<?php print "$_SESSION[uname]";?>></td> </tr> <tr> </table> </form>

Member Avatar for kings
0
134
Member Avatar for jmasta

I'm getting a whole bunch of null pointer exceptions when I run my program. Here's the info: My program takes a text file (myIn.txt), will keep individual totals of all the characters, then put them into an ordered linked list. Now I need to build a pseudo-Huffman binary tree, with …

0
93
Member Avatar for kittycat07us

Hi. I was wondering if someone could help me with this program.. the purpose of this program is to play tic tac toe, and I'm having difficulty getting it to compile. I have gone through it several times. I would most appericate it if anyone could look at it and …

Member Avatar for Ancient Dragon
0
89

The End.