43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for azadder

I am working on an IDE for a specific language. One of the features that I want to implement is syntax high-lighting. The way I plan to go about it: When the user presses a key, a function is called with the entire line that the user is editing as …

Software Development ide open-source python
Member Avatar for azadder
0
869
Member Avatar for ConfusedMuchMor

"An attempt to call a field (rather than a method)" What is the difference between these two??? simple english please I'm confused enough as it is!

Software Development
Member Avatar for JerryShaw
0
280
Member Avatar for planktonfist

I'm wiring a program where I have a file with city, state, population size laid out as follows; 24 El Paso, TX 577415 Indianapolis, IN 783612 Detroit, MI 925051 Fort Worth, TX 567516 Los Angeles, CA 3798981 Washington, DC 570898 etc... with 24 being the number of elements in the …

Software Development c++ file-system ios
Member Avatar for planktonfist
0
126
Member Avatar for cruisx

Hey guys first time learning VB6 and i have to do a Hangman project for my Gr 10 class But i need some help. I am have trouble figuring out how i make the dashes come out in my label box when someone inputs a word. Like say someone inputs …

Software Development visual-basic
Member Avatar for hkdani
0
152
Member Avatar for majestic0110

hi all, I am trying to design a game app that uses a swing gui as a main menu. so far I have been a little confused as to how I get my 'start new game' button to actually launch the game. I have googled event handlers and cannot seem …

Software Development gui java java-swing
Member Avatar for majestic0110
0
82
Member Avatar for aan@ucsc

Could I run a java program without installing the java vitual machine on the computer?If yes how could I do it?

Software Development java
Member Avatar for Ezzaral
0
128
Member Avatar for chaosatom333

hi, i can't seem to a.out the program for some reason. When i type in a.out, the cursor just stays there. I think it goes in a infinite loop. I am trying to read two text files and then putting the atomic number in order. what seems to be the …

Software Development c
Member Avatar for Nick Evan
0
117
Member Avatar for rw0

I'm trying to get the CreateProcessA function to work, but it continues giving me trouble and more trouble. Here's the code: [CODE]#include <iostream> #include <string> #include <windows.h> // CreateFile(), CreateProcess(), OpenFile(), etc. and // STARTUPINFO, PROCESS_INFORMATION #include <ctime> // srand(), time(NULL) #include <cstdlib> // rand() using namespace std; string execute(const …

Software Development c++
Member Avatar for rw0
0
101
Member Avatar for doublex

