132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Giorgio33

I have the coordinates of n points and I need to calculate the distance between each point until the other points. 2 0 3 0 0 5 2 1 ... ... ... I am beginner in C + + and I've worked a lot before asking for help. Already, I …

Software Development c++
Member Avatar for WaltP
0
91
Member Avatar for stavros141

Ok so I have this project in ming for along time now. Basically I have created a console app that works as a calculator by using mathfunctions from a DLL I also have created. Now the problem is I want to make it so that people can create their own …

Software Development c++
Member Avatar for stavros141
0
191
Member Avatar for banannamoofin

I am currently having problems displaying a file correctly once i have written a dictionary to the file. For this program the input file needs to have the format: ID: Date: Dayskept: ProductName e.g. 1:12/12/2011:12:A This is fine the first time I read the example file into a dictionary, but …

Software Development file-system python
Member Avatar for TrustyTony
0
213
Member Avatar for nayefc

Hello Everyone, I am trying to emulate a T9 (cellphone) keyboard in C. So lets say a user types in the numbers "23", a possible word combination would be "be". In my question here, I will only write down a part of what I have assuming it only works for …

Software Development c file-system
Member Avatar for L7Sqr
0
209
Member Avatar for fabricetoussain

hello there, im given an assignment to basically prompt user to enter name, start time, end time, am or pm, and the pay rate and from that information i need to calculate number of hours worked and how much they get paid for the day, but im very stuck. please …

Software Development c++
Member Avatar for fabricetoussain
0
334
Member Avatar for terexberd

Hey i wanted to know if there's a program that shows u a pattern on how they got the number if i give them 3 examples? for Ex: 1) 35777903801230601 (Encrypted) = 46071642 (Decrypted) 2) 35777903248036801 (Encrypted) = 43975216 (Decrypted) 3) 35777903508068601 (Encrypted) = 91756761 (Decrypted)

Software Development c++ encryption
Member Avatar for VernonDozier
0
213
Member Avatar for sirpampos

I have an assignment until next week and i don't know hot to complete it In the program in c we have to help a cat escape from a dog which has double speed. The program works as follows : the data of the program are read from the file …

Software Development c++
Member Avatar for StuXYZ
0
106
Member Avatar for DelphiGuy

Hello guys, basically I have two Delphi applications which I want to communicate and work with each other, the only problem is I don't know how. Can anyone help me create a as simple as possible programs so that when I press a button in the first program, it would …

Software Development delphi pascal
Member Avatar for DelphiGuy
0
1K
Member Avatar for sirpampos

I have an assignment until next week and i don't know hot to complete it In the program in c we have to help a cat escape from a dog which has double speed. The program works as follows : the data of the program are read from the file …

Software Development c
Member Avatar for sirpampos
0
119
Member Avatar for plasticfood

ok i have this assignment which i'm just having problems with the iterator part of it. from the [B]ListType [/B]class, this is what i wrote: [CODE] public Iterator iterator(){ return new OrderedStringListTypeIterator(list); } [/CODE] this code is from the textbook which idk how they got theirs to work, but... [CODE]import …

Software Development java
0
69
Member Avatar for loveu

