2,965 Topics
![]() | |
#include "LVdefs.h" struct konfigDatei { char tableName[50]; char columnName[128]; char primary1[50]; char primary2[50]; char primary3[50]; char primary4[50]; char primary5[50]; char primary6[50]; }; main( int argc, char * argv[] ) { int loop = 0; int count = 0; struct konfigDatei kd[50]; char line[500]; char *ch; FILE *f = NULL; f … | |
i have to create a queue where the dequeue operations will be random. that is , a random location will be chosen, and deleted after returning the data stored at that location. i was going through the two underlying datastructures that im allowed to use **:** linked list , and … | |
I'm designing a embedded system and we have to oftenly report system fault in different code module. So I decided to create a source file to keep the error log and I'm building a struct for that. So that, every module reporting the error log and store in a data … | |
class BTNode(object): """A node in a binary tree.""" def __init__(self, item, left=None, right=None): """(BTNode, object, BTNode, BTNode) -> NoneType Initialize this node to store item and have children left and right, as well as depth 0. """ self.item = item self.left = left self.right = right self.depth = 0 # … | |
I am having an issue implementing the Breadth First Search, Im trying to find the shortest distance between the source city and the destination city. Here is what I have so far, Im stuck and dont know what to do about this issue. #include <iostream> #include <string> #include <fstream> #include … | |
Continuing our round up of 2013 IT security vendor predictions, we've got the thoughts of three of the big Infosecurity Europe exhibitors: Palo Alto Networks, SafeNet and Kaspersky Lab.  Brian Tokuyoshi from Palo Alto Networks predicts that social media, data decryption and virtualised network security will be high … ![]() | |
Hey guys, can anyone tell me how I could use randomaccessfile to read in a txt file and copy the content to a tree? Also how to then do the opposite and write newly changed nodes from the tree onto the text file? It's pretty much like creating a save … | |
I am trying to read a structure from a .dat file...the first integer to be read is the no of readings, then there is the data in following structure format struct Oven { int rec_no; int temp; int status; char string[10]; }; below is the method through which I read … | |
Quick question. I'm studying for my CCNA and my supervisor gave me this challenge question. You're given 5x Cisco 3560's and 5x Cisco 3750's which are to be installed side-by-side on a rack. Which model would you choose to avoid issues with STP? I'm currently skimming over [this](http://www.cisco.com/en/US/prod/collateral/switches/ps5718/ps6406/data_sheet_c78-584733.pdf). Thanks!! | |
I have created movie database. I have list of **Genres,** <ul> <li><a href="movielist.php?id=<?php echo"$id";?>"><?php echo"$genre";?></a></li> </ul> In **table movies**, movie have multiple geners. How to fetch same movie if multiple geners available (e.g. The Expendables 2 appear in **Action | Adventure | Thriller** these three geners). **How to display movie … ![]() | |
I'm trying to make a program for my computer science class and it requires that I run output to the console as well as to a file. I'm looking for a way to intialize a string at the beginning of the program and pass the variable by reference to my … | |
Hello Friends, First of let me clear you that it not a fake blog.This blog is created for the students of computer field and sharing the programming concept to the people of IT.From this you will be connected with latest technology and programming questions with answer.Friends this just an beginning … | |
I got a java test done and somehow my answer for this question is incorrect, can you guys help me explain it? So the question is: in a binary tree with height 3 the least deep leaf has depth 2 (Root has depth 0). a)Max numbers of nodes this tree … | |
Hi! Lets say i have this expression I10I20I-3++ which should give me 27. I just cant seem to find a way of removing those I's or if it is any other letter from the string. Not forgetting i have to then evaluate the expression. I tried using regex but no … | |
Hi guys, I'm hoping you can help here with a problem I am having with regards to filling a Dataset. It was working fine but have had to amend the code to read a different data set and structure. Basics are 2 tables.. one customers, 1 orders. Joined on there … | |
So I have always developed in a 32 bit environment, but now have the opportunity to step into 64 bit development. What I am working on requires a lot of pointer aritmatic, and I am a little confused how primitive data type sizes vary from 32 to a 64bit platform. … | |
Hi, I am facing difficulty in removing a node from linked list. For example I am having four nodes having integers (10) (20) (30) (40). I need to remove second Node that is 20 from linked list. What i was trying to do is I am maintaining two pointers to … | |
Hey everyone. I do a bit of programming in my spare time, and I've been on hiatus for a while due to taking up a second language. Now that I am taking computer science classes, I'm back into programming. Admittedly, they're far too easy for me, and I find myself … | |
I'm a sybca student. and till nw i kw c,c++,RDBMS,D2K,data structure. can i able to develop a software using this skills? if yes then plz tell me the steps for that. thank u! | |
Hi All, I have a binary search tree (consider following structure). struct bst { void *value; struct bst *left, *right; }; I want to save this unbalanced binary search tree in a file. And when I read this file, I don't want to recreate the tree from these nodes. So … | |
i tried reverse engineering option in Mysql workbend 5.1, 1stly i imprted DB's script and then created it, Its done :) but when i try to create ERD via Reverse Engineering option , then it doesn't show relations ships btw tbl, it only brings table to front ! why ? … ![]() | |
I want to create binary tree. With this program I wrote I have some problems. It seems the element I added to the tree is always added to the root place! Adding never happens to the left or the right subtree. This thing is prooved by result I always get … | |
My site has just been hacked and I suspect that it was a remote file inclusion attack. These are my server specs: Windows Server 2008 R2 running ColdFusion 9 (9.0.1.274733) and IIS 7.5 This is the source code of the page that appeared after my site was hacked: <!-- # … ![]() | |
I inherited a website here at work. The menu system uses a convoluted jquery / javascript structure. There are 8 different types of "users" for this website, from administrator to contractor or accountant, etc, and the person made 8 different versions of the menus covering nearly 80 different pages within … | |
I successfully created a C++ window but got an error message when I tried to add menus. I will surely appreciate any help to fix the issue. As follows is the code: #include <windows.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class … | |
I need to send multiple request (command) to server at port 55005. My first request get process successfully & I received out put also. But for second request it gives error (WSAESHUTDOWN - Error 10058). After first requets I call shutdown(ConnectSocket, SD_SEND); Then only server process the first request & … | |
Hi people. I have a remove function that should set a hide member of a node to 1 instead of actually remove the node. The function works well when I insert and remove top and tap respectively (both nodes have their hide member set to 1) but when I insert … | |
Hi everyone. I'm tying to understand the instruction below. I wish someone could explain me what it means: tree->destroy(((AvlNode*)(*position)->data)->data); // destroy the left branch of the binary search tree starting from the specified node static void destroy_left(BisTree* tree, BiTreeNode* node) { BiTreeNode **position; // can't remove from an empty tree … | |
I'm trying to expedite the process of manually opening up an XML file and searching for some info in it. I want to store some of the data, etc. Nothing elaborate. But I'm not clear on some of the file structure. For the seasoned XML data wrangler, can you instantly … | |
Hi guys. I want to write a keylogger which logs all strings I copy via <CTRL>+<C> My problem is that I loose track of interessting links or code-snippets when overdoing it. So I want a basic keylogger which notices every hotkey event and copies the content in the clipboard into … | |
Hi everyone, Let me first explain the idea: I have a JSON document which has the following structure: { "timeline": { "headline":"Example Content", "type":"default", "text":"Example Content", "startDate":"2013,1,1", "endDate":"2013,1,28", "date": [ { "startDate":"2013,1,10", "headline":"Example Content", "text":"Example Content", "asset": { "media":"Example Content", "credit":"", "caption":"" } }, { "startDate":"2013,1,14", "headline":"Example Content", "text":"Example Content", … | |
Hello everybody. Here is my remove method for bst. As you all know, there are 3 cases to consider while removing a node from bst. For the last case, when a node (which is to be removed) has 2 children, I want to use predecessor instead of successor to change … | |
I am looking for a way to impliment an onScroll listener into my listview. I have read a lot about using: notifyDataSetChanged(); But, I honestly can't figure out how to impliment it into my working code. Currently, I pull a bunch of records into the listview from a MySQL database … | |
i have the following php script. the databtase table i'm saving the data to allows NULL values for the email. this is the table structure. ` CREATE TABLE tblcontacts ( contactID INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, contactName VARCHAR( 50 ) NOT NULL, phoneNumber VARCHAR( 20 ) UNIQUE NOT … | |
Hi everyone, we were taught about Generics and Interfaces at uni and I wasn't sure what the perfect situations are to use interfaces because they don't have implementation in them so they work as a contract to other classes where everyone can implement their methods as long as they extend … | |
Hello, I have just completed a rather large project which involved data that was less than optimal html wise. Our biggest problem currently is that we have a structure like this: <ul id="postblockinfo"> <li>List One</li> <li>List Two</li> <li>List Three</li> <li>List Four</li> <li>List Five</li> </ul> Text that is suppose to be … | |
![]() | Hello. Long time member, first time poster here. After a year working in a data center, I've picked up all the engineers would throw at me and I want more. I'm leaning toward software development and robotics as an eventual career but currently at the level of support tech with … |
I need to create a software that manages a bank account. I created 2 forms. Form one (Form1 "in reality is KlientetForm") has 5 textboxes, 6 buttons and a listbox. Form twoo (Form2 "in reality is GjendjaForm") has 3 textboxes (the same name as in Form1), 2 listboxes and 3 … | |
Hiii I have two tables 1.category_sub sub_id category_id category_name description event image 2.category category_id category_name my query is that how can i get both values category_id and category_name in category_submy code is that like <?php include("connection.php"); $query_1 = "SELECT distinct(category_name) from `category` "; $result_1 = mysql_query($query_1); $category_name=""; $subcategory_name=""; $description=""; $event=""; … | |
Hi everybody, I am in the process of building a small web application which will hold around 10 pieces of information for every person inserted. Due to data protection the majority of this information must be encrypted. Using the CodeIgniter framework and the CodeIgniter encryption class I can encode the … | |
Traceback (most recent call last): File "C:/python files/USACO/crazy/crazy.py", line 87, in <module> grid.plot(x,y,"F") File "C:/python files/USACO/crazy\grid.py", line 63, in plot self.g[(x,y)] = replace TypeError: unhashable type: 'list' You see, I'm hashing a string with the key bing a tuple. This is using my own 2d grid data structure. | |
#include<iostream> #include<algorithm> using namespace std; #define MAX 10000000 #include<stdlib.h> #include<string.h> char s[MAX]; int p[MAX]; int bucket[MAX],nbucket[MAX]; struct suffix { int idx; }pos[MAX]; int H=0; bool cmp(struct suffix i,struct suffix j) { if(H==0) { return s[i.idx]<s[j.idx]; } else { if(bucket[i.idx]==bucket[j.idx]) { return bucket[i.idx+H]<bucket[j.idx+H]; } else { return bucket[i.idx]<bucket[j.idx]; } } } … | |
Computer Has been acting funky. Sluggish. MSE will not update. So I ran MBA-M and it found some nasties. I then decided to come and get some help. Using safe mode to run the required test. I am having a hard time posting on this site. So I may post … | |
Here is my splay function: template <class WA> void SplayTree<WA>::Do_Splay(SplayNODE<WA> *temp) //temp is the node which is to be splayed { if (temp==root) //if temp is root then { return; } //Do Nothing else if (root->left==temp || root->right==temp) //else if temp is a child of root { if (root->left==temp) //if … | |
Hello, Im looking for a way to construct a scale-able 2d list or something of the sort. What i have so far is an array int [][] mydata = new int[6][4]; The problem is in my editor i wont know how long to make the array as people are going … | |
I have been struggling with the principles of creating a client-server design where the server maintains a data structure that multiple clients can view and manipulate with various restrictions on which client can access which parts of the structure. I don't know what to properly call a system like that, … | |
i need c++ code for simple linked list to implement algorith and data structure 1.create_node_and add to list 2.frst node delete 3.last node delete 4.delete node between first and last node 5. displaye the value of node in revese order 6. searching 7.exist | |
This may be a long post but I really need to know how to Convert between the two image formats and amonst themselves as well. Here goes: I have a struct like the one below that holds all pixel information: typedef union RGB { uint32_t Color; struct { unsigned char … | |
Write a C++ program that will display the following menu and word accordingly. A menu which contains functionality that will allow the following choices. 1. Enter the student data file name. 2. Display the average and the letter grade for each student. 3. Sort data from highest to lowest 4. … | |
Hi, I am habving problem with tcpdf library.I am using Version: 5.9.162.I have a table format structure and the user writes in the table format and add the data and creates the pdf but my pdf file is not creating as i wish to create them some of the data … ![]() |
The End.