132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wnr78ta

I am writing a m-file that simply takes in a picture of a board with 27 LEDS on it and simply tells you which LED is lit up. My problem is with the calibration of the m-file. I am trying to use [x,y] = ginput(27) to have the user click …

Software Development image
0
107
Member Avatar for CimmerianX

So, I am a novice with python. I'm trying to teach myself python just to expand my skills. I gave myself a simple challenge and I need some guidance here on how to get it done. The goal is to read in a dhcpd leases file, read through the lease …

Software Development file-system python
Member Avatar for TrustyTony
0
954
Member Avatar for hwoarang69

hi i have a 3 part question. can any one explain how can i read from a file and store it in array.(have to use fread). the way i was thinking of doing this was. int ar[50]; int ar2[50]; //read 20 charater at a time while(fread(ar, 1, 20, file) != …

Software Development c
Member Avatar for Ancient Dragon
0
134
Member Avatar for fistfullofbeer

I am working on a personal project and am trying to figure out if Python 3 or PHP would work better. I prefer Python because I am trying to hone my skills at it and at the same time I really do like its syntax and ease to learn. I …

Member Avatar for TrustyTony
0
167
Member Avatar for rmbrown09

I will try and keep this quick and simple. I want to break a loop I have by entering 'q' or something to that effect. My loop has the user enter numbers until they enter "Q" in theory. I have tried converting int's to char's and then making the loop's …

Software Development c++
Member Avatar for dysrhythmia
0
136
Member Avatar for solahere

hello Folks, I would really appreciate if I could get some help on this. I have an Integer lets say number = 12345 I want to get a string out which is 12,345 so basically puts a commas after every three digits... the number of digits in the number can …

Software Development java
Member Avatar for micahli123
0
3K
Member Avatar for carinlynchin

here is my code that is giving me the error(just this section) InitializeComponent(); String sqlString = "SELECT firstName, lastName FROM ClubMembers"; //database connections and commands String stConn = App.getConnectionString(); DataTable data = App.getGenericData(sqlString); //get data and put into list box for(int i=0; i<data.Rows.Count; i++) { string d1 = data.Rows[i]["lastName"].ToString() + …

Software Development
Member Avatar for Mitja Bonca
0
144
Member Avatar for huskarit

I don't now how to validate date time picker controls....someone know?

Software Development vb.net
Member Avatar for laxmanpathare
0
1K
Member Avatar for cessna172

[code] NODE *head; public: void push(int value){ NODE *temp = (NODE*) new NODE; temp->value = value; temp->link = head; head = temp; }//end of push. void pop(int&value) { NODE *temp = head; value = head->value; head = head->link; delete temp; }//end of pop. int is_empty(void){ return head == NULL; }//end …

Software Development c++
Member Avatar for mrnutty
0
2K
Member Avatar for priyanka85

public Card deal_one_card(List<Card> cards) { if (cards.Count() == 0) { return null; } return cards.RemoveAt(0); } I am getting an error when I run this function "Cannot implicitly convert type 'void' to 'Poker.Card' Can somebody help with me this? Thanks in advance.

Software Development c#
Member Avatar for Dani
0
163
Member Avatar for amazing

To register for my program (the program to read and process data from excel file), I did the following: [CODE] //Register ContextMenu public static void RemoveContextMenuItem(string extension, string menuName) { RegistryKey registryKey = Registry.ClassesRoot.OpenSubKey(extension); if (registryKey != null) { string extstring = registryKey.GetValue("").ToString(); //root registryKey.Close(); if (!string.IsNullOrEmpty(extstring)) { registryKey = …

Software Development
Member Avatar for amazing
0
311
Member Avatar for nyfan68

I have a programming question that calls for me to write a program that concatenates the contents of several files into one file. For example, java CatFiles chapter1.txt chapter2.txt chapter3.txt book.txt makes a long file, book.txt, that contains the contents of the files chapter1.txt, chapter2.txt, and chapter3.txt. The output file …

Software Development java
Member Avatar for nyfan68
0
191
Member Avatar for nyfan68

I'm working on a program that calls for me to write a program that opens a binary file and prints all ASCII characters from that file, that is, all bytes with values between 32 and 126. Print a new line after every 64 characters. Here is a sample program run: …

Software Development java
Member Avatar for nyfan68
0
210
Member Avatar for hey.howdy

