132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Lukezzz

I have filled a List like below wich some strings. I wonder if the List has any property where you in an easy way can remove duplicates. Else I wonder how this can be done ? [code] List<String> GetData = new List<String>(); GetData.Add("one"); GetData.Add("two"); GetData.Add("one"); GetData.Add("three"); [/code]

Software Development c++
Member Avatar for serkan sendur
0
95
Member Avatar for serkan sendur

check this out guys : [url]http://helpnet.acresso.com/robo/projects/installshield11helplib/ihelppropreference.htm[/url] i think i am getting closer to it. one day serkan sendur will be able to set product name of a setup project at run time. it will be a small step for world but a big step for serkan sendur.

Software Development
Member Avatar for serkan sendur
0
110
Member Avatar for sacredmaiden

Hi everyone, i'm new here, and also new in InfoTech education (i'm a freshman student) I don't really know what's the exact word for it, so it's pretty hard for me to search it in this forum but.... can anyone help me out? how can i use WHILE in reversing …

Software Development c
Member Avatar for Sameer.coder
0
119
Member Avatar for endisbegun

hi, so im new to java, fresh off the c++ shores (what a nightmare programing is :p) and i have what should be a really simple assignment 1. The electicity accounts of residents in a very small town are calculated as follows: * If 500 units or less are used …

Software Development java
Member Avatar for jasimp
0
282
Member Avatar for EvilLinux

How would you create a validate statement that shows a message to the user if they enter a value that is 5 years or older than the current date, I have the checking of format for the date if its entered correctly. Currently I have this to valid the format …

Software Development
Member Avatar for EvilLinux
0
241
Member Avatar for JungWoo

