199,114 Archived Topics
Remove Filter ![]() | |
I am new to C++ and am trying to create a doubly linked list using templates, here is the code doubleLinkedList.h [code] #ifndef DOUBLELINKEDLIST_H_ #define DOUBLELINKEDLIST_H_ #include<iostream> #include"nodeType.h" using namespace std; template <class Type> class doubleLinkedList { public: void initList(); bool isEmptyList() const; void destroy(); void print() const; void reversePrint() … | |
Hey everyone, What's i'm trying to accomplish is this - I have a webbrowser control & a treeview control...once I load a website I create a HTML DOM tree representation of the website using the code below... What I want to do now, is the following: [LIST=1] [*]mouse over any … | |
Im learning java, and having trouble with some simple code. Heres my code, can you tell me why the output is disregarding the "Correct!" statement at the end package Otm; import java.util.*; public class Otm { public static void main(String arg[]) { Scanner sc=new Scanner(System.in); String Wash="Washington"; String Ham="Hamilton"; String … | |
Hi guys, I'm still a newbie in javascript so i ask for a bit of your patience. hehe. So here is my problem with showmodaldialog. It only occurs in IE. I basically have 2 php pages. One is produst_list.php, and the other is quantify.php. product_list.php basically calls the quantify.php page … | |
I post this solution to a form validation and redirect as an addition to a comment page written with dreamweaver. Unfortunately Dreamweaver does not provide server-side validation for php. You're expected to purchase an extension. [B]My problem[/B] I have a comments page with a comment form. I wanted the comment … | |
Hi, I've been having trouble understanding this code that my professor put on the web. Can someone help me understand this. I thought this would compile and run but its giving me an error message " Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at fileio.AllCapsDemo.main(AllCapsDemo.java:64) " Im not sure how i … | |
Hi All, I have cut this down to a simple example. The access file has a table called rooms which contains a description field of type memo I want to load this into a dbmemo (delphi 7) I run this by a button onclick event [code] procedure TForm1.Button1Click(Sender: TObject); begin … | |
Hello I would like to count how many words are in a string ie "PETER JOHNSON LTD" so this string contains 3 I was going to use strtok but this is too slow. Any other ideas? | |
Good day to you guys! im having a bit of a problem using strtok. im currently tinkering with extracting gps data, which are separated by commas. ive seen code in several forums but most of them assign the output of strtok to the same char pointer. what i want to … | |
i have two id's that are the same from two different table. [code] var newtext = document.getElementById(number).innerHTML;[/code] this code is grabbing the wrong id. the id is a counter/variable in a loop so it changes, so i can't do getElementByName.. how do i get around this? | |
Is it possible to use child window created in Win32 API as a container for another windows (controls - buttons, edit fields etc.)? Or is there any other way how to use container in Win32 API? The goal is to create a simple user interface for application? | |
hi, I have a problem with Operator '&' someone may help me with this problem. thank u :) [code] Protected Overloads Overrides Sub Render(ByVal writer As HtmlTextWriter) If String.IsNullOrEmpty(Name) Then Throw New NullReferenceException("Name must be set on a widget") End If Dim sb As New StringBuilder() [B]sb.Append(("<div class=""widget " & … | |
Hello there, I've been having problems creating a part of my mail system that makes messages look red when they haven't been read, and white when they have been read. This is what I'm using right now [code=php]mysql_query("UPDATE Mail SET Read=1 WHERE ID={$messageID}");[/code] The SQL ID Field is a smallint … | |
HI. Can someone please tell me why this simple operation doesnt work? [CODE]$time1_offset * -1;[/CODE] | |
Hey all I currently am having trouble utilizing the oledbcommand method named parameter because I do not know how to use it properly :( Here is my class: [CODE]namespace CalendarApplicationLibrary { public class MeetingEntryDA { private const string CONNECTION_STRING = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Entry\entry.accdb;Persist Security Info=False;"; public void WriteDataToFile(MeetingEntry currentEntry) { OleDbConnection … | |
It only has one player, and no it isn't that technical on the rules of soccer. If the ball gets out of bounds there is no penalty shot, it just respawns randomly on the field. My problem is in my lookatball funtion I think, but I am not sure. Sorry … | |
How can i print a text file in c#? I've been looking on the internet and found code, but I just need it on paper, don't care what type of letters, just a regular print.. And i want to keep the code short. I've found long code, but I've got … | |
Okay so I am writing some C# and the program at one point reads in a file and stores each line in a string array. This part of the code works I have tested it. Well then I have the string displayed in a listBox with this string array using … | |
Hey guys. So I basically read in a bunch of data from a file into a data structure. But while I was doing that I included the spaces (which I dont want). So now I want to compare each element to see if it does have a blank space, and … | |
Hi guys :) Well I got an "variable might not have been initialized" error when I tried to compile the following code: [CODE=java]import java.lang.*; public class NewFrame { public static void main(String[] args) { if (args.length != 3) { System.out.println("Usage: java NewFrame <frame-name> <frame-hight> <frame-width>"); System.exit(1); } int firstArg, secondArg; … | |
Hi, Does anyone know how to use a datagridview from form1 into another form2. | |
Background: I have two lists: one list (list) contains elements of AnyType and one list (index) contains integers. The integers (in index) are sorted in ascending order! Mission: To print out the elements in list 'list' @ index given by list 'index'. Example: list = {I, really, love, to, hate, … | |
hi everyone. can any of you guide me asto how to avoid null pointer exception in the result set variable.i am using this function to get all data in mysql table in hashtable. how to i take the scenario if there was no data in the table at time of … | |
hi I'm new user of PYTHON and I want extract a little part into a string like this example 100|1999|pepito|False|[B]27-10655374-1[/B]|False|||05/09/1952|1|4||3||1|1|8|67||4|False|True|False|oerirabtaa||||Femenino|0|0|0|0|0|0|2| the part to extract (in the example, in black letter), have two parameters 1 is the part with exclusive format ##-########-# 2 ever is locate between 4º and 5º | … | |
I have been working on this for days!! I dont want to allow negative numbers in my program. I have changed it so many times I cant stand to look at it anymore. I greatly appreciate any help even just an example of what I need to do. I will … | |
Did a quick search but couldn't find anything on ostream and multiple files depending on data. I'm pretty sure it's something very simple flying over my head, but I can't seem to get this to work. Basically what I want to do is write to a file depending on the … | |
My PHP account is hosted by the university. I want to send email to my gmail account and not the account tied to my PHP account. Is this possible? | |
Hi, I'm doing a research for my diploma and I need developers to fill in a questionnaire about how they are using math in their daily jobs. Fill it here - [url]http://bit.ly/be4Uz3[/url] If there will be some1 interested in the results - will be able to share them later. Thanks … | |
I want to select the last record from thousands of records, how to write the SQL query for that. | |
hi there, I have one question here is my code taken from the internet which is about the static function but i dont exactly understand for what reason we use here static function and what does mean self and code which is below can anyone explain it to me [CODE]<?php … | |
In python I have a very large string of 0s and 1s. i.e '010100100101110101001...' etc. I want to convert this to BINARY without first converting it to decimal. Then I want to take the resulting binary number and convert it to it's decimal equivalent. Fastest way possible because it is … | |
I wonder why the following code work. In the debugger i see that every thing works fine but after the "root = createNode(item);" statement I can't see the new node assigned to root? [CODE]Node *insert( Node *root, int item ) { if(root==NULL) root = createNode(item); if(root->data>item) insert(root->left,item); else if(root->data<item) insert(root->right,item); … | |
Can anyone share a resource (download or a how-to) for parsing a CSV to an associative array based on the first row of the CSV acting as the column names? I found this resource [URL="http://blog.joshuamcginnis.com/2008/12/csv-to-associate-array/"]http://blog.joshuamcginnis.com/2008/12/csv-to-associate-array/[/URL] but can't make heads or tales about the second parameter sent to the function. In … ![]() | |
I am writing a program in which i will be using 2 functions, one for writing integers into a text file & second for reading them back in integer form. while i did not faced in writing int say 100 numbers into a text file. i am stuck on reading … | |
I am trying to learn how to pass pointers to vectors properly, and having a bit of trouble. I am using Dev-C++ IDE here is the GIRLFRIEND class [CODE]#ifndef GIRLFRIEND_H #define GIRLFRIEND_H #include "player.h" // inheriting class's header file /* * No description */ class GIRLFRIEND : public PLAYER { … | |
Can someone tell me the benefit of header files in C++? I believe there must be good reason for it, but I don't quite understand why. Why would I want to create some code in two seperate files, somewhat repetitive, when I can write it all one time, in one … | |
i have this assignment due tommorow ive tryed it but it seems tuffer than what it should. anyone have any ideas? Write a function stage 1() that reads one of Tommy’s data files into a suitably declared and named data structure. You should assume that there will be at most … | |
need help- create a tree(simple m-ary),with each node having 4 dataitems & 5 children. "IN C-language" just 1 example showing 1 or 2 node created will be really helpfull(as this is tedious)........i have all operation clear till binary tree...but this 1 is not clicking!!!!..... or in case u knw any … | |
I posted this thread but it got transferred to another, can someone edit the code for me so that I can get the answer in exponentiation, (^)and(*), Example : Enter number : 8 Prime factors of '8' : 2^3 Enter number : 56 Prime factors of '56' : 2^3*7 [B][U] … | |
The situation is like this, says: I have textbox1 to textbox20 to show real-time reading, then textbox21 to textbox40 for other purpose. So textbox1-20 can be manage in group through: [CODE]For index As Integer = 1 To 20 Form1.Controls("Textbox" & index).BackColor = SystemColors.Window Next [/CODE] The problem is, after some … | |
Hi, Does can anyone tell me how to change the startup form? | |
hai have designed calc application but iam not geting how to get the clicked number shoud present in the text field how to do arithmetic operation iam beginer of java please can help | |
i wanna check a zip file in a directory.how can do it? directory="c:\myzipfiles" listfiles="a.zip,b.zip,c.txt,d.xls" #a.zip is badfile import os import zipfile mylist=os.listdir("c:\myzipfiles") for zfile in mylist if zipfile.ZipFile.test(zfile): print"you can extract ",zfile else: print "you cant extract ",zfile and how can i use zipfile.ZipFile.testzip() thanks for answers... | |
![]() | Hello! I've got this collection of python files in a directory. Each file contains a variable called 'ors' that has as its value a dictionary. I know you can get the value of the variable in a file by typing: >>> import filename >>> filename.variable What I'd like to do … |
im looking at creating an adjacency matrix built with rows r1, and columns c1, with a float value. i have managed to read the the values from a text file, set out like: r1,c1,float1 r2,c2,float2 etc... i am having trouble converting these values into an adjacency matrix. thanks | |
Hi there! Here's my situation: Our extranet and intranet servers are separated by a firewall. We do not allow traffic from the internet to hit intranet servers. For applications that need it, we allow traffic between an extranet server and an intranet server over a configured port. Example: We have … | |
I have a site that is a single base page that loads content based on get variables. The problem is, is that whenever a form is submitted, the url is cleared of all variables and the form data is never handled. How do you keep the url from reverting back … | |
Hi, I am saving data to text filed i want to display first 50 characters from that text field. I tried it with left() function with my sql query and also tried it with substr() function in php code also.but i am getting a problem it shows first 50 characters … | |
What i want to do is that when i click buttonX4 i want the text to change from "Copy To Clipboard" to "Your Bio Has Been Copied" Then i want it to wait for 2 seconds then i want it to change back to "Copy To Clipboard". I did this … | |
I am supposed to create a c# based visual studio application called "TaxCalApp"The purpose of the application is to determine the tax that a person has to pay based on his taxable income. i have done my homework and head cracking.....i cant run the program right.what is wrong with my … |
The End.