[CODE] // absolute.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int i=0, j=0,k=0,l=0; string yes1;bool outcome;int u=0,v=0,w=0; string arr[4 ][4]={{"Name","Plot #", "Cost", "Address"}, {"john", "1121", "Rs.1000", "62 johar TOWN LAHORE"}, {"jonty", "1123", "Rs.100000", "56 …

Software Development c++
Member Avatar for thines01
0
320
Member Avatar for akaicewolf

So I need to write a chaining hash map. I found some examples on the internet and have a pretty clear idea on how to go about it. However the biggest problem I am having is understanding the different hash function. I have a large list of id and they …

Software Development c
Member Avatar for gusano79
0
183
Member Avatar for 4evrmrepylrning

Help needed please. Desperate. I have a 3.somethingGB file that contains records that looks like this: [ICODE]<tag> <number>1</number> <info>blah blah</info> <more>Lorem Ipsum</more> <anothertag>The quick brown fox...</anothertag> <id>32444</id> <yetmore>blah blah</yetmore> </tag> <tag> <number>2</number> <info>qwerty</info> <more>yada yada qwerty</more> <anothertag>yada yada qwerty</anothertag> <id>32344</id> <yetmore>yada yada qwerty</yetmore> </tag> <tag> <number>3</number> <info>yada yada qwerty</info> <more>yada …

Software Development python
Member Avatar for Gribouillis
0
277
Member Avatar for hey.howdy

// absolute.cpp : Defines the entry point for the console application. // [CODE] #include "stdafx.h" #include<iostream> #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int i=0, j=0,k=0,l=0; string yes1;bool outcome;int u=0,v=0,w=0; string arr[4 ][4]={{"Name","Plot #", "Cost", "Address"}, {"john", "1121", "Rs.1000", "62 johar TOWN LAHORE"}, {"jonty", "1123", "Rs.100000", "56 …

Software Development c++
0
103
Member Avatar for vishnukumar

