132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tyacag876

I'm having trouble implementing how to get it to read every word from the document and check to see if its in the dictionary using the hash table.. Please help anyone. I'm fairly new to programming. I have to develop a spell checker program. MY program has to use a …

Software Development c++
0
110
Member Avatar for sciwizeh

Hello all, I have the bluej source code in eclipse, and it compiles fine, but when I try to run it BlueJ starts fine, and then pops up an error window that says that bluej couldn't create a VM. My installed BlueJ has never given me this error before, so …

Software Development java perl
Member Avatar for llemes4011
0
158
Member Avatar for react05

Hey guys, how would i convert the code in option ascending and descendingGPA to where it sorts all students in ascending order by lastname and all students in descending order by gpa. thanks! [code] #include <iomanip> #include <iostream> #include <fstream> #include <cstring> using namespace std; struct StudentRecord { char lastName …

Software Development c c# c++ ios open-source
Member Avatar for Ancient Dragon
0
107
Member Avatar for iluv2laugh

Hi folks, I am using FindNextFile() and GetFileTime() to find a file in a folder with the latest creation time. The code is as follows... [code=c] WIN32_FIND_DATA ffd; HANDLE hFind = INVALID_HANDLE_VALUE; DWORD dwError=0; LPWSTR filePattern[MAX_PATH]; LARGE_INTEGER filesize; FILETIME ftCreate; FILETIME maxCreationTime; maxCreationTime.dwLowDateTime=0; maxCreationTime.dwHighDateTime=0; hFind = FindFirstFile((LPCWSTR)filePattern, &ffd); if (INVALID_HANDLE_VALUE …

Software Development c++
Member Avatar for Ancient Dragon
0
231
Member Avatar for DashHax

I'm developing an advance web browser in visual basic 2008. But there are some problems that really irritate me: 1) Firstly, when there is a popup window, it open in new IE window instead of my own window. I want the popup to open in my own tab/window instead of …

Software Development vb.net visual-basic web-browser
Member Avatar for DashHax
0
96
Member Avatar for lotrsimp12345

the delete must be by copying the data and then deleting if their are 2 nodes from that one root. CODE IS AT VERY END FOR THAT. CALLED REMOVE. Thanks. main [CODE] #include <iostream> #include "my_bst.h" using namespace std; int main() { my_bst<int,int> ab; ab.insert(4,1); ab.insert(2,2); ab.insert(6,3); ab.insert(1,4); ab.insert(3,5); ab.insert(5,6); …

Software Development c++
Member Avatar for lotrsimp12345
0
85
Member Avatar for dark1806

hi..pls help me with this ...when i run this c program i get in result segmentation fault message (i run in ubuntu terminal): [CODE=c]#include<stdio.h> #include<utmp.h> int main() { char *s,*c; struct utmp *u; int i; c=getlogin(); setutent(); u=getutent(); while(u!=NULL) { if(u->ut_type==7 && strcmp(u->ut_user,c)==0) { printf("%-12s",u->ut_user); printf("%-9s",u->ut_line); s=ctime(&u->ut_time); for(i=4;i<16;i++) printf("%c",s[i]); printf("(%s",u->ut_host); …

Software Development c ubuntu
Member Avatar for dark1806
0
133
Member Avatar for noey699

I am trying to create a timer that calls a function when the timer ends this is the timer class [code] class CreateTimer{ float OverallLapsed; float EndOfTimer; bool Running; public: CreateTimer::CreateTimer(float); void StartTimer(); void StopTimer(); void Lapsed(float); void SetEndOfTimer(float); bool CheckTimer(); void ResetOverallLapsed(); float GetOverallLapsed(); }; CreateTimer::CreateTimer(float EndTime){ EndOfTimer = …

Software Development c++
Member Avatar for noey699
0
96
Member Avatar for hit25

So here is the problem. I have a file that starts with a number, this number says how many entries are in the file (5 means there are 5 names). Each entry takes up two lines in the txt file. First line is the name, the second is a group …

Software Development c++ data-science
Member Avatar for hit25
0
246
Member Avatar for roswell1329

My company is retiring an online document warehousing application that stored lots of text data. The application stored the data in a folder hierarchy that looked just like a Windows folder tree. I'm trying to replicate that hierarchy on a UNIX file system, but the tools provided with the application …

Software Development perl unix
Member Avatar for roswell1329
0
95
Member Avatar for Geek_Cyborg

Hello, I want to store all ListView items of index (2) in a MultiLine TextBox, Please explain how can i transfer all listed text of specific index

Software Development listview visual-basic
Member Avatar for vb5prgrmr
0
92
Member Avatar for truekid

-------------------------------------------------------------------------------- So i just realized after checking my emial that i have a python hw for my comp sci class due tom night at 12am . I read the hw and i am a bit lost. I will be starting it tonight once i get out of work. The task …

Software Development python queue
Member Avatar for sneekula
0
106
Member Avatar for gangster88

i am a bit stuck on this, i need to call the first 2 functions for the output in the 3rd one. The user has to should be able to continue until they want to stop converting and they should be asked on which way the conversion is to be …

Software Development python
Member Avatar for sneekula
0
597
Member Avatar for venkatnams

guys i recently used this following code in my project,, [url]http://www.vb-helper.com/howto_store...access_db.html[/url] after adding the above form in my project i added microsoft active x control in my reference,,cos the above code needs it,,,, i also have added microsoft dao 3.5 in reference before i added the above form,,, then i …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
108
Member Avatar for Bladtman242

Hi, i just don't get why this isn't working. It is supposed to read from the end of a .txt and up, until it hits the first space but it just keeps repeating the last character in the text file ip.txt Any help is much appreciated. [code=c++]#include <iostream> #include <fstream> …

Software Development c++ ios
Member Avatar for Bladtman242
0
631
Member Avatar for Musafir

[CODE]def main1(f): return (f - 32) * 5.0 / 9.0 def main2(c): return 9.0 / 5.0 * c + 32[/CODE] the two function above convert fahrenheit and celsius I have to write a third function which calls the two functions above and allows the user to input to convert between …

Software Development python
Member Avatar for sneekula
0
393
Member Avatar for Tech B

I want to read two points in a picture. Most pixel values will be (0,0,0). I don't know how to take the flatted data and separate it into x,y coordinates. I use the Image library and VideoCaputre.

Software Development python
Member Avatar for fallopiano
0
527
Member Avatar for Prahaai

Good day. I would need an advice about sys.stdout and sys.stderr. I use Python 2.6, on Windows XP SP3, but i think the question is the same for UNIX/ MAC computers. I tried all possible combinations before posting this message, so ANY advice would be great. I work with "subprocess" …

Software Development python unix
Member Avatar for Gribouillis
0
346
Member Avatar for Garee

Hey guys I have a wee problem I need some help with. How would I read in lines of text one at a time, keeping track of the line numbers, only stopping when a line is read that contains only a single full-stop. Example: It is a briskly blowing wind …

Software Development python
Member Avatar for masterofpuppets
0
105
Member Avatar for Xav123

Hey guys im back again with a problem, i am trying to add circles to my board but i cannot do it, i am getting one error. cannot find symbol symbol : variable Col location: class SimpleDrafts g.fillOval(4 + Col*20, 4 + Row*20, 15, 15);? Anyone know the prob?? [CODE] …

Software Development java java-swing
Member Avatar for Xav123
0
114
Member Avatar for biotic.computer

Hi everybody :) i opened a freshly new blog about python and simulation in bioinformatics and i started by programming a DNA Replication,Transcription andTranslation simulator with very simple python commands so is there any improvement to the code source? the Vpython is needed for graphs the blog:[URL="http://bioticcomputer.blogspot.com/"]http://bioticcomputer.blogspot.com/[/URL] the code source:[URL="http://www.slingfile.com/file/ENAI9lK4FM"]http://www.slingfile.com/file/ENAI9lK4FM[/URL] …

Software Development python
Member Avatar for Gribouillis
0
112
Member Avatar for Darth Vader

I have two processes where the First process sometimes is writing to a file and the second process is reading this file. For the second process I wonder if it is possible to only read the file if the First process does not use the file. How would it be …

Software Development c++ file-system
Member Avatar for Darth Vader
0
147
Member Avatar for saharh89

I've been lost in this class for weeks and I have no idea how to even do this assignment. [ATTACH]12667[/ATTACH] please help! It's in the attachment

Software Development c++
Member Avatar for Narue
0
167
Member Avatar for marcux

Hi all! I want to make a subclass of dict and I have read about subclassing and the super method. The problem that I do not get is how I override the following method: [CODE]dict[key] = value[/CODE] This creates a new key with the specified value. I want to override …

Software Development python
Member Avatar for Gribouillis
0
195
Member Avatar for kavourdoukos

I would like to open from a file and then store the strings stored in the txt filed to an array.The txt file i want to open has 1 string on each line.So each line will be 1 string.What should i change here? [CODE]// reading a text file #include <iostream> …

Software Development c++
Member Avatar for kavourdoukos
0
122
Member Avatar for sneekula

I was trying to create a 3x3 list of lists, and came up with this surprising behaviour: [code]# creating a 2D list with an overloaded * operator mlist3 = [[0]*3]*3 print mlist3 # [[0, 0, 0], [0, 0, 0], [0, 0, 0]] mlist3[0][0] = 1 print mlist3 # [[1, 0, …

Software Development python
Member Avatar for Mathhax0r
0
1K
Member Avatar for mimsc

Database records are returning strings as follows: "Washington%20Report%3A%20Good%20Faith%20Estimate%20Mortgage%20Disclosures" Is there a method that automatically translates those characters...or do I need to set it up? Apparently the %20 is equal to a space and the %3A is equal to ":" thanx in advance

Software Development java
Member Avatar for mimsc
0
280
Member Avatar for Musafir

i have to write a program that simulates the flipping of a coin. 1. the function should ask the user how many times the coin should be flipped 2. the program should display the poportion of times that the head and tails appeared. (for example if the user enters 10 …

Software Development python
Member Avatar for vegaseat
0
141
Member Avatar for robayas

can anyone help me with my problem? i'm trying to set a password in my database using vb.net. here's my codes.. Private Sub btn_ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_ok.Click Dim chkpass As Integer Dim strsql As String Dim conDatabase As ADODB.Connection conDatabase = New ADODB.Connection 'Dim …

Software Development open-source vb.net
Member Avatar for SadOldMisterHam
0
174
Member Avatar for khush9

Hey, anyone can plz help me out!!!!! i hav a tabpage on a form n on its click event i want to call the tabpage of another form (like frmcut.tabcontrl.tabpage1). But i dont know how to do it???? so plzzz help me...

Software Development asp.net vb.net
Member Avatar for GeekByChoiCe
0
66
Member Avatar for SoulMazer

Okay, so I am writing a media player and I would like to be able to control the entire thing without the use of a GUI. So...are there any libraries or anything that would allow me to collect keystrokes on any OS (not just Windows)? Thanks in advance.

Software Development gui python
Member Avatar for Tech B
0
235
Member Avatar for aleezy

For my final project our group is suppose to simulate a game of table tennis this is what we have so far at the bottom. We followed the raquetball game setup for the code but we werent sure how to change this so that when a player scores it doesnt …

Software Development python
Member Avatar for masterofpuppets
0
2K
Member Avatar for Valaraukar

Hi, I'm trying to update an objects information within my linked list but for some reason after attempting to alter the data no changes appear to have taken place. As far as I am aware I'm not updating a copy of the object because I am finding the relevant object …

Software Development c++ linked-list
Member Avatar for Valaraukar
0
183
Member Avatar for samsons17

Hi.. I'm writing a code for the cash receipt program.... before this,i already make this kind of program.. but the program that i've made before is simply doing this task only : [B] //ask the user to enter the product information... Enter the product id : Enter the product name …

Software Development c++
Member Avatar for samsons17
0
100
Member Avatar for Dorayaki

Hi Can anyone please check my code ? I'm trying to get today's date from database I tried many ways and I'm stuck now.. at my database access the transdate appears like this [CODE]11/29/2009 2:02:23 AM[/CODE] and this is my query code from VB.NET [CODE]"SELECT TransDate, Deposit, Withdrawal, TotalAmount FROM …

Software Development vb.net
Member Avatar for Dorayaki
0
263
Member Avatar for hajiakhundov

Hello Everyone. I am creating this Windows Forms Application using Visual Studio. Basically, in order to do what I want to do, I need to use an integer, and that integer needs to be converted into a string in order to change the label text, when pushing the button. However, …

Software Development c++ visual-studio
Member Avatar for hajiakhundov
0
2K
Member Avatar for Sky Diploma

Hey Everyone, I have written this Matrix Multiplication program. But The Program seems to crash when during the filling of the first matrix, exactly after the completion of the first row. Here is my implementation [code] #include <iostream> using namespace std; void generate (int ** ,int ,int); void fill (int …

Software Development c++ matrix-multiplication
Member Avatar for Sky Diploma
0
155
Member Avatar for lewashby

Please look at the program below as well as my understanding of how it flows and correct me if I'M wrong. Thanks The first line in main - [COLOR="Red"]crit = Critter("Poochie")[/COLOR], creates an object with the string "Poochie" and autmoatically calls [COLOR="Red"]__init__[/COLOR], printing "A new critter has been born!" [COLOR="Red"]__init__ …

Software Development python
Member Avatar for lewashby
0
175
Member Avatar for sateeshbandi

I Have a C header file which has common structures which are used by various modules. Im developing my code using C++, few of the newly written modules are in C++. We have to use the same structures defined in that C header file. What i am thinking of doing …

Software Development c++
Member Avatar for vmanes
0
123
Member Avatar for nizbit

I have a dictionary that I would like to load from a file into a class variable. The dictionary holds configuration data. I would have different files for different configurations. I was wondering if there is a way to do this? I found pickle but that saves an existing instance …

Software Development data-structure python
Member Avatar for winmic
0
92
Member Avatar for karthik chinta

Hi, I am trying to develop one requirement wherein I need a C++ map having both Key and Value as Structures. The structures are as follows: [code] typedef struct _keyInfo { int Key1; int Key2; } T_KeyInfo, * T_pKeyInfo; typedef struct _valueInfo { int value1; int value2; int value3; } …

Software Development c++
Member Avatar for lyle017
0
10K
Member Avatar for MxDev

Hi guys, I'm writing a simple text editor with syntax highlighting feature, my code depend on a timer object to update the whole text every 1 sec., I found it's difficult to select all the text due to the regular updating of the text after timer ticks. So, Is there …

Software Development
Member Avatar for MxDev
0
76
Member Avatar for gianx80

Hi, I'm studying the basis of C, C++ and Assembly languages at my university (I have two exams about these subjects, for now) ... and I have a problem ^^. I wrote a program in C (not so optimized, this isn't our present goal for my professors) that recieves in …

Software Development assembly c
Member Avatar for gianx80
0
132
Member Avatar for Shotty

hey i'm trying to do my homework for a computer science class, and im a bit stuck. When i run the program, the terminal window doesn't even show up, can anyone help me please. Thanks in advance. class: [CODE]public class Grid { public Grid() { rows = 10; columns = …

Software Development java
Member Avatar for javaAddict
0
133
Member Avatar for digikid

I use Delphi 7 and just installed Win 7, 64 bit When I try to set an environment variable, it does not get saved to the OS. In XP, these same functions would save environment variables just fine. Does anyone have any knowledge to this issue? Thanks, Joe

Software Development delphi pascal windows-vista-7-8
Member Avatar for FlamingClaw
0
174
Member Avatar for saikeraku

I'm just trying to create a program that will remove all the trailing whitespace in a text file. (Like all the whitespace after each sentence for the whole text file.) [CODE] n = raw_input("Enter name of file: ") f = file(n, "r") fr = f.read() for fr in f: fr …

Software Development python
Member Avatar for woooee
0
130
Member Avatar for rati

Hi all, I was going throughthe concept of Polymorphism. Can anyone explain me how the vtable and vptr are created in case of virtual base class and what all values it contains. I have idea about the vTable and Vpt in case of polymorphism that the table contains the address …

Software Development c++
Member Avatar for Narue
0
324
Member Avatar for NorthDakota

Hi all, again :) i have another problem with my program. I need to print a textbox that contain some data (of course). The textbox is formatted like this: [CODE] HEADER Data1 Data2 Data3 Data4 Data5 Data6 Etc... FOOTER [/CODE] I managed to print the file using the DocumentPrint object. …

Software Development vb.net
Member Avatar for NorthDakota
0
235
Member Avatar for Afupi

Ok what I have currently is the blelow code in a for loop and this works fine it just doesn't format the text. [CODE] outString = outString + " " + i + " " + numArray[i] + "\n";[/CODE] I am trying to format the text of i to right …

Software Development java
Member Avatar for Afupi
0
253
Member Avatar for fjrivash

Hi *, I have some doubts about passing parameters to a method of a class. I am not sure if it is a problem of my design of the app or a problem of the implementation, I mean C++ knowledge. I have a class called MatrixHandler : The idea is …

Software Development c++
Member Avatar for fjrivash
0
131

The End.