2,965 Topics
![]() | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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(); … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
![]() | 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 ![]() |
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 … | |
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. … | |
how can i update and delete in datagridview in window application | |
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 … | |
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 … | |
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 … | |
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: | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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, … | |
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 … | |
[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 … ![]() | |
[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 … | |
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 … | |
hy guyz, Is Graph data-structure used behind Linkedin ? if yes/no then plzz tell me in some some basic detail... | |
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 … | |
[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'"; } … ![]() | |
[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, … | |
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 … | |
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 … | |
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! … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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. … ![]() |
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 … | |
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 … |
The End.