Hi, I am vishnu kumar. I knew the basics of Java but this is the first time i am building a project based on java (Java Swing actually). This is my final semester project and for last two months, i am doing my project. I initially thought the database(along with …

Software Development java java-netbeans mysql sql
Member Avatar for vishnukumar
0
728
Member Avatar for saleem.mukhtiar

dear friends i want to filter data by date ... see the attach pictures, after using where clause i receicve 0 rows :(

Software Development vb.net
Member Avatar for adam_k
0
98
Member Avatar for reds8

How to insert more than one rows of data to Access?? All my textboxes are created during runtime and I want to add the text in textboxes to database. some times i want 3 rows and some times maybe 10 rows This is the code to create textboxes. [CODE] For …

Software Development vb.net
Member Avatar for adam_k
0
151
Member Avatar for spixy

this is a little bit confusing, but can I know what does each part of this codes means.. especially those ptr, something. i understand those mov.. but the others aren't. i have googled a lot, but still can't understand.. what i know: the basic structure of tasm(.stack, .data, .code, and …

Software Development assembly data-structure
Member Avatar for spixy
0
938
Member Avatar for mc3330418

I have to take this program and make a header file, and implementation file, and a driver file. I wrote the original code and with all of the couts int the functions I can only put one function into an implementation file. [CODE] #include <iostream> #include <iomanip> using namespace std; …

Software Development c++ file-system
Member Avatar for Ancient Dragon
0
208
Member Avatar for johans22

//use nib in Nibbler to set nib1, nib2, nib3. How the Nibbler and ABC get more efficient to send the Nbytes in ABC?. [CODE]union ABC { unsigned char Nbytes[4]; struct { unsigned short nib1 : 4; unsigned char NA1 : 2; unsigned short nib2 : 4; unsigned short nib3 : …

Software Development c++
Member Avatar for L7Sqr
0
78
Member Avatar for paintballer1518

Currently having trouble completing my code homework for my class. Help would be greatly appreciated. Write a menu-driven C++ program to manage employee data. Your program should begin by reading in a file of employee information (filename employdata.txt). Each data line contains the following information: {hire date} {employee ID} {salary} …

Software Development c++ mathematics session
Member Avatar for paintballer1518
0
2K
Member Avatar for ilovephil

how can i use F1-F12 in switch case statement??

Software Development c
Member Avatar for jbennet
0
177
Member Avatar for maxwellp

I have written the following code to return True if the list has any repeating elements and False ow [CODE]def has_repeats(L,newlist = None): if newlist == None: newlist = [] if len(L) == 0: return False if L[0] in newlist: return True else: newlist.append(L[0]) has_repeats(L[1:],newlist)[/CODE] It is not returning True …

Software Development python
Member Avatar for TrustyTony
0
165
Member Avatar for naieev

Hi, I have a similar requirement. We have a huge csv file (2GB odd) that has to be loaded into our database. We're concerned with only two fields here say col1 and col2 (of the 32 fields) before loading into the database we need to check if there is a …

Software Development perl
Member Avatar for d5e5
0
135
Member Avatar for toomutch

Hi All, I need to show a map, plotting addresses that are held on a sql database. Has any one come across any software suitable for this task (i.e. can be built into vb.net). I have tried using MS MapPoint, which according to the write up says it will do …

Software Development vb.net
Member Avatar for toomutch
0
192
Member Avatar for ThomsonGB

Without the complete context to summarize: [CODE] #include "stdafx.h" #include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <objbase.h> using namespace std; BYTE* StringToGUID(LPOLESTR szBuf) { GUID *g = (GUID *) malloc( sizeof(GUID)); HRESULT h2 = CLSIDFromString(szBuf, g); return (BYTE*) g; } [/CODE] I Get: 1>Linking... …

Software Development c++ microsoft visual-studio
Member Avatar for ThomsonGB
0
2K
Member Avatar for slman

Write a program that rolls a dice (but hide the number from player) and then ask user enter a number in range of 1 - 6. If player enters same number of computer rolled, then the player earns $10. If player enters a number that is smaller or larger by …

Software Development java
Member Avatar for stultuske
0
102
Member Avatar for nyfan68

I have an assignment that calls for me to Write a program Find that searches all files specified on the command line and prints out all lines containing a keyword. For example, if you call java Find ring report.txt address.txt Homework.java then the program might print report.txt: has broken up …

Software Development java
Member Avatar for stultuske
0
393
Member Avatar for mehnihma

I need to find a word in JTextArea and highlight it, can you help me with this code? [CODE]class managerClass implements ActionListener { @Override public void actionPerformed(ActionEvent e) { String myWord = txt.getText(); Highlighter h = textArea.getHighlighter(); if (e.getSource() == bFind) { pattern = Pattern.compile("\\b"+myWord+"\\b"); Matcher matcher = pattern.matcher(myWord); while( …

Software Development java
Member Avatar for peter_budo
0
5K
Member Avatar for infogirl

I have written the program which fills an array of structures and then writes that array to txt file. The problem is that my program terminates in unusual way on windows vista command prompt line but dev-C++ shows no errors when compiles. I think that is related with the number …

Software Development c++ file-system ios windows-vista
Member Avatar for triumphost
0
233
Member Avatar for vired

Hi! My homework is to make a c program for game of life. I have made my code already, the problem is when i'm running the code the compiler doesn't display any error, but my code still doesn't work well. I have to print in the screen an initial generation …

Software Development c
Member Avatar for vired
0
232
Member Avatar for Rupindersingh

The following code is supposed to read records from input and store them in a file called file.dat. Then it is supposed to arrange these records in ascending order, but for some reason the program hangs at line no.61. Can someone please tell me what's wrong? #include <iostream> #include <fstream> …

Software Development c++ ios
Member Avatar for Rupindersingh
0
137
Member Avatar for joseph_butler

I have written the following code to try to get my GPA calculator program to work. I am not allowed to use arrays. I only know what I am doing from the videos I have watched on youtube and the slideshows that we get from our instructor. Unfortunately, the slideshow …

Software Development c c# c++
Member Avatar for absar.mazhar
0
4K
Member Avatar for justanoob

hello guys, im having trouble on how to approach this assignment i have for my c++ class, please i would appreciate all kinds of help and advices. thank you in advance. The game is a one to three players dice game. At the start of the game there are nine …

Software Development c++ user-interface
Member Avatar for Lerner
0
197
Member Avatar for msrikanth

Hi Friends, I need to some help in connecting to webserver using c shell or tcl scripting in linux ie in my office in linux system we have some intranet which is run by tomcat server so i need to connect to that server and read some data existing in …

Member Avatar for JeoSaurus
0
265
Member Avatar for Andy90

How to create and dispose the same object? I have created a form with button, on button click even I create a object and by clicking on same button I dispose the object! I m able to create a object but not able to dispose the same object. How to …

Software Development
Member Avatar for Andy90
0
187
Member Avatar for zachattack05

I'm sure I know the answer to this, but I just want to double check because I'm doing some debugging and I want to rule this out. If I set the value of a variable with something like [ICODE]bool MyValue = MyMethod();[/ICODE] and initially the return value of MyMethod is …

Software Development
Member Avatar for zachattack05
0
143
Member Avatar for skp03

Hello everybody i have created a application in application i have added a form1 and i have used two buttons, when i click(Triggered) button1 it will load form2 and when i click(triggered) button2 it will load form3 but my problem is this form2 and form3 should load when button1 and …

Software Development c#
Member Avatar for thines01
0
199
Member Avatar for saleem.mukhtiar

Hello friends. that's gr88 that you people help out alot. My senerio is .. i made data grid form ..where i want ... when i double click on a Invoice no ... or Row in datagrid .. invoice open in new form where i can edit delete, or other opraitons …

Software Development vb.net
Member Avatar for saleem.mukhtiar
0
205
Member Avatar for Farhan_B

Hi i was just wondering how i would do this task. It seems fairly simple but i dont no how to to do it. In my system i have a table where i have a total figure of the stock. what i am trying to do is when my saler …

Software Development vb.net
Member Avatar for Reverend Jim
0
149
Member Avatar for BryantFury

Hi im currently doing some work with arrays and ive been working on this program. The goal is a user can add up to three products. Each product will have a name, model number and price. Once all is entered a list will pop out showing all the products with …

Software Development c++
Member Avatar for BryantFury
0
129
Member Avatar for snehil_khanor

I have an xml like [CODE] <?xml version='1.0' encoding='UTF-8'?> <feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:docs='http://schemas.google.com/docs/2007' xmlns:batch='http://schemas.google.com/gdata/batch' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;C0EARXY8eit7ImA9WhVREE0.&quot;'> <id>https://docs.google.com/feeds/default/private/full</id> <updated>2012-03-17T16:27:24.872Z</updated> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/docs/2007#item' label='item'/> <title>Available Documents - </title> <link rel='alternate' type='text/html' href='https://docs.google.com'/> <link rel='http://schemas.google.com/g/2005#resumable-create-media' type='application/atom+xml' href='https://docs.google.com/feeds/upload/create-session/default/private/full'/> <link rel='http://schemas.google.com/docs/2007#alt-post' type='application/atom+xml' href='https://docs.google.com/feeds/upload/file/default/private/full'/> <link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://docs.google.com/feeds/default/private/full'/> <link rel='http://schemas.google.com/g/2005#post' type='application/atom+xml' href='https://docs.google.com/feeds/default/private/full'/> <link rel='http://schemas.google.com/g/2005#batch' type='application/atom+xml' href='https://docs.google.com/feeds/default/private/full/batch'/> …

Software Development c# google xml
Member Avatar for thines01
0
510
Member Avatar for london-G

Hello, I have created a game in java and I would like to insert enemies. For now I placed them on plaftforms that I made invisible. How can I have the enemy on its own?

Software Development java
Member Avatar for london-G
0
87
Member Avatar for skyline2425

Hi, I'm a beginner in C++ and working on my lab assignment. I get the following error, please help. Thanks, Skyline error C2676: binary '+=' : 'Time' does not define this operator or a conversion to a type acceptable to the predefined operator // Function - CalculateTotalCollectionPlayingTime() Time MediaCollection::CalculateTotalCollectionPlayingTime() { …

Software Development c++
Member Avatar for thines01
0
4K
Member Avatar for poojavb

Hello Friends, I want to calculate the instance of * in the text file.... but I am not able to do it.... can anyone tell me which file funtion to use for it... I first tried to read the file --- its just one line file then see if the …

Software Development vb.net
Member Avatar for Mitja Bonca
0
198
Member Avatar for huskarit

HI everyone! Please help! HOw to make a loop wait until a button is click...??

Software Development vb.net
Member Avatar for Reverend Jim
0
4K
Member Avatar for triumphost

Why does my delete function crash? I've used the same algorithm for other 2D vectors and it works perfectly fine.. I'm trying to remove an array of vectors from a 2D vector all of the std::string type. [CODE] //Ripped out of a massive class I wrote. vector<vector<string>>& Delete(vector<string> StringArrayToDelete, bool …

Software Development algorithm c++
Member Avatar for histrungalot
0
699

The End.