199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ohta

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() …

Member Avatar for mrnutty
0
93
Member Avatar for didijc

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 …

Member Avatar for didijc
0
260
Member Avatar for coding101

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 …

Member Avatar for coding101
0
118
Member Avatar for ds2r

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 …

Member Avatar for ds2r
0
140
Member Avatar for Taffd

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 …

Member Avatar for Netprof
0
249
Member Avatar for yasaswyg

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 …

Member Avatar for sergb
0
150
Member Avatar for glubbish

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 …

Member Avatar for glubbish
0
222
Member Avatar for sgriffiths

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?

Member Avatar for jephthah
0
270
Member Avatar for iwanttolearnc

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 …

Member Avatar for jephthah
0
199
Member Avatar for MDanz

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?

Member Avatar for fxm
0
641
Member Avatar for cecp

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?

Member Avatar for cecp
0
226
Member Avatar for Dr-Delta

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 " & …

Member Avatar for Dr-Delta
0
842
Member Avatar for GigsD4X

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 …

Member Avatar for drjohn
0
332
Member Avatar for jonathan96

HI. Can someone please tell me why this simple operation doesnt work? [CODE]$time1_offset * -1;[/CODE]

Member Avatar for EvolutionFallen
0
178
Member Avatar for ticktock

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 …

Member Avatar for ticktock
0
2K
Member Avatar for aleX_X

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 …

Member Avatar for NathanOliver
0
231
Member Avatar for Isaaac

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 …

Member Avatar for Isaaac
0
265
Member Avatar for JOSheaIV

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 …

Member Avatar for JOSheaIV
0
3K
Member Avatar for speedy94519

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 …

Member Avatar for speedy94519
0
294
Member Avatar for Bladtman242

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; …

Member Avatar for Bladtman242
0
508
Member Avatar for Exaktor
Member Avatar for Ramy Mahrous
0
137
Member Avatar for StorLiten

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, …

Member Avatar for SasseMan
0
124
Member Avatar for kesh1000

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 …

Member Avatar for kesh1000
0
338
Member Avatar for juanjo-argentin

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º | …

Member Avatar for juanjo-argentin
0
88
Member Avatar for PSU92

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 …

Member Avatar for SasseMan
0
140
Member Avatar for ercdill

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 …

Member Avatar for daviddoria
0
157
Member Avatar for nizbit

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?

Member Avatar for digital-ether
0
1K
Member Avatar for viliusz

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 …

Member Avatar for griswolf
0
140
Member Avatar for bhagat khetwal
Member Avatar for Designer_101
0
135
Member Avatar for azegurb

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 …

Member Avatar for digital-ether
0
138
Member Avatar for jmark13

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 …

Member Avatar for jmark13
0
877
Member Avatar for Tellalca

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); …

Member Avatar for Tellalca
0
92
Member Avatar for dwlamb_001

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 …

Member Avatar for diafol
0
249
Member Avatar for sksingh73

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 …

Member Avatar for sksingh73
0
411
Member Avatar for drt_t1gg3r

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 { …

Member Avatar for drt_t1gg3r
0
98
Member Avatar for jwelsh

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 …

Member Avatar for corby
0
621
Member Avatar for Peter The Rock

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 …

Member Avatar for Aia
0
141
Member Avatar for simmi...

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 …

Member Avatar for abhimanipal
0
150
Member Avatar for westsider123

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] …

Member Avatar for abhimanipal
0
107
Member Avatar for Anigmalee

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 …

Member Avatar for Anigmalee
0
162
Member Avatar for Exaktor
Member Avatar for Ramy Mahrous
0
132
Member Avatar for Guru.M

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

Member Avatar for Madawar
0
76
Member Avatar for xleon

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...

Member Avatar for xleon
0
4K
Member Avatar for DancingDana

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 …

Member Avatar for TrustyTony
0
143
Member Avatar for timb89

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

Member Avatar for mrnutty
0
306
Member Avatar for mmatos

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 …

Member Avatar for mmatos
0
126
Member Avatar for cloud09

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 …

Member Avatar for cloud09
0
126
Member Avatar for pbcomput

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 …

Member Avatar for pbcomput
0
6K
Member Avatar for trippinz

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 …

Member Avatar for trippinz
0
709
Member Avatar for yayaza

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 …

Member Avatar for yayaza
0
490

The End.