132,726 Archived Topics
Remove Filter ![]() | |
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 | |
How do I flush the write buffer after a write without closing and reopening the file? Software Development visual-basic | |
:?: 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++ | |
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++ | |
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); … | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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++ | |
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 | |
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 … | |
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 ![]() | |
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++ ![]() | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
Can somebody help me in getting cursor position using C++ Programming language on a UNIX operating system. :cool: Software Development c++ operating-system unix | |
How can I pass values to Crystal 9 “Formulasâ€? and “Selection Formulaâ€? with VB6 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 | |
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 | |
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 … | |
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 | |
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 … | |
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) … | |
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++ | |
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++ | |
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 … | |
how to launch a txt file in vb.net, within a button click? Software Development vb.net | |
//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 | |
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 | |
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 | |
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++ | |
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 | |
#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++) … | |
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++ | |
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++ | |
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 … |
The End.