132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for VSBrown

Here is a link to some ASM Code that I did while I was in college. Thought I would post it because maybe it will help someone else. [url]http://www.vsbrown.com/asm.asp[/url] :)

Software Development asp assembly first-post
Member Avatar for VSBrown
0
192
Member Avatar for ghaney1

How do I flush the write buffer after a write without closing and reopening the file?

Software Development visual-basic
Member Avatar for ghaney1
0
1K
Member Avatar for DaveSS

:?: Hi i am in my first C++ class and have already written two simple C++ programs. Im working on another using functions. I have to write 3 functions to calculate the area, cost, and retail price for wooden boxes and a main function to have the user input information …

Software Development c++
Member Avatar for DaveSS
0
122
Member Avatar for Lapari

Hello, can anybody help me please? I am new to C++. I need help with assignment that calculate income tax. thank you. instruction: ******* 1.Set up a project called CTax. 2.Add to your project a class called GRTax. 3.The member variables for this class are: float mTaxableIncome, float mTaxRate, and …

Software Development c++
Member Avatar for murschech
0
111
Member Avatar for boujibabe

I have been given an assignment to write a class to accomodate the following code: [code] int getMenuOption (); int main () { int option; int id; char name[80]; //create a Salesperson object and sets all 12 monthly sales to 0. Salesperson sp; cout << "Enter name: "; cin.getline(name, 80); …

Software Development c++ display
Member Avatar for boujibabe
0
285
Member Avatar for Justup

i am pretty new at programming but i want to make a program that will download a file from a TFTP server and then execute that file in command prompt with specific paramete. Can someone give me some general coding i should use?

Software Development c
Member Avatar for Justup
0
72
Member Avatar for ultimate_fusion

code is below int average(){ //method in class int total = 0; int NOS=5; System.out.println(""); for(int i=0;i<10;i++){ if(ID ==" "){ NOS = i; break; } total += mark;// total is the problem, tried printing it // while thefor loop was running and at the end // and its says "0" …

Software Development java
Member Avatar for server_crash
0
125
Member Avatar for cwickam

I am trying to find the best way to program a timeshare inventory. Here is the problem, one unit has the possibility of being sold annually, odd or even years. If the unit is sold for just even or odd, I then need the open inventory to reflect the opposite …

Software Development visual-basic
Member Avatar for cwickam
0
125
Member Avatar for rporter1

I have found out through the compiler that you cannot declare and initialize an array within a class header file. I was trying to figure out how I might go about getting a 5 by 14 array initialized as a private mamber within the class. I have included the header …

Software Development c++
Member Avatar for Tight_Coder_Ex
0
204
Member Avatar for lodacy

I will appreciate any help on the following. Please reply to [email]lotbook@telus.net[/email] as well. I am trying to program something that use huge integer matrices, say 100x1500. I can do it in Unix pascal, but the Unix machines are slow. I also have borland pascal 7.0, but all I could …

Software Development email pascal unix
Member Avatar for geoclock
0
196
Member Avatar for VeG

was wondering if someone could help me on this slight problem my rogram compiles but a section doesnt seem to run.. } void main() { clrscr(); int one, two, three; char choice=' ', input[5]; while (choice != 'e') { cout<<"\nPlease enter +,-,*,/ or sqrt and then two numbers,\nsepperated by spaces, …

Software Development c++
Member Avatar for Acidburn
0
115
Member Avatar for MrScruff

Is there anyway of actually changing the length of a slider. I have a some sliders in a grid layout and im wondering wether the grid layout will stop the sliders from expanding.

Software Development java
Member Avatar for paradox814
0
240
Member Avatar for onauc

Hello everybody, I am very curious to see the source codes that describe an image. I want to actually check the source-codes of gif, jpeg etc. files. Also, I am very curious to see the source codes that describe an sound. I want to actually check the source-codes of mp3 …

Software Development algorithm audio c image open-source video
Member Avatar for frrossk
0
178
Member Avatar for notdumb

Hi, My assignment for class was to produce a program that runs the seive of eratosthenes to determine all the prime numbers between 2 and n, with n no larger than 100. I tryed to write the program with a boolian array that will turn all non-primes to false up …

Software Development c
Member Avatar for Siersan
0
90
Member Avatar for alastair18

I am rather inexperienced at C/C++ so hopefully my question will be easy to answer. I have created a struct which contains vectors. I read in data from a file into the various vectors in each struct do a bit of maths, write the results to another file, clear the …

Software Development c++
Member Avatar for Siersan
0
103
Member Avatar for jillas

I have a question on how to program my nested loops. This is the output i am supposed to have. Enter the number you want to sum to: 8 0 = 0 0 + 1 = 1 0 + 1 + 2 = 3 0 + 1 + 2 + …

Software Development c
Member Avatar for jillas
0
110
Member Avatar for ultimate_fusion

I have two erros which I have tried everything to fix them C:\Documents and Settings\java:14: array required, but java.lang.String found ID[count] = ID; ^ C:\Documents and Settings\java:15: array required, but int found mark[count] = mark; heres the code class Module { String[] ID = new String[10]; int[] score = new …

Software Development java
Member Avatar for server_crash
0
111
Member Avatar for dani1982

I can't get this correct for the life of me please help!! one part (the one thats wrong) says to write it to determine the day of the week for a given day. I don't know how to do this?

Software Development c
Member Avatar for Dani
0
110
Member Avatar for Jason Marceau

Hi, I am learning Java and I have decided that I should create my first project. I have the application code for a Tax calculator and I would like to add a GUI to it but I am struggling to work out how to enable the text field box to …

Software Development display gui java
Member Avatar for ecyarter
0
3K
Member Avatar for the b

Hi all, does anyone know of a good compiler I can download for java? It would be nice if it was an IDE but it does not have to be. I currently have the j2sdk-1_4 compiler [url]http://java.sun.com/j2se/1.4.1/download.html[/url] and it does not seem to work that well. Also I know that …

Software Development ide java
Member Avatar for Jason Marceau
0
260
Member Avatar for syphyr_0707

Hello all, I am taking a C++ class after not touching it for about 4 years now... I am rather dusty. My book is horrible, I am trying to randomly select a switch case for a word output. This is my latest attempt: ******************************************************* [code] void right(); void wrong(); int …

Software Development c++
Member Avatar for syphyr_0707
0
98
Member Avatar for echelon

I have a project due involving a problem from my textbook. In the text they want a list of all students for a carpool. They want me to get the info from an input file and print only the students from the local city (Huntley). They also want me to …

Software Development file-system visual-basic
Member Avatar for echelon
0
206
Member Avatar for s47221288

Hi, I'm a thai student ... now i have a premiership project but i can't pass this problem that is , How to random matching football team ? example I have 4 team in `vector<string>` name [0]=a [1]=b [2]=c [3]=d I want to matching them such as week 1 : …

Software Development c++
Member Avatar for s47221288
0
108
Member Avatar for migthyjohn

i hate C++. i have been working through the C++ for dummies book, and i have yet to make any sense out of it. the only thing that i have been able to grasp is the i/o parts. it is so hard. maybe i havent given it a chance to …

Software Development c++
Member Avatar for Siersan
0
117
Member Avatar for zizi

i would be plzed that some1 tells me why doesn't my program run?and gives this massege [COLOR=Red]"could not creat process!"[/COLOR] [CODE] #include<stdio.h> #include<stdlib.h> #include<conio.h> struct list { char alph; int freq; }; struct list a[256]; /////////////////////////////////////////////////////////////// int main(){ int j,m,f,k; FILE *fin; char ch; clrscr(); fin=fopen("a:test.txt","wt"); printf("\n enter characters($ for …

Software Development c
Member Avatar for Tight_Coder_Ex
0
91
Member Avatar for cdt1983

Hi, I have set-up a while loop to iterate an amount specified by the user. However, is it possible to compare two numbers entered by a user inside the loop and then have the larger number replace the smaller? I am having trouble because I have the first result being …

Software Development java
Member Avatar for cdt1983
0
117
Member Avatar for jasweb2002

Hi everyone, I need to write a compiler with Yacc that will basically perform minor algebraic commands. Here is the code so far for the Yacc part. [code] %token INTEGER VARIABLE READ WRITE %left '+' '-' %left '*' '/' %{ #include <stdio.h> void yyerror(char *); int yylex(void); int sym[26]; int …

Software Development
Member Avatar for vegaseat
0
129
Member Avatar for samyn

hi .. im doin an assignment on edlin text editor.. while implementing the insert new line function i need to exit a loop when a key combination is pressed.. inside the loop there will be some lines reading input from the user..so will be somting like below while( ? ) …

Software Development c++
Member Avatar for samyn
0
118
Member Avatar for cap2361

when I complile this program and then try to run it I get error LNK1201. So I started over and left it complile to c:\ and when I try to run it I get file could not be opened. I think the objective is to compile on c:\ and save …

Software Development c++ objective-c
Member Avatar for cap2361
0
124
Member Avatar for mrb260478

Can somebody help me in getting cursor position using C++ Programming language on a UNIX operating system. :cool:

Software Development c++ operating-system unix
Member Avatar for vegaseat
0
119
Member Avatar for dimuthubas

Hi.. I have done some programs in VB6 (SQL Database). With the Crystal report (Vertion 4). Now I wanted to do these things with Crystal-9. But the procedure to pass values to “Formulas

Software Development sql visual-basic
Member Avatar for dimuthubas
0
297
Member Avatar for George2

Hello everyone, I am wondering how to use java.util.Properties to get the corresponding value of a specific key whose corresponding value is an array, and I am also wondering how to express/format an array in a properties file. For example, I have a key "friends" whose corresponding value is a …

Software Development java
Member Avatar for George2
0
88
Member Avatar for noyz

the problem is not opengl coding so is not that much to work :D the problem is that i want to be copyed the lib and dll next to exe program how can i do that and there is a program like directx9.0c for opengl ??? and if it is …

Software Development c++ opengl
Member Avatar for noyz
0
120
Member Avatar for dallin

I'm using visual studio .net c++ and I'm looking for the easiest code to drop the 0 on 0.233 to .233 when displaying floating point variable on screen. Thanks.

Software Development c++ visual-studio
Member Avatar for BountyX
0
127
Member Avatar for Nihar

Hi there, Does any one know a Perl regular expresson to ignore specific string from a log file. For example i want to use this simple unix command using perl regular expression egrep -i -n "error|fatal" logfile.log |\egrep -v "user not found" i.e. it should ignore log file entry "Error …

Software Development perl unix
Member Avatar for YUPAPA
0
137
Member Avatar for shonenhype

Write a function IsoTriangle() that takes a size parameter and dispays an isoceles triangle with that many lines. Use the DrawBar() function as a basis. (Hint: Use another function Spaces() to display the leading spaces before the start of the asteriks on each line.) For example, the function call IsoTriangle(4) …

Software Development c++ display
Member Avatar for Narue
0
159
Member Avatar for ANRCCC

I am trying and I don't know what to do. Attached is a aprogram and I don't know what is going wrong. :sad:

Software Development c++
Member Avatar for Narue
0
117
Member Avatar for xplst

I've just downloaded the C++ sockets library from [url]www.alhem.net/Sockets[/url], but I can't get my programs to link -- I get a lot of "undefined reference"s.... I'm using g++ version 3.3.3. on Fedora Core 2 (kernel version 2.6.5-1.358). I can get the programs to compile (using the -c flag to g++), …

Software Development c++
Member Avatar for grymse
0
3K
Member Avatar for server_crash

I plan on writing an app that will graph polynomial expressions. My question is, what should I draw the graph on? Should I just use the regular frame and use DrawLine(), or is there something like a bitmap, or canvas thing I should use?

Software Development java
Member Avatar for server_crash
0
100
Member Avatar for satimis

Hi folks, I shall start my first lesson to learn Java. I found following sites/tutorials; Tutorial (search) [url]http://onesearch.sun.com/search/onesearch/index.jsp?qt=java+tutorial&uid=6910019[/url] Java Tutorial [url]http://java.sun.com/docs/books/tutorial/[/url] [url]http://java.sun.com/docs/books/tutorial/information/download.html[/url] Java Tutorial Books [url]http://java.sun.com/docs/books/tutorial/book.html[/url] Java Tutorial Sites [url]http://java.sun.com/[/url] Java Tutorial, Trailmap [url]http://java.sun.com/docs/books/tutorial/trailmap.html[/url] Training [url]http://training.sun.com/[/url] Kindly advise which of them shall I stick to at start. Are there any …

Software Development java java-jsp qt
Member Avatar for satimis
0
166
Member Avatar for april_er

how to launch a txt file in vb.net, within a button click?

Software Development vb.net
Member Avatar for april_er
0
161
Member Avatar for ultimate_fusion

//main method int number = 1; int num = 3; details[] Darray = new details[number][num]; String name = JOptionPane.showInputDialog(null, "Enter the name", "Enter details", JOptionPane.QUESTION_MESSAGE); String DOB = JOptionPane.showInputDialog(null, "Enter the DOB", "Enter details", JOptionPane.QUESTION_MESSAGE); class details // i have default construtors aswell String getName(){ return name; } heres the …

Software Development java
Member Avatar for tonakai
0
91
Member Avatar for sachin kumar

Hi All, I have a build an application which uses file names from a directory. to get these file names I used the following code from MSDN. FILE * fp; String *extension; // Create a reference to the current directory. DirectoryInfo* di = new DirectoryInfo("C:\Sachin"); // Create an array representing …

Software Development c visual-studio
Member Avatar for steveh
0
123
Member Avatar for Lost Chyld

I need help with breaking out of a loop. I know it's something simple, but I can't remember. Here's my code. for(count = 0; count < inputArray.length; count++) { inputArray[count] = JOptionPane.showInputDialog( null, "Please input a name or exit: ", "Input Name", JOptionPane.QUESTION_MESSAGE); if(inputArray[count] == "Exit") { break; } }

Software Development java
Member Avatar for server_crash
0
103
Member Avatar for dal4488

This is what I have so far and I can't figure out how to get the converted length in my output file so that 312 inches converts to 3 yards, 1 foot, and 3 inches. #include <iostream.h> #include <fstream.h> using namespace std; int main() { ofstream outfile; int centimeters; int …

Software Development c++
Member Avatar for blackdove
0
104
Member Avatar for tbartoli

After compiling a QBasic program, an object code file is created (.obj). My question is: How do I look at that file? I've tried opening it with a number of different programs, but all I get is gibberish. Thanks for any help....

Software Development qbasic visual-basic
Member Avatar for Comatose
0
114
Member Avatar for missy

#include <iostream> #include <string> #include <fstream> using namespace std; void main() { ifstream indata; ofstream outdata; char name [13][20]; float avg[20]; int sum=0, n, i=0, m,p; float davg; char ch; indata.open("a:nameFile.txt"); if(indata.fail()) { cout<<"file not open:"; exit (1); } while(i<=20) { for (i=0;i<20;i++) indata.getline(name[i],20); } for (int k=1; k<=3; k++) …

Software Development c++ ios
Member Avatar for Narue
0
115
Member Avatar for roscioeak@direc

Can anyone direct me where to go for doing stacks in C++. I have to make a program using stacks but can you initialize a stack with given values? If so can you give an example?

Software Development c++
Member Avatar for vegaseat
0
104
Member Avatar for xsxixtxhx

I have a project that i am working on and i can't get how to get it to work. I have attached the .h and the main cpp file. If any one can be of help please reply or im me at xsxixtxhx on Instant messenger. I need to get …

Software Development c++
Member Avatar for kc0arf
0
237
Member Avatar for jasonkit84

hi, My problem is i have created a report using Crystal Report and the font-style is Roman 20 cpi. When i preview the report in Crystal Report, the font-style is still Roman 20 cpi but when i view the report using VB.NET the font-style has changed into another font-style. And …

Software Development printer vb.net
Member Avatar for AK47
0
218

The End.