132,726 Archived Topics
Remove Filter ![]() | |
I have written this bit of code is ArrayList better than Vector and if so how do i change it ???? i am thinking where ever vector is mentioned to change it to ArrayList [code] import java.util.Vector; import java.io.*; public class V_All_Std_Record { private Vector main_Vector = new Vector(); public … Software Development java | |
i was wondering how to strip off digits one by one and store them into an array so i can sort them. For example if the user entered 7216. take the 7 stor into cell one, take 2 store it cell 3 ettc and then sort it so it looks … Software Development c | |
i have designed a database an one of my feilds is set up as an array. i had no problems reading my data into the array but i am having trouble trying to display the feild. when compiling the following error occurs. error 88 expected (. the error occurs in … | |
this is ganna sound so weired. do anyone happend to have any worksheet about access and vb, and creating database, please send me a private email on yahoo, tansk Software Development email visual-basic | |
Hi I have a dataset which acts as a datasource to my datagrid. It just shows all the columns from a table. One of the columns is an image column. How do i show these icons\pictures on the grid? My code looks like this: dim cmd as sqlcommand dim da … | |
I'm currently writing a game in DirectX without using the MFC structure. I am manually crating the window by including windows.h and manually creating the window by using windows functions. I am a bit confused when it comes to using strings. I would like to use the CString class, as … | |
WEll I'm kinda new to Java programming...but we got a major project coming up and I got stuck on one of the examples. This is for a validation code, to validate correct inputs....the errors are highlighted in red...Thanks to anyone that bothered to help :P I'm sure the answer is … Software Development java java-swing | |
The following code is not performing correctly. It opens the username file but does not display the mark. [code]#include <cstdlib> //these commands are pre processors directive #include <fstream> //required for library function #include <iostream> #include <cstring> #include <string> using namespace std; int main() { cout << "Marking Program"<<endl; string username; … | |
Hye all!! here is an program statement i don't know how to do it :o ..so plz let me know itz solution... program is written below:- [B]Write a program that will get 10 numbers between 20 and 100 and store them in one dimensional array of type int , as … | |
Write program that reads some information of 10 students (name [max 15] , level number , #of points , #of hours , GPA , student id ). These fields should be filled for each student by user except GPA. The GPA (max: 5) should be calculate it by function that … Software Development c++ | |
[SIZE=4][COLOR=DimGray]please I need your help inthis program because I do not under stand what does he want and I didn't under stand the array so please help me[/SIZE][/COLOR] Write a function named "eliminate_duplicates" that takes an array of integers in random order and eliminates all the duplicate integers in the … Software Development c++ | |
The following program executes without any errors, but the output is not what is expected. The code is correct down till the opening of the MarkScheme.txt file, but the student mark is not displayed on the screen, any thoughts [code]#include <cstdlib> #include <fstream> #include <iostream> #include <cstring> #include <string> using … Software Development c++ | |
Hello everyone, I want to print out the string "Hello World!" to console at a random interval, and the average length of the random interval is 1 minute when the string is printed out hundreds of times. Anyone know how to accomplish this? Thanks in advance, George Software Development java | |
Anybody could tell me what's wrong with the following code? It complaints: 13 C:\apps\Dev-Cpp\projects\14\14_1.cpp ISO C++ forbids defining types within return type Thanks in advance. [code]#include <iostream> #include <cstdlib> using namespace std; struct vector { double x; double y; friend ostream& operator<< (ostream&, vector); } ostream& operator<< (ostream& o, vector … Software Development c++ | |
Hi, i'm doing a program in OpenGL and need some help with arrays. Basically I have a structure called ObjectNode which is used to implement a linked list with two data members, an int for the object type and an array of IntPoints (IntPoint is just a simple structure to … Software Development c data-structure first-post linked-list opengl | |
Hello everyone. My instructor has asked me to write a program that accepts a string as input from a user and prints the string in reverse. I have to use a "for" loop to reverse the string. I am also suppose to allow the user to input more than one … Software Development c++ | |
Hi, everyone. You may have probably heard this a hundred times, but I am new to programming and I am taking an intro to C++ class. I have a program that I have written, but I can't understand why it will not exit gracefully. This is what I have written, … | |
please where is the error in this code doesn't run [code] #include<iostream> #include<cstdlib> using namespace std; int main() { int ages[1000]; int size=1000; int i,a,b; for( i=0;i<size;i++) { ages[i]=rand(); for( a=1;a<size;a++) { for( b=size-1;b>=a;b--) { if(ages[b-1]<ages[b]) { i=ages[b-1]; ages[b-1]=ages[i]; ages[b]=i; } } } } cout<<ages[i]; return 0; } [/code] Code … Software Development c++ | |
Hi everybody, I've been searching for days to find a way to access Active directory database from my VB.NET appz and nothing made good results so far.. The Active directory DB is located onto a Win2k3 server but we have another on a NT4 server too.. Neither worked.. :( First, … ![]() | |
Hi there, I have an image that is split into lots of little images that when flipped through would effectively animate the character. :cool: How would i go about playing through the images, i assume i would somehow map the image into a two-dimensional array and then just run through … | |
I read about Java being multi-platform language but could not confirm this. If I compile and make .cla files in Windows OS and then run these on Unix OS will run fine ? Or I need to install some components. | |
Just want to get ideas on which modern language could replace good old Basic, so the learning curve isn't too galling. I am partial to Python. The reasons: 1. It is an interpreted language, but can be compiled. 2. It has a very efficient memory manager built-in. 3. Lots of … Software Development python | |
For homework I was assigned the "non-attacking queens" problem. Now I have all_boards as a static variable and i was trying to store each step as a board. like row 1 board, row 2 board, etc, but for some reason all the boards are overwritten with the final board. My … Software Development java | |
Please could you give me an example of sorting an array and[B] how to call the [/B] [B]function at the main [/B] thanks a lot :o :rolleyes: :rolleyes: Software Development c | |
Hello, as you well know I've got a hangman game produced, I now have the luxury of adding to the code since all my work is completed ...yay, well, I've decieded to take it a step further and draw out the hunged man! I have the drawing , its just … Software Development c++ | |
hi all. i am currently thinking for learning assembler and compiler language. i just wanted to know how long it will take to learn this language and how difficult is it? Software Development assembly | |
Are there any good and free Pascal compilers out there? Software Development pascal | |
In my form I have a field (Reqby) that will request the name of the Dept. Manager. Is there a way that I can take that information and add it to the TO: line? The TO: line already has a name in and I want to add the Dept. Managers … Software Development visual-basic | |
how do I get my calculations like ex. I want to add up the average gallons used per mile for a car if the car went like 1450 miles and used 62 gallons of gas I dont want it to be a whole number i want it to be like … Software Development c++ | |
I have an assignment which can be found at [url]http://www.cems.uwe.ac.uk/~lrlang/java_html/assignment2.html[/url] i have coded all the required classes apart from Hotel and HotelGui classes my problem is with the Hotel class the assignment says "The methods that you are required to implement are as follows: * public Hotel () The constructor … Software Development java | |
:evil: The following C program is mainly written to work as an address book. I have written the code but the VC++ compiler shows four errors and I cant find them :rolleyes: . Can some one please help me find them..my assignment deadline line is on the 10th of this … | |
Hi,any of you know how to like create a alert system(reminder) ?? using vb.net..windows application..and it goes in tis way.. a alert will pop out to tell u the amount of stocks when it left less than 10. (i creating an application -database) Software Development vb.net | |
[U][B]i only want what you think, the anser is, this came in a exam paper last year, am not sure what the answer is, can anyone help and explane what hes after please[/B]Using access and visual basic or c++ or pascal[/U] i've been told something like this will come again, … Software Development c++ pascal visual-basic | |
![]() | In file proceesing how can i find the renamed file.... meaning....i created 2 files named derrick.txt and alex.txt and in the program when i input derrick, the program will look for the file derrick and open the file, and if i enter alex, the program will look for alex.txt thank … Software Development c file-system ![]() |
hello experts!!! im just a beginer.. thats wants to know alot.. i want to program my own tictactoe game.. but i dont have visual basic..can anybody plz.. give me some codes that i can edit my self with javascript or html.. if possible? can you make a tictactoe game with … Software Development email java javascript visual-basic | |
hi everyone System.out.println(currentPlayer); it returns to me like this:[B]Player@7cbde6[/B] i know it was caused by toString() and it is suggested to ues overriding method but i don't know how to do it, so can somebody teach me how to use overiding method so System.out.println(currentPlayer); will display what i want thank … | |
Hello here is a site that contains lot of tutorials for C/C++ programming. Hopefully u will find them useful and also u can download the source code. [url]http://www.mycplus.com/[/url] Software Development c++ | |
i'm kind of new .NET programmer and i don't know which files i need to install on the machine running Windows98se , in order to make it able to execute application written in VB.NET. And where I can download thoose files? please help !! TNX :) Software Development vb.net | |
so im trying to write this program that converts Fahrenheit to Celsius and vice versa but im gettin an infinate loop at the menu. i go to select the number that i want and it just displays the menu again, i though i was doin it right? [code]#include <iostream> //for … Software Development c++ | |
i have an assignment to write a hotel booking system in java i have to write this class "The Booking class brings together all the details for a booking into a single object. When creating a Booking object, it is vital that: * The room availability has previously been checked. … Software Development java | |
When trying to build me program the error message [COLOR=Red]LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/Marking Program.exe : fatal error LNK1120: 1 unresolved externals[/COLOR] occurs. I am not sure why this happens, any thoughts Software Development c | |
i know this is a vb assignment, but my tutor want me to do it in vb or c++ with access, i need to create tables with access, i can see two tables but am sure there another one, i know css is a table and pencil is also a … Software Development display visual-basic | |
i know this is a vb assignment, but my tutor want me to do it in vb or c++ with access, i need to create tables with access, i can see two tables but am sure there another one, i know css is a table and pencil is also a … | |
Using access and visual basic A company has been using a program written in VB using Access tables for sales order processing. The data model they have is as follows. Customer customer No (PK), customer name, address etc Order order No (PK), customer name (FK), date Order_line (order No, stock … Software Development visual-basic | |
I have been trying to figure these out from the book but couldn't .Im studying correspondence so im also on my own Thanks alot for any help ! 1. if the program TEST.ASM has been designed as an EXE program , can the program TEST.OBJ be executed successfully? 2. What … Software Development assembly | |
This is a short list of recommendations on how to use C++. My experiences are from using gcc 2.8.0 and Visual C++ 6.0. I had to have things compatible between these two compilers, and between Unix and Windows. [b]Contents[/b] [color=#800080]IO of binary files[/color] [color=#800080]When are destructors called for local variables[/color] … | |
I am trying to make the random generator fill my array with no duplicates. An diplay the in order but aslo first line to print array[0], then second line array[0] and array[1], so on and so on until it display all twenty on one line. Pease help [code] #include <iostream.h> … | |
Hi, Ran into another issue with my program. In C or C++ is there an easy way to skip the linefead at the end of a record (hex 0a)? Thanks, Software Development c++ | |
I'm trying to get the computer to compare a username and password entered by the user to a username and password in a text file. If a match is found, then I am going to present the user with other options. I think there must be an easier way to … Software Development c++ file-system first-post |
The End.