how to fix the errors? [CODE]package app.util; import java.io.*; import java.util.ArrayList; import java.util.List; import app.obj.Book; public class BookDatabaseReader { public BookDatabaseReader() { bookDatabase = new File("C:"+File.separator+"User"+File.separator+"Marissa"+File.separator+"Desktop"+File.separator+"eto na"+File.separator+"dat"+File.separator+"bookdb.txt"); } public List<Book> getAllBooks() { List<Book> bookList; bookList = new ArrayList<Book>(); BufferedReader reader = null; reader = new BufferedReader(new FileReader(bookDatabase)); for(String str = …

Software Development java
Member Avatar for sirlink99
0
804
Member Avatar for Suzie999

Hello all. If there is one aspect of any language I cannot understand it is regex. I have some strings I need to parse, of varying length and content, but there are patterns. There 2 base types the first always begins with [B]%zn%[/B] and can be short or long and …

Software Development regex
Member Avatar for Suzie999
0
120
Member Avatar for lacoffo

Hello everyone :) I'm learning Java and I'm creating a pong game. There is something I don't understand how to do though. It's how do I make it so that when a button in one panel is pushed, it calls a method in another panel. Let me quickly explain the …

Software Development gui java
Member Avatar for lacoffo
0
862
Member Avatar for leo88

Hi,i am doing window form using VB C#. My problem as below: Dictionary<string, double> sortList1 = new Dictionary<string, double>();//contain key and //values Dictionary<string, double> sortList2 = new Dictionary<string, double>();//empty // do events int j = 0; foreach (double doub5 in sortList1.Values) { holder = (doub5 * 100 / richTextBox2.Lines.Length) * …

Software Development
Member Avatar for leo88
0
97
Member Avatar for user543820

Hello! I am writing a code of linked list in which user can insert or delete names but the list must remain sorted alphabetically. I have written the given piece of code by now but it is not correct. Please help me out. I took help from this link: [url]http://stackoverflow.com/questions/2941368/sorting-names-in-a-linked-list[/url][code]//function …

Software Development c++ linked-list
Member Avatar for mike_2000_17
0
336
Member Avatar for ben25x

I have figured out how to create command buttons and have tried to change their general color, but to no avail. This is what I tried, but it did nothing: [CODE]Option Explicit Dim WithEvents Com As CommandButton Private Sub Form_Load() Set Com = Me.Controls.Add("vb.commandbutton", "BtnName") With Com .Left = 100 …

Software Development gui visual-basic
Member Avatar for WaltP
0
4K
Member Avatar for da10x

Hello, for this assignment, we have to imitate SW Airline's boarding process. I think I have everything working so far, except for the fact that my program ignores every Passenger entered into the queue except the first one. It's almost as if it bypasses the if statement asking if the …

Software Development java queue
Member Avatar for da10x
0
430
Member Avatar for dospy

what's the difference between: [CODE] // main.h #ifndef X_H #define X_H #include "point.h" // supposing that point.h contains the declaration of Point class class MyClass { private: Point m_Point; //... }; #endif // main.cpp #include "main.h" //... [/CODE] and [CODE] // main.h #ifndef X_H #define X_H class Point; class MyClass …

Software Development c++
Member Avatar for dospy
0
116
Member Avatar for kubiak

What a project i must create if i want do some gui´s windows, and put the code after select item, i do graphical sudoku with difficulty. Can someone write me the way, i would like to start with graphic window and after that code and get the code to the …

Software Development java
Member Avatar for kubiak
0
56
Member Avatar for d_panayotov

Hi, I tried searching but I don't know how exactly to describe my question in 2-3 words so I didn't find anything. Is it possible to do something like this?Just to get the idea... I know it doesn't work: [CODE]switch(c){ case '1':{ (...) ; break;} case '2':{ (...) ; break;} …

Software Development c
Member Avatar for L7Sqr
0
129
Member Avatar for Tamlyn

Hey everyone :) I've been working on the first part of a program which I'm doing in 4 steps. Here's the first step which I have completed: Function inputAndValidate This function inputs the time. The time should be entered as two separate values for the hours and minutes. Do not …

Software Development c++ visual-studio
Member Avatar for Tamlyn
0
151
Member Avatar for Amillia89

Hai!!! I have a class, Search Class...this class suppose to search the data from the MySQL db...on top of the JFrame, should have two JMenu bar button which is call About Us and Help...the problem is, if you run this code, the JMenu Bar doesn't appear on top of the …

Software Development java java-swing
Member Avatar for Amillia89
0
87
Member Avatar for grylionxdj

For next loop in qbasic? hey i am taking a beginner's course in programming and i have been asked to tackle this question using the for loop its like i have to write a program that will print the numbers as follows.. 1 12 123 1234 12345 123456 how can …

Software Development qbasic
Member Avatar for Unseen Machine
0
118
Member Avatar for emreozpalamutcu

I'm making a system cleaner on C++ and what would be the best project to use? @ Windows forms application @ Empty project @ Win32 project @ Win32 Console application Note: This project has to have interface it's not console based! Reason why there is console app is you could …

Software Development c++
Member Avatar for emreozpalamutcu
0
135
Member Avatar for hypeh

Hi guys, I have a program that searches a large quantity of files and performs tasks on the files. can anyone tell me how to do the following: I want to create a "Searching" window that pops up with a loading bar on it. i want the main window to …

Software Development
Member Avatar for Mitja Bonca
0
113
Member Avatar for Usmaan

I have two Forms in my project. The first one I made makes the program exit if I hit 'X' button at the top of the window which is obviously normal. But that's not the case with the second form where If I hit the 'X' button then the Form …

Software Development
Member Avatar for Usmaan
0
104
Member Avatar for davidcraigster

I'm creating a class for a text analysis for letter frequency. I am trying to compile it, but i'm having some problems. Could someone look at this for me? This is what I have so far: [CODE] class Analysis { private: string letters[26]; string text; int count; public: Analysis() { …

Software Development c++
Member Avatar for Ancient Dragon
0
836
Member Avatar for arshi9464

I WAS JUST EXPERIMENTING SOMETHING. AFTER COMPILING THIS I GOT THE ERROR: "<identifier>expected x=1;" i have got this error many times, but don't know why this occurs and also i have made the object of the class dabba in the dabba class's main method, is it wise thing to do?????? …

Software Development java
Member Avatar for arshi9464
0
109
Member Avatar for llamaboy

Hi I am trying to store an array into a file. I have tried a few ways but I end up with an extra line at the end of the file. The only way I can do this without the line is by writing [code] ofstream myfile("Stock.txt"); if (myfile.is_open()) { …

Software Development c++
Member Avatar for llamaboy
0
3K
Member Avatar for hao90

[CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class SwingAnimation{ Thread th; ImageIcon images; JFrame frame; JLabel lbl; int i = 0; int j; public static void main(String[] args){ SwingAnimation sa = new SwingAnimation(); } public SwingAnimation(){ frame = new JFrame("Animation Frame"); th = new Thread(); lbl = new JLabel(); Panel …

Software Development java java-swing
Member Avatar for JamesCherrill
0
120
Member Avatar for itslucky

Hi Friends, How can I create a number which will be construct with the array values. e.g. [CODE] arr[0]=2 arr[1]=5 arr[2]=8 arr[3]=4 [/CODE] now the number will be, [CODE]int num=2584[/CODE] please help me for this... Thanx...!!!

Software Development c
Member Avatar for Arbus
0
135
Member Avatar for d_panayotov

Hello, I have this assignment in C. The problem is that the functions have to be placed in separate files instead of just one. I haven't done that before. It seems code that would have run if the program was written in one file doesn't work when the functions are …

Software Development c visual-studio
Member Avatar for d_panayotov
0
172
Member Avatar for Shantanu88d

Hi all, I have added a template field in a gridview. In that i have added a radio button. I have written a code which will get row Id of GridView of a row which is having a radiobutton on it checked. Through code i am getting even name of …

Software Development asp.net vb.net
Member Avatar for Shantanu88d
0
96
Member Avatar for Asif_NSU

Gaussian elimination is designed to solve systems of linear algebraic equations, [A][X] = [B] This program reads input from a file which is passed as an argument when calling the program. Say the matrix is in file name matrix.txt so we call the program in this way: ------------------------- gauss matrix.txt …

Software Development algorithm c
Member Avatar for xNourax
0
1K
Member Avatar for JPramod

Hi, This is just a thought. So please don't get mad at me and please don't waste much time over this either. Just wanted to share something that occurred to me. Now I've done a bit of java and a bit of C. Now what I want to do is …

Software Development c c# c++ java
Member Avatar for JPramod
0
184
Member Avatar for jackmaverick1

Hi, I just started Java (But I do have 1.5 years in c++) and I found that string switchs aren't allowed, so I tried using a character array, now when I try to define the array, it says that [ICODE]char [10 for example]array;[/ICODE] is not allowed because of [10 for …

Software Development java
Member Avatar for JamesCherrill
0
95
Member Avatar for Dragazarth

If I have 9 buttons called button1, button2 etc up to button 9 how can I change their properties using a loop? Or can I group them together? I have something like this [CODE]for (int i = 1; i <= 9; i++) { button.Enabled = true; button(i).Text = "BLAH!"; }[/CODE] …

Software Development
Member Avatar for Dragazarth
0
321
Member Avatar for turt2live

Hello, For some reason when I use the particualr block of code below it will work the first time, but when called again with RemComps as true, it will work almost the way I want it to, but instead of the one set of buttons it has 2 (or the …

Software Development java
Member Avatar for turt2live
0
209
Member Avatar for shyla

I am struggling with this assignment to long i need someone to tell me what am i doing wrong Write a program with three functions: upper, lower, and reverse. The upper function should accept a pointer to a c-string as an argument. It should step through each character in the …

Software Development c++
Member Avatar for Arbus
0
1K
Member Avatar for Theanonymous

I need to write a program that calculates the squares of all numbers that are contained in a file of floating point numbers. The obtained new numbers form a new file. Like this : if the file contains the numbers 1, 2.5, 0.1, the numbers 1, 6.25 and 0.01 form …

Software Development c c# c++ unix
Member Avatar for finchh
0
295
Member Avatar for flizbert

Hi, I'm new to these forums and have been working with xslt for about a month. So far I've been able to do just about everything I need with it, but my most recent task has me confused. I have a relatively flat xml structure that I'm using XSLT to …

Software Development xml
Member Avatar for xml_looser
0
672
Member Avatar for TheWhite

I tried everything could possibly think of to do this and have spent hours trying to figure it out.. I'm trying to take this timestamp: 2011-03-23 00:43:07 which is in GMT zimezone and convert it to a Date that is in my timezone which is 4 hours later. 1. It …

Software Development java
Member Avatar for JamesCherrill
0
5K
Member Avatar for elbib84

hi, am trying to parse a multiple pairwise format into table for example: Query= m100529_140129_SMRT1_c0000010190006406181231110_s0_p0/32965/0_332_clipped_50:0 (282 letters) Query: 8 TTTTTGAACAGCCCCAACAACTCTTCCGCTGCCGGTTGCTGCA-TTCCAGTTGTTCCACA 66 ||||||||||||||||||||||||||||||||||||||||||| |||||||||||| ||| Sbjct: 4045830 TTTTTGAACAGCCCCAACAACTCTTCCGCTGCCGGTTGCTGCACTTCCAGTTGTTC-ACA 4045772 Query: 67 GTCCAGCTCCAGTTCAACGTCGGTTTAAATCGTCG--AGCT-GTATGAGAGATAAGCATA 123 | ||||||||||||||||||||||| |||||||| |||| |||||||||||||||| | Sbjct: 4045771 GGTCAGCTCCAGTTCAACGTCGGTTTTAATCGTCGCCAGCTGGTATGAGAGATAAGCA-A 4045713 Query= m100529_140129_SMRT1_c0000010190006406181231110_s0_p0/56521/6_684_clipped_527:0 (151 letters) Query: 1 CTTCAAAGAGGGAGAATTACGTCGATATTACCGAAGGCTGGGAGAAGGGTGAAAATACAA 60 …

Software Development python
Member Avatar for griswolf
0
151
Member Avatar for Kunal Aggarwal

I made the Huffman code algorithm... and made the tree as it should be made.. The problem comes how do I print the code from the tree.. Theoretically I know the code generation.. But how to implement in C++.. Using TC. The following tree is constructed for this data [CODE]Alphabet …

Software Development algorithm c++
Member Avatar for Kunal Aggarwal
0
152
Member Avatar for Jaseem Ahmed

i want to delete selected record from listview and database, but when i press delete button, it deltes onlye first record of listview not selected record... here is code...[CODE] Private Delte_Click() Call Mydatacon Dim rs As adodb.Recordset Set rs = New adodb.Recordset rs.Open "SELECT * FROM AAAAA_DEMO", con, adOpenStatic, adLockOptimistic …

Software Development listview visual-basic
Member Avatar for Jx_Man
0
1K
Member Avatar for dospy

i've seen in some sources that some classes have Getters and Setters even for public data members [CODE] class Example { private: int m_ID; public: string m_Name; int m_Age; Example( ); ~Example( ); void SetName( string nName ) { m_Name = nName; } void SetId( int nID ) { m_ID …

Software Development c++
Member Avatar for dospy
0
195
Member Avatar for Khoanyneosr

[CODE]/* Beginning Game Programming, Third Edition Chapter 4 Load Bitmap program */ #include <windows.h> #include <d3d9.h> #include <d3dx9.h> #include <time.h> #include <iostream> using namespace std; //program values const string APPTITLE = "Load Bitmap Program"; const int SCREENW = 1024; const int SCREENH = 768; //key macro #define KEY_DOWN(vk_code) ((GetAsyncKeyState(vk_code) & …

Software Development c++
Member Avatar for LevyDee
0
140
Member Avatar for asif49

I've been making a program which reads several strings from a Notepad file which's location is set through user input. Then they enter a string which is in the file, a positive message is shown if it's not then a negative one is shown. However I can only scan the …

Software Development file-system java
Member Avatar for javaAddict
0
88
Member Avatar for pseudorandom21

What would be a common strategy for using DLLs coded in native C++ in C#? I'm not really finding much good information about it, other than writing the DLL in C.

Software Development c# c++
Member Avatar for mike_2000_17
0
778
Member Avatar for naseerhaider

I'm brand new to C++ ,I've written following code for finding a number's factorial,Can you please let me know how to write it more elegantly ? [CODE]#include <iostream> using namespace std ; main () { int num = 0 ; // declaring variables double result = 1 ; long int …

Software Development c++
Member Avatar for naseerhaider
0
176

The End.