hi there, i try to map a file in memory, in linux, using mmap, so that what i write in memory will be written in the file as well. the piece of code looks like this [code=c] fd = open(argv[1], O_RDWR); if (fd == -1) { error_message(__FILE__, __LINE__, "'open' failed …

Software Development c file-system
Member Avatar for doublex
0
125
Member Avatar for cs_tx_usa

Hi, I've been working on a program that reads two binary files, then each value of file1 is divided by each value of file2. My binary files are 8-bit grayscale image files that is each pixel has a value between 0 and 255. I read them into byte arrays. I …

Software Development vb.net
0
84
Member Avatar for Savage221

Hello everyone. I have to write a program that needs to use generics. I'm basically just hoping someone can guide me in the right direction here. Lets say I need a program that loads different crates onto a boat. I have to have a boat class (generic class), then other …

Software Development java
0
82
Member Avatar for Agentbob

I'm trying to change the font for the turtle graph. [code] def goto(x,y): turtle.up() turtle.goto(x,y) turtle.down import turtle turtle.tracer(False) turtle.width(3) goto(-270,270) turtle.right(90) turtle.forward(540) turtle.left(90) turtle.forward(540) turtle.left(90) turtle.forward(540) turtle.left(90) turtle.forward(540) goto(50,50)[B] turtle.write('testing')[/B] turtle.tracer(True) [/code] That's a box I created and I want to add text to it. I looked around the …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for people123

Here is my code, it is suppose to take the double num, round it, and return it using call by reference, but when i try to compile it gives me an ambiguity error at [inlinecode]round(i);[/inlinecode]. please help. [CODE=c++]#include <iostream> #include <cmath> using namespace std; void round(double &num); int main() { …

Software Development c++
Member Avatar for people123
0
110
Member Avatar for ConfusedMuchMor

Can any boby explain to me in simple english why this I get this error "Compiler Error CS0118" I'm a beginner about to throw my machine out the window!!! Below is the code for my Calcultor & the code for the DLL i'm using!!!! using System; using System.Collections.Generic; using System.ComponentModel; …

Software Development
Member Avatar for JerryShaw
0
104
Member Avatar for atish00

I am making a quiz show in C++ I need help in storing the answers of a quiz in a array like [QUOTE]cout<<"Q.1 Who is Known as the lady with lamp ?"<<endl<<endl; cout<<"A. Sonia Gandhi "<<"B. Florence Nightngle"<<endl; cout<<"C. Mother Tersa "<<"D. Madame Rozario"<<endl<<endl<<endl;[/QUOTE] So how do I Input the …

Software Development c++
Member Avatar for ithelp
0
117
Member Avatar for almost_done

Ok I have no idea why I'm getting this error. I'm guessing its the fact I'm trying to return something from another class but I don't know how else to do it. [code=C++] #ifndef Floor_h #define Floor_h #include <queue> #include "Passenger.h" using namespace std; class Floor { public: Floor(); void …

Software Development c++ queue
Member Avatar for Ancient Dragon
0
2K
Member Avatar for ConfusedMuchMor

Is there a way to carryout explicit data type convertions automatically? if the complier can see your errors why can't it correct them?

Software Development
Member Avatar for alc6379
0
129
Member Avatar for Dell XPS

I am doing this program that has listboxes and 2 combos Listbox 1: 1-3 Persons Listbox2: 4-7 Persons Combo1: 8-20 Combo2: 21-50 When I click on a number of persons the price is displayed... But I need a way to change the prices so they must not be in the …

Software Development visual-basic
Member Avatar for Dell XPS
0
129
Member Avatar for sbenware

My program keeps crashing when the retrieve function calls the getName function. I'd like to make sure my getName function is correct before tinkering with my retrieve function. I'd appreciate any ideas. Is there a problem with deleting the name if it's a pointer? header file: [code] void getName(char * …

Software Development c++
Member Avatar for sbenware
0
94
Member Avatar for Barefootsanders

Hey everyone, I'm attempting to write a header file, example.h that will contain function declarations that will be defined in example.c. For some reason Its giving me an error when i do this [CODE]extern void mainMenu(node*);[/CODE] Now node is a struct defined in another header file, should I include that …

Software Development c
Member Avatar for Barefootsanders
0
131
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 " "). …

Software Development c
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 …

Software Development file-system qbasic
Member Avatar for klrdn
1
497
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 …

Software Development java
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 …

Software Development file-system vb.net
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; } …

Software Development c
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 …

Software Development python
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 …

Software Development c++ queue
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 …

Software Development java
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 …

Software Development java
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.

Software Development
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 …

Software Development
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 …

Software Development c++
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 …

Software Development java java-swing
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 …

Software Development file-system perl
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* …

Software Development c++
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 …

Software Development
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 …

Software Development javascript perl
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 …

Software Development c#
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 …

Software Development ide java
Member Avatar for Black Box
0
109
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 …

Software Development c#
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 …

Software Development dataset
Member Avatar for fishsqzr
0
557
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 …

Software Development c++
Member Avatar for zandiago
2
95
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, …

Software Development c
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.

Software Development shell-scripting unix
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. :)

Software Development c++
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.

Software Development c++
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; …

Software Development c file-system
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!

Software Development java
Member Avatar for slayer10
0
289
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 …

Software Development c
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 …

Software Development file-system perl
Member Avatar for kahaj
0
107

The End.