hi all, i am done with my project for lexeme but i only worked on cpp, i wonder that can i make my header file based on my cpp file? thank you this is my code [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main () { char …

Software Development c++ file-system ios
Member Avatar for Dave Sinkula
0
141
Member Avatar for serkan sendur

i want to share one finding that i found today and am pretty surprised. Although class types are passed by reference, nested classes are not. Form1.cs : [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace nestedClassRequiresRefKeyword { public partial class Form1 : Form …

Software Development
Member Avatar for serkan sendur
0
105
Member Avatar for kofi

hello guys.., i am developing an application for a loans and savings(financial) firm. i would want as much data as possible so i can get a good work done.

Software Development
Member Avatar for bharat_h03
0
79
Member Avatar for suutukil

Please help me with my assignment in c++! Write a program that will input 10 numbers and display the sum in a ASCENDING ORDER. please help me i really need this badly...

Software Development c c# c++
Member Avatar for suutukil
0
623
Member Avatar for lifeworks

Hi Ive been working with PHP, AS3 and some javascript for a while now, and want to move into something that allows me to develop desktop apps... I considered Java, but have become used to PHP's loose typing or whatever the technical name is, and so after some investigation Python …

Software Development gui python
Member Avatar for sravan953
0
168
Member Avatar for edward_pedro

Hey all. I'm new to this forum and Python. I need a program that can search an inputted keyword through all the files that end with the ".txt" extension inside a given folder. The output should include the name of the files which contain the keyword, the sentences which contain …

Software Development python
Member Avatar for vegaseat
0
150
Member Avatar for vivekarora

Hello Friends, We have a known problem in our hands: Allocate some memory, and get a pointer to that memory. Now, no one stops this pointer to perform memory overrun or underrun(i.e. writing before the allocated memory). I wish to implement 2 functions as MyMalloc() & MyFree(). When I use …

Software Development c
Member Avatar for vivekarora
0
209
Member Avatar for jdam7459

I am having trouble getting Windows to open the file "results1.txt" in the directory "Result Sets". When I run it I get the error: "results1.txt" is not a recognized as an internal or external command, operable program or batch file. But when I check to see if the file is …

Software Development c++ file-system
Member Avatar for marco93
0
132
Member Avatar for chase32

I am trying to combine two multi-element dictionaries but am running into a problem. From the example below, what I expected was the dictionary x to contain all three unique combinations. What seems to have happened is that the y dictionary overwrote the x dictionary. Am I just using this …

Software Development python
Member Avatar for vegaseat
0
204
Member Avatar for serdengil

Hey guys, I do have a main function and need to write the class. I just need to where should I start. I am a new in C++ but the prof. asked us to write the class code of this calculator. He already gave the main function and the purpose …

Software Development c++
Member Avatar for Lerner
0
122
Member Avatar for AbiSuren

The following program works well.But it cant identify any null values present in the csv file. For Example if csv file contains "Suren,Java,Dojo,Hibernate,,Spring,SOA" .I reads first four strings properly but for fifth string instead of reading the null value it reads the sixth string. Pl. help. import java.io.DataInputStream; import java.io.FileInputStream; …

Software Development file-stream file-system java
Member Avatar for masijade
0
154
Member Avatar for DarthPJB

I return with another perplexing issue that I just can't figure out, a generic and unhelpful"std::bad_alloc at memory location" error. Before I get to the code, some background... Having finished my uber-awesome 2D engine (thanks entirely to you guys) I decided it was time to break open the can of …

Software Development c++ opengl storage
Member Avatar for DarthPJB
0
326
Member Avatar for OneDreamCloser

hi all , i hope you can help me with the following : in types.h : [code=c] /* Structure of input buffer for each switch */ typedef struct InputBuffer *InputBufferPtr; typedef struct { struct List **fifo; /* Input fifos: one per output. */ void *traffic; /* Placeholder for traffic stats …

Software Development c linked-list queue
Member Avatar for Salem
0
135
Member Avatar for ticktock

Hey all, I am fairly new with C++ and I registered here to ask for suggestions on how I can create my project. I proposed to my professor that I will create a scientific calculator with "additional functions". By additional functions I mean like a SC with that can solve …

Software Development c++
Member Avatar for ticktock
0
142
Member Avatar for kahaj

I'm having some trouble getting the times to show up correctly. inputTime is running fine, but neither displayStandardTime nore displayMilitaryTime is displaying. I've been playing with this for a couple of hours and can't figure it out. I'm probably missing something small, but it's driving me nuts in a big …

Software Development java
Member Avatar for kahaj
0
146
Member Avatar for hurbano

Im having trouble fixing this error on my program. Any help would be greatly apprecitated. [code=c++] #include <iostream> using namespace std; int main () { char choice; cout<<" Is it after 12 noon? (y/n)" <<endl; cin>>choice; if (choice == 'y') cout<<" Good afternoon, world!"<<endl; else if (choice == 'n') cout<<" …

Software Development c++
Member Avatar for DarthPJB
0
84
Member Avatar for Ulukay

Okee here my problem When i create a button in the designer , i got options in the properties window for putting a Image in the button and even a ImageAlign But i want to change the image at runtime I looked at the button members , but i cant …

Software Development gui image vb.net
Member Avatar for Ulukay
0
177
Member Avatar for phillipeharris

I am confused as to why I am getting this on GCC. I have all the flies in the same directory, I have have closed the compiler and reopened it and I am still get this error. I am getting oters too but I am sure that can be fixed …

Software Development c++
Member Avatar for ilikelampard
0
159
Member Avatar for kahaj

I'm toying around with Java trying to familiarize myself with the basic GUI stuff. I can't get my program or my text field inside of it to center on the screen. For the Simple... file, I've tried using the [code]theTextArea.setLocation(15, 30);[/code] and [code]//theTextArea.setAlignmentX(CENTER_ALIGNMENT); //theTextArea.setAlignmentY(CENTER_ALIGNMENT);[/code] seperately. When I have either of …

Software Development gui java java-swing
Member Avatar for kahaj
0
158
Member Avatar for olseh

Hallo, please, I have RX and TX pins at serial cable at my computer connect. In hyper terminal I try, that is all OK, I send and recive data. In visual basic I send BYTES with code which I send down OK, but when I use dat = READBYTE Text2.Text …

Software Development visual-basic
Member Avatar for olseh
0
162
Member Avatar for Gaiety

Hello, i found two codes for finding out the height of the tree (this is what creating confusion for me which one is correct) 1. int height( BinaryTree Node t) [COLOR="Red"]{[/COLOR] if t is a null tree return -1; hl = height( left subtree of t); hr = height( right …

Software Development c
Member Avatar for Tom Gunn
0
120
Member Avatar for sawant_nitesh

What is the best approach of writing java code in following 2...... ? What happens at jvm level in each case ? 1. [ICODE] for(int i=0;i<10;i++) { MyClass m = new MyClass(); m.doSomething(); } [/ICODE] 2. [ICODE] MyClass m; for(int i=0;i<10;i++) { m = new MyClass(); m.doSomething(); } [/ICODE]

Software Development java
Member Avatar for javaAddict
0
118
Member Avatar for Atove

Hi all! Okay i've been attempting to create this segment of code which is supposed to read from the database; based on search criteria entered, then load them into a form for viewing/editing. I am able to read the concessionID from the database; however i am then unable to select …

Software Development vb.net
Member Avatar for Atove
0
108
Member Avatar for ksenthilbabu

Hey, I am using URLDownloadToFile API for downloading files from website to which i updated, but this API is retrieving the older files even after i upload a latest version of the file. I used a fake parameters along with the url but in fail. [CODE]szFileName = "C:/somename.zip" surl ="http://www.sitename.com/foldername/filename.zip?FakeParam=" …

Member Avatar for omoridi
0
305
Member Avatar for networkmancer

Can I ask how to make a password confirm box. for ex. password: textarea retype password: textarea2 just like that. The password must be the same with the first one and will prompt that it is incorrect ones clicked the registerd button. I think the thing that must be use …

Software Development visual-basic
Member Avatar for omoridi
0
87
Member Avatar for Shenilcar

Please give me the codes or format of conversion in visual basic 1.) inches - centimeter - kilometers 2.) Fahrenheit - Celsius - kelvin 3.) currency Pls mail me at [email]Sheena_etianne10@yahoo.com.ph[/email] tnx a lot

Software Development visual-basic
Member Avatar for omoridi
0
87
Member Avatar for emint

helo every one! how can i split string in vb 6??? i got some string in list box which looks like this item1 4 4.50 item2 2 4.00 item3 5 10.00 now i want to split that line into 3 different string. any help will b appreciate . thx

Software Development visual-basic
Member Avatar for omoridi
0
4K
Member Avatar for hali_haider_ali
Member Avatar for omoridi
0
91
Member Avatar for TechSupportGeek

Well, that is exactly what I want to do. To help you a bit more, I want to create a toolbox that has an auto-hide feature so my application's users will have the option to do actions from there. To be even more specific, I want to create a built-in …

Software Development vb.net visual-basic
Member Avatar for TechSupportGeek
0
87
Member Avatar for Elektrikz

Hello guys. After some time searching around the forums for a thread about an e-book for crash course from C++ to Java and no luck I decided to post a thread about it. So my question is,does anyone has or knows such book? Thanks in advance.

Software Development c c# c++ java
Member Avatar for tux4life
0
283
Member Avatar for DoEds

I just found this example in my book. After running the program in will only ready the first line of my file. Ex. inside my file "PhoneBook.txt" Mine 12345678 Hers 1234567 Them 123456 It will only read "Mine 12345678" ignoring "Hers 1234567 and Them 123456" How will i'll make this …

Software Development c
Member Avatar for DoEds
0
113
Member Avatar for hemchantra

Dear All, Please kindly help me, i go data in the datagridview and textbox from database. i would like in textbox data change and equal to rows of datagridview. when i click next or previous button. Thanks in advance. Chantra

Software Development vb.net
Member Avatar for hemchantra
0
137
Member Avatar for lotrsimp12345

#include <iostream> #include <stdio.h> #include <fstream> #include <string> using namespace std; int main() { int number_Of_Lines_To_Print_From_End=0; char file_name[20]; streampos length; cout<<"enter file name that needs to be opened\n"; cin>>file_name; cout<<"enter number of lines to print from end of file\n"; cin>>number_Of_Lines_To_Print_From_End; fstream file; file.open(file_name, ios::out ); if(file.is_open()) { cout<<"the file opened\n"; …

Software Development c++ file-system ios
Member Avatar for lotrsimp12345
0
134
Member Avatar for jralexander137

I'm trying to find the largest int in an array and then print it out to the screen. Here is what I have so far: [code=c]void LargeNumber(int numbers[], int k){ int len = k; int i = 0; int big_num = 0; for(i=0; i<len; i++) { printf("i is: %d\n", i); …

Software Development c
Member Avatar for dkalita
0
109
Member Avatar for murid

1st of all, i'm new in socket programming... I try to received file.txt n show it in a form... I try my code below, but it always fails... it seem like become endless loops... I try to trace it, 1st loop seem ok, but it's not stoping after 1st loop.. …

Software Development socket-programming vb.net
Member Avatar for murid
0
146
Member Avatar for DigitalGirl

Hello :) I've been trying to compare to array lists with the following code: [CODE] final VideoObj v1 = new VideoObj( "A", 2000, "B" ); final VideoObj v2 = new VideoObj( "B", 2000, "B" ); ArrayList<Record> list = new ArrayList<Record>(); list.add(new Record(v1,1,0,0)); list.add(new Record(v2,3,0,0)); ArrayList<Record> list3 = new ArrayList<Record>(); list3.add(new …

Software Development java
Member Avatar for DigitalGirl
0
102
Member Avatar for splurchner

I wrote this small program for a class im taking, and its supposed to take an int n and a radix (int between 2 and 16) r and give me the number converted to the new base. It only has to go from decimal to other radix's. I run my …

Software Development c java
Member Avatar for splurchner
0
192
Member Avatar for jrosh

i created a table with a files with auto number in mysql. i added 15 raws of data i deleted some added data (say 6-15) when i add data again, auto number starts with 16. how can i make it 6? (i hope u get the point)

Software Development java
Member Avatar for roswell67
0
105
Member Avatar for lotrsimp12345

In unix if you create and open a file by using 9 digits numbers in the open function it seems to work but in C++ you only don't have a parameter to do that rather you have ios_base. Just wondering if there are owner,group and world settings that can be …

Software Development c++ unix
Member Avatar for lotrsimp12345
0
114
Member Avatar for masterjiraya

this is a while loop structure.... the output is this .....* ....*** ...***** ..******* .********* *********** supposed to be... this must be a perfect triangle... the dots represents blank spaces my code was this [ICODE=JAVA] public class stars{ public static void main(String args[]){ int stars=5, space=5; while(int i=1; i<=stars; i+2){ …

Software Development java
Member Avatar for padtes
0
96
Member Avatar for jralexander137

I'm a little lost when it comes to initializing a dynamic array. I am counting the number of integers that appear in a given text file and incrementing a counter which will then be used to set the size of the array. Here is what I have so far: [code=c] …

Software Development c
Member Avatar for Salem
0
170
Member Avatar for AbiSuren

Hi, The following code works well but the problem is it does noy reads the null values.For Example if csv file contains" Surendar,Java,maths,science,,history,english " Here the program reads the first four strings properly and for fifth string instead of reading null value it reads the next string. Please Correct the …

Software Development data-science file-stream java
Member Avatar for roswell67
0
207
Member Avatar for Samyx

Hi everyone. I want to read a file and store each word in an array. I also want to know how many words there are in the file. After I do this, I want to reverse the words from two different files and see if they are anagrams. Here is …

Software Development c++
Member Avatar for VernonDozier
0
174
Member Avatar for kevlam

hello, I'm a beginner and I'm trying to create a mortgage GUI and I'm having some trouble trying to figure out why the variables in my ActionListener are not read. can someone assist? here is my code: import java.awt.Container; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import …

Software Development gui java java-swing
Member Avatar for kevlam
0
133
Member Avatar for hao001

[ICODE] #include <iostream> #include <algorithm> #include <string> using namespace std; struct employees { int em_id; string em_name; string position; string gender; }; void read(employees record[], int max_1); bool IDsort(const employees &a, const employees &b) { return(a.em_id < b.em_id); } char Namesort(const employees&a, const employees &b) { return(a.em_name < b.em_name); } …

Software Development algorithm c++
Member Avatar for VernonDozier
0
152

The End.