2,965 Topics

Member Avatar for
Member Avatar for lynxul

Hello Everyone! I am due with an assignment that I just can't seem to acomplish. So here's the deal: I get a file with the following structure: TyP_1 TyP_C2 TyP_C3 ORDER Nr_rec rec1_field1 rec1_field2 rec1_field3 rec2_field1 rec2_field2 rec2_field3 Typ_x can be S for string N for numeric or C for …

Member Avatar for humnah
0
169
Member Avatar for acmarshall

Hello all I need a little help finishing my assignment. I am given a text file that contains information about vehicles in an auto dealership. The vehicle records consist of the following fields: VIN, Make, Model, Year, Color, Date of purchase, Cost, Date of Sale, Sale Price and Revenue. The …

Member Avatar for jmichae3
0
153
Member Avatar for veelasong

I am having trouble parsing xml files using ElementTree after the python code is turned into .exe using cx_freeze. [CODE] from xml.etree import ElementTree file1 = 'file1' file2 = 'file2' tree1 = ElementTree.parse(file1) tree2 = ElementTree.parse(file2) print 'Done' [/CODE] It works fine with the .py file, but after I made …

Member Avatar for veelasong
0
418
Member Avatar for kjs5533

Yo guys! How's it going? To give you a quick gist of my goals : I want to allow the user to enter a bunch of criteria for a book (title, author, etc) so I made a structure. Then I store that structure in an array so they can enter …

Member Avatar for pseudorandom21
0
460
Member Avatar for eranga262154

Hi all. I want to read and update a ini file to do some processing. Here is what I have try. [CODE] public static void main(String[] args) { // TODO code application logic here new ReadINIFile().readIt(); //new ReadINIFile().writeIt(); } private void readIt() { try { Properties pro = new Properties(); …

Member Avatar for riahc3
-1
2K
Member Avatar for happygeek

So you want to work on any computer as you owned it, but without going through the whole remote access process? Thanks to an early-stage company established after the founders met whilst studying for PhDs in Computer Science at Cambridge University your wishes might just be about to come true. …

Member Avatar for javacle
0
632
Member Avatar for lucimorth

So, yes, what I am looking for is already posted, but I don't understand the logs and there is no answer, as well it seems like a customized answer for every user, and I don't think I can post my logs into someone else's to avoid confusion. A couple of …

Member Avatar for PhilliePhan
0
376
Member Avatar for blackrobe

Hey, I'm studying for a final exam and I came across an old question asking to give an algorithm that runs in [TEX]O(logn)[/TEX] and deletes an arbitrary element from an [TEX]n[/TEX] element [B]Min-Heap[/B] if given its index. I was thinking the right approach would be to use Hash table for …

Member Avatar for blackrobe
0
675
Member Avatar for mbsgrow

Ping.exe is grabbing so much CPU time that I max out at 100% CPU. When I stop the process tree, ping.exe keeps coming back. Your help will be most appreciated. ATF Cleaner didn't run - got "Not Responding" in Task Manager. Got the following GMER pop-up: "Warning GMER has found …

0
162
Member Avatar for happygeek

DaniWeb has looked at Network Attached Storage in the shape of the [URL="http://www.daniweb.com/reviews/review308073.html"]myDitto server which offers excellent value in terms of both cost and capacity[/URL]. DaniWeb has looked at a personal cloud device in the [URL="http://www.daniweb.com/reviews/review260663.html"]very pink format of PogoPlug which is great for anytime and anywhere sharing[/URL]. DaniWeb has …

Member Avatar for PeterM88
0
650
Member Avatar for megatron21

I am trying to print out a chess board on the console. The data structure i am using is a set of pairs. I am having trouble accessing the pair's elements. I do realize a map is probably better in this case but i am using somebody else's code so …

Member Avatar for gusano79
0
243
Member Avatar for Vasthor

4-6. Rewrite the Student_info structure to calculate the grades immediately and store only the final grade. What I proceed:- I doubt that data structure can 'hold' function or expression, so I give a look on net to check out, it seems, the tutorial(on net) just show that structure used for …

Member Avatar for Schol-R-LEA
0
249
Member Avatar for Syrne

Hi there! So I'm working on my next assignment and it's all about implementing a few exceptions in order to get us familiar with the topic. I am tasked with implementing 3 very simple exceptions to my previous program. So far I have 2 out of 3 working fine with …

Member Avatar for JamesCherrill
0
199
Member Avatar for cool_zephyr

Hello there..i'm trying to implement a tree in C#..the basic node structure is give below [code] struct node { public int _x; public int _y; public int _cost; public node _parent; public pos(int i, int j,int cost,pos parent) { _x = i; _y = j; _cost = cst; _parent = …

Member Avatar for cool_zephyr
0
159
Member Avatar for iswariak

1. I want to take unique district values from the below xml. How to do it in XPATH? 2. I want to take unique taluk values and district name="xyz". what is the xpath expression? XML structure: <?xml version="1.0" encoding="utf-8"?> <imageData> <row> <slno>1</slno> <sitecode>001</sitecode> <sitename>Mel Sittamur</sitename> <photono>001_001_001.jpg</photono> <photodate>07-09-2008</photodate> <district>Villupuram</district> <taluk>Senji</taluk> <monument><![CDATA[Jain …

Member Avatar for zaibi403
0
4K
Member Avatar for coolbeanbob

Is it possible to have multiple input streams open at the same time? I know it takes a lot of time to open a file, and I am trying to be as efficient as possible. I really need to have two streams open at the same time. The data is …

Member Avatar for coolbeanbob
0
251
Member Avatar for begueradj

Hello people I have a 2 dimension array that contains only 0 and 1 values. I want to represent all the 0 elements in a tree: how can I do that ? Thank you for any help

Member Avatar for begueradj
0
98
Member Avatar for abhijit4569

Hello everyone, I need best books by best authors on following subjects. Money not a constraint. All subjects are from Computer Science. If you know whose books for the subjects is the best please comment below the name of the book and Author name. Thanks in Advance. Mathematical foundations Mathematical …

0
67
Member Avatar for dgreene1210

I'm having problems with my code all over. I have to be able to open a command line argument( which i know how to do). create a linked list, and print it backwards. This is what i have but im stuck with errors that i don't know how to fix. …

Member Avatar for dgreene1210
0
190
Member Avatar for mangal123
0
97
Member Avatar for Alvi89

Im currently trying to delete a record from a file The structure ive used is this: [code]struct studentRecord { char rollnumber[12]; char name[32]; int attendancePercentage; float quiz; float assignment; int classpart; float mid1; float mid2; float final; float semesterPerformance; float overallPerformance; }; [/code] Now I have 2 problems: 1.I cant …

Member Avatar for Adak
0
228
Member Avatar for Gribouillis

This snippet defines a function walk() which generically performs a depth-first traversal of a tree, using preorder, inorder or postorder rules. Here, genericity means here that there are no hypotheses on what the tree nodes are or the implementation of the tree. Walk() only needs an arbitrary object used as …

Member Avatar for Gribouillis
2
1K
Member Avatar for crc0002

Here is the program assignment: [icode] Graph abstraction is important because it is used in many different areas of science, engineering, computer sciences and software engineering. For instance, the Internet makes use of graphs to represent the Internet router network configuration in order to determine the best route for forwarding …

Member Avatar for mazzica1
0
1K
Member Avatar for beeho

Hi all, I'm having a problem here!! I've attended a lecture on Implementation of stacks in c++ using arrays and it wasn't really hard to understand, but now I'm supposed to know how to Implement a stack using linked list, that's the problem. help please?:confused:

Member Avatar for beeho
0
281
Member Avatar for safyrmwn

Thank you kindly for any assistance. After countless Google searches for help or info and nothing found I surrender to anyone who may help please. Ongoing for several months: Dual Monitor system - simultaneously both monitors randomly flash/blink (looks similar to a screen shot flash). This happens at system start …

Member Avatar for safyrmwn
0
1K
Member Avatar for Catalyst.X

I wrote a program that does rudimentary tile mapping based on reading in information from a "map file" and drawing the map on screen. I need it to be drawn in a scrollable window so it doesnt matter how big the grid is defined in the map file. I have …

Member Avatar for Unhnd_Exception
0
280
Member Avatar for needforkevin

hello all! i am working on a program that reads in a text file that the user inputs, creates a text file that the user inputs, names the text file that the user wants, and then sorts the text file sorting words above the user entered in threshold and displays …

Member Avatar for needforkevin
0
342
Member Avatar for gefiltepez

Last night my computer got infected with the Windows Fix Virus. The link below provides pretty much an exact description of what has been going on with my computer. [URL="http://reimagerepairreview.com/2011/07/11/remove-windows-7-fix-virus-desktop-is-empty-missing-shortcuts-icons-on-start-menu/"] http://reimagerepairreview.com/2011/07/11/remove-windows-7-fix-virus-desktop-is-empty-missing-shortcuts-icons-on-start-menu/[/URL] I immediately installed and ran Malwarebytes from a USB drive, but it had no effect. I was then able …

Member Avatar for crunchie
0
901
Member Avatar for bbman

Hi, I want to display my database, however I cannot used the conventional method (like this [url]http://www.siteground.com/tutorials/php-mysql/display_table_data.htm[/url] )as the structure is unkown. The user of the system can create and delete columns. Does anyone know how I would be able to display the columns with the stored data? If this …

Member Avatar for cereal
0
94
Member Avatar for cossay

Hello everyone. I'm planning of implementing auto-logout in a project I have in mind and I want you guys to tell if the way I plan to do it is the best. This is how I plan doing it. I will have table in my database, say [B]cossay_tb[/B], containing three …

Member Avatar for diafol
0
141
Member Avatar for Vidaria

Hi everyone, So my computer has been acting weird for the last few days but I haven't been able to figure out why. One morning I had my laptop lid closed and when I opened the lid the screen wouldn't turn on so I turned it off using the power …

Member Avatar for venmalathy
0
184
Member Avatar for innspiron

Hello, can anyone suggest me how to convert string to xml object in java? I have a string (Data) ant now I have to pass it as parameter as xml object, which structure should be: <MGWData>Data</MGWData> Where I surf I always see only solutions for converting string to xml document, …

Member Avatar for Aviras
0
777
Member Avatar for slpefanis

Hi All I am writing an import program to import data from an access database to a SQL database. The table structure in the SQL and Access are the exact same with the same field names. I was wondering if there was a quick way to get the data into …

Member Avatar for lolafuertes
0
702
Member Avatar for gorleone

[CODE] <?php class Database { public function protect($data){ $data = trim($data); $data = stripslashes($data); $data = strip_tags($data); $data = mysql_real_escape_string($data); return $data; } } $database = new Database(); $txt = '<strong>\\\Test///</strong>'; $txt = $database->protect($txt); echo $txt; [/CODE] And output have a <strong> tag, slashes and all with zero errors. I …

Member Avatar for diafol
0
145
Member Avatar for xxunknown321

[COLOR="Red"]First off let me just say i don't want anyone to do my homework for me. I get a greater sense of satisfaction knowing that I did the work. with that being said I'm looking for some way to start or some input on what measures I should take while …

0
130
Member Avatar for CSloan7597

Hey everyone. I have recently decided to try and learn how to use java Sockets for client/server communication, as well as swing and threads, etc. and have (pretty much) completed a small client server application. The application is basically a syntax-highlighting notepad, a client swing GUI which connects to a …

Member Avatar for CSloan7597
0
295
Member Avatar for Awais Ali

hy guyz, Is Graph data-structure used behind Linkedin ? if yes/no then plzz tell me in some some basic detail...

Member Avatar for jwenting
0
39
Member Avatar for lilsancho

Hi Everyone Hope you are all well. I've been tasked with an assignment at collage to create an employee management system, so far i've done well and managed to create a working program which i am happy with :) However there is an optional function that can be created that …

Member Avatar for lilsancho
0
161
Member Avatar for WickidGRAFX

[CODE] <?php $tags = $_POST["search-tags"]; $age = $_POST["search-age"]; $rating = $_POST["search-rating"]; $city = $_POST["search-city"]; $state = $_POST["search-state"]; if (!$tags = "") { $tags = " WHERE `tags`='$tags'"; } if (!$age = "") { $age = " WHERE `age`='$age'"; } if (!$rating = "") { $rating = " WHERE `rating`='$rating'"; } …

Member Avatar for diafol
0
159
Member Avatar for zo0oda

[COLOR="Red"]hello.... I'm new member and I'm so happy that i found daniweb.com to get some help from you my friends.... i need help in solving this problem...[/COLOR] •Select one program of your choice that implements Single or Double Linked List in C++. Make sure you use class in your program, …

Member Avatar for Narue
0
116
Member Avatar for toneranger

Hi, I've got stock market data in a structure as follows. [CODE]struct PriceInfo { double Open; double High; double Low; double Close; unsigned int Volume; unsigned int Time; std::string Date; };[/CODE] My program imports the data from a csv file and stores it in memory etc. The date and time …

Member Avatar for WaltP
0
2K
Member Avatar for Baxtula

Hello, I am a computer science student working as a bartender in a restaurant. My boss was complaining that his monthly inventory audit was taking too much time (as he has about 2000 unique items to count) and I suggested I could build a mysql database to help him (and …

Member Avatar for Baxtula
0
299
Member Avatar for Mirfath

Hi! i want to deselect a few menu items depending on the user! For example the administrator can have access to all the menu items in the form , Manager access to an additional few items and the data entry person to have access only the data entry menu item! …

Member Avatar for Mirfath
0
216
Member Avatar for Birdmanskii

My website is bandstandmag.com and besides the home page, I can't get the other pages to center on the screen. Specifically: http://bandstandmag.com/index.html/IslandTigers.html I'm really sorry everything's so cluttered, this is my first time creating a website. My problem is I can't get the page to center and I've tried tons …

Member Avatar for Birdmanskii
0
179
Member Avatar for stereomatching

Since the data structure are something like [code] struct morph { size_t num; std::string name; //and so on } [/code] I have to find the different of the two sets with functor or some 3rd party where could I find something like this? Below is the implementation alter by me(refer …

Member Avatar for mike_2000_17
0
330
Member Avatar for socksy

I need to create a nested map structure of a given depth, in order to keep track of the number of times that a given combination of words occurs in a file for example if the depth is 3, i should have [CODE]map<string, map<string, map<string, int> > > data;[/CODE] and …

Member Avatar for vijayan121
0
974
Member Avatar for yurigagarin

Hi all, I have this code here and I like to save all the messages into 1 text file name contimer.txt. I've tried to do [CODE] FILE *output fopen(output,"comtimer.txt", "ww"); [/CODE] right before the function Timer 1 and change every "printf" function into fprint_s(f, "Message", variables) but it does not …

Member Avatar for yurigagarin
0
225
Member Avatar for v3ga

Hi everyone just started Daniweb! I have been using devcpp for some time.I am trying to make a switch from DevCpp to Visual Studio but find the latter confusing having so many options. Recently, I did a console application that will accept a word from user and prints its anagrams. …

Member Avatar for v3ga
0
276
Member Avatar for trevor_shiggs

Newb here. Parse error: syntax error, unexpected '{' in /home/litt6041/public_html/listing/wp-content/plugins/great-real-estate/templatefunctions.php on line 1502 Heres the code I have in that doccument. Sorry its so long. For some reason dreamweaver adds a bunch of spaces when viewing. Please help, Thanks! [CODE] <?php /* * public functions provided by the Great Real …

Member Avatar for Stefano Mtangoo
0
300
Member Avatar for yurigagarin

Hi all, I have this code here and I like to save all the messages into 1 text file name contimer.txt. I've tried to do [CODE]FILE *output fopen_s(output,"comtimer.txt", "ww");[/CODE] right before the function Timer 1 and change every "printf" function into fprint_s(f, "Message", variables) but it does not help. Could …

Member Avatar for yurigagarin
0
330

The End.