199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for thope

c:\documents and settings\administrator.rahulabbine44fd\desktop\cs340 proj1\cs340 proj1\binarytree.cpp(27) : error C2143: syntax error : missing ';' before 'BinaryTree<E>::getNode' in cpp file template <class E> nodePtr BinaryTree<E>::getNode(E item){ nodePtr<E> temp = new nodePtr; temp->data = item; return nodePtr; } in headr file: struct node; typedef node *nodePtr; struct node { E data; nodePtr left; …

Member Avatar for thope
0
118
Member Avatar for Azriq_Rieqhael

i have develop a simple login form... using ASP.net 2.0 and vb then i have upload it into my localhost(IIS) when i tried to view the page , the page was displayed like what i want.. but when i tried to input in username textbox runtime error appeared ... please …

Member Avatar for Azriq_Rieqhael
0
105
Member Avatar for twilitegxa

I have the following pages: UserForm.aspx: [code=vb] <!-- UserForm.aspx --> <%@ Page Language="VB" ClassName="SenderClass" %> <script runat="server"> ' Readonly property for name Public ReadOnly Property Name() As String Get Return USerName.Text End Get End Property 'Readonly Property for phone Public ReadOnly Property Phone() As String Get Return UserPhone.Text End Get …

Member Avatar for twilitegxa
0
141
Member Avatar for shizu

Hi all, I have a question here.. I am using microsoft visual C++ 6.0 with SP4 and SP5.. I call a `DoModal()`, but there was nothing dialog show out.. below are my codes.. CDlgA oDlgA; oDlgA.DoModal(); but no dialog show out.. then I trace the debug code, found out that …

Member Avatar for shizu
0
485
Member Avatar for vileoxidation

Hello, and thank you for taking the time to help me! This is my first real program in C++, and I am still getting used to the differences between C and C++, so I still really don't know what I'm doing. I am working on a header file and its …

Member Avatar for Grn Xtrm
0
190
Member Avatar for NebulaM57

Hello, I am trying to read the contents of a text file from a website. I am running Visual Basic 6 (SP6). I need to add this code to an existing application written in VB6, so VB.NET is out. The file I want to read is on our website. It …

Member Avatar for vb5prgrmr
0
337
Member Avatar for kingofkya

Ok my script takes a list of files picks out all jpgs and stores it in files[] now the problem is how do I display all thous images in tk gui window below is what i have that works for 1 image how do i make this work for basically …

Member Avatar for kingofkya
0
2K
Member Avatar for qmqmqm

Hi I am new to C# and software development. I have a question. If I were to edit this project: [url]http://xmlnotepad.codeplex.com/SourceControl/ListDownloadableCommits.aspx[/url] I think I need to: Download Eclipse with C# plugin Download source code of the project Create a new C# project in Eclipse Copy source code into Eclipse Did …

Member Avatar for DdoubleD
0
96
Member Avatar for JayGeePee

I've been getting spammed by a Robot alot here lately... When a member signs up there required to fill in all of the blanks(username, name, email, etc.). I want to make it where certain characters cant be used in this area(such as < / " etc.) I also want to …

Member Avatar for Stefano Mtangoo
0
134
Member Avatar for kinslayer_e

Hi! I'm running Ubuntu 9.04 and using Code::Blocks as C++ IDE. I have the following code: Temp.h: [CODE]#ifndef TEMP_H_INCLUDED #define TEMP_H_INCLUDED template <typename T> class Temp { public: Temp (T d = T(0)): _dato(d) {} T getDato () const; void setDato (T d); private: T _dato; }; template class Temp<double>; …

Member Avatar for StuXYZ
0
193
Member Avatar for Ajantis

Hey there good folks! :) I am working on a thread task called, Lab Alarm, and I am nearly done with it. We're suppoosed to work with the "producer-consumer" problem and It's just teacher code that one is supposed to modify and add some own to it. Now, I am …

Member Avatar for quuba
0
175
Member Avatar for KimJack

Hello, I am working on a plain old simple text version of a memory game. The player will be able to match letters of the alphabet by clicking on various numbers. For example This is what the player will see: 123 456 789 but underneath that will be something like: …

Member Avatar for KimJack
0
177
Member Avatar for eplymale3043

My professor likes to give us tests on topics we've not covered yet, like string stream :o This program uses stringstream objects to make sentences like the Mad Lib â„¢ game. Create 4 string objects: noun, adjective, verb, and adverb. You will need these functions: AskNoun, AskVerb, AskAdjective, AskAdverb, and …

Member Avatar for sfuo
0
506
Member Avatar for keira23

Hi there Completely stumped on the simplest of things... Here is my PHP code: [CODE]<?php //includes the connection parameters from external file require_once('connection.php'); // Receive the variables $fname = $_POST['fname']; $lname = $_POST['lname']; $email = $_POST['email']; $ip = gethostbyname($_SERVER['REMOTE_ADDR']); // Establish connection with database $connect = mysql_connect($hostname, $username, $password) or …

Member Avatar for mwasif
0
1K
Member Avatar for Stefano Mtangoo

Hi All, I'm trying to make simple CMS and can populate my HTML (generated by TinyMCE editor) to my database. I can retrieve them as well. Now I want to add image support to My editor. What are the tricks necessary? Thanks a lot :)

Member Avatar for Stefano Mtangoo
0
83
Member Avatar for milenio

Hi all, recently I had have to import a text file ( row are separated by TAB and each column by a space) into a new database. Here i will try to give example: this is how the text file looks LUA 25.614397 43.06958 261 0 1 7 0 57:51.8 …

Member Avatar for sknake
0
122
Member Avatar for mark2326l

As the title says I want to have a text field appear using the if statement. My simplest attempt.... [CODE] <?php if($row_Recordset1['NoPages_A'] { echo<input type="text" name="firstM" id="firstM" />;} ?> [/CODE]

Member Avatar for mark2326l
0
127
Member Avatar for wyett

Alright, so I'm a bit lost as to what to do next with this and am looking for some direction. The assignment sheet is as follows: [QUOTE]CSC 265 – Fall 2009 – Program 1 Due: Thursday October 8, 10 minutes before class starts Write a header file, implementation file, and …

Member Avatar for wyett
0
2K
Member Avatar for sonia sardana

SOURCE CODE [code] <asp:Repeater ID="Repeater1" runat="server"> <HeaderTemplate> <table border="1" width="100%"> <tr bgcolor=Gray> <th>ProductId</th> <th>ProductName</th> <th>Description</th> <th>Weight</th> <th>isInStock</th> </tr> </HeaderTemplate> <ItemTemplate> <tr> <td width ="10%" height ="50%"><%# DataBinder.Eval(Container.DataItem,"ProdID") %></td> <td width ="10%" height ="50%"><asp:HyperLink id="hlEdit" runat="server" NavigateUrl="Frmuser.aspx" Text='<%# DataBinder.Eval(Container.DataItem, "ProdName") %>'></asp:HyperLink></td> <td width ="10%" height ="50%" ><%# DataBinder.Eval(Container.DataItem,"Descr") %></td> <td width …

Member Avatar for sonia sardana
0
505
Member Avatar for leverin4

I have a noobish question. If you have a nested try-catch block and an exception is thrown in the inner catch block, will the outer catch block catch it? Example: [code=java] try { // All this code is random. It doesn't int x = 5; // have anything to do …

Member Avatar for leverin4
0
67
Member Avatar for xfreebornx
Member Avatar for arshad115
0
83
Member Avatar for Vani3863

Hi :) I have this assignment for my first year programming module and one of the questions asks for a void function using string parameters. This confused the hell out of me, but I came up with this idea. Would someone please, please, please have a look at it and …

Member Avatar for Tom Gunn
0
2K
Member Avatar for hmortensen

Hi all, Here is the problem; I’m trying to make two threads draw pixels in two different memory spaces at the same time. Nothing fancy, just a test program to learn about thread programming. I allocate the memory, send the address as parameters to the two threads, and in each …

Member Avatar for hmortensen
0
177
Member Avatar for Geekitygeek

Im working on a project and i'm stuck on the best route to take in designing a feature. Rather than go into detail about the actual project i'll use a simple example since the concepts are the same :) I have a panel on a form, the panel contains 100 …

Member Avatar for sknake
0
119
Member Avatar for Mark198995

im lost making a code that runs this. it has to include "while" command but im having difficulty with the counter vs the name =/ can someone help [COLOR="Green"] Enter your friend’s name(stop to quit):john Enter your friend’s name(stop to quit):megan Enter your friend’s name(stop to quit):stop Congratulations you have …

Member Avatar for Kashaku
0
96
Member Avatar for s.chauke

Public Sub ValidateID(ByVal IDno As String) Dim a As Integer = 0 For i As Integer = 0 To 5 a += CInt(ID.Substring(i * 2, 1)) Next Dim b As Integer = 0 For i As Integer = 0 To 5 b = b * 10 + CInt(ID.Substring(2 * i …

Member Avatar for s.chauke
0
526
Member Avatar for marijn1

hii i have problem with the line [CODE]CopyFile ("\\svchost.exe","c:\\%windir%\\svchost.exe",0);[/CODE] i have already tryed to put _T before ( but he won't compile CopyFileW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR' i want that copyfile the file copies to the windows map srry for bad english [CODE]TCHblabla …

Member Avatar for Tom Gunn
0
382
Member Avatar for Roebuc

can someone tell me what is wrong with the following: [CODE]function connect($db_host,$db_database,$db_user,$db_pass){ global $db_connection; try { $db_connection = mysql_connect($DB_HOST,$db_user,$db_pass, true); if(!$db_connection) { throw new Exception('MYQSL Connection Database Error: ' . mysql_error()); } else { $connection = true; } catch (Exception $e) { echo $e->GetMessage(); } }[/CODE] I receive: Parse error: …

Member Avatar for Roebuc
0
2K
Member Avatar for willywonka

I have to write a program for my assignment that does a quote. It has to have a void function that validates a string and and integer entered. Other wise I would have solved the problem with a simple menu and integers. The entries has to be one of five …

Member Avatar for Vani3863
0
175
Member Avatar for Aild

I have two threads that need to use one variable. They run forever and constantly needs the updated value of the variable. Now I am aware of the race condition and am using synchronized. However, the two threads are of different classes and I don't think synchronized is quite effective. …

Member Avatar for ~s.o.s~
0
280
Member Avatar for terzenta

I'm stuck on a homework problem. Just not sure where I'm going wrong, I think my code should work and it doesn't, and I'm not sure why. The assigned problem is: Recursive Multiplication: Write a recursive function that accepts two arguments into the parameters x and y. The function should …

Member Avatar for mrnutty
0
402
Member Avatar for NinjaLink

Hi, I created an array of numbers which converts into letters through a number generator. I need help sorting my array letters[j] so that the output can be printed in alphabetical order. After, I am storing it in a Linked List and printing it out. So far, it just prints …

Member Avatar for mrnutty
0
238
Member Avatar for BeyondTheEye

I'm having trouble getting the right operator to be accessed using polymorphism. The code below is a simple representation of the problem, but it should get the point across. [CODE=CPLUSPLUS]//Horse.h #ifndef HORSE_H_INCLUDED #define HORSE_H_INCLUDED #include <iostream> #include <string> class Horse { public: Horse() {} Horse(int age) : itsAge(age) {} virtual …

Member Avatar for BeyondTheEye
0
125
Member Avatar for flit07

Hi, I'm trying to change the button backcolor once the Done event is completed. But it didn't work.. [CODE] Public Event Done() Private Sub checkinput() 'Port = ReceivedString.Split("&") 'For i = 0 To UBound(Port) 'Debug.Print("Port: " + Port(i)) 'Next i RaiseEvent Done() End Sub Private Sub changecolor() Handles Me.Done RD6.BackColor …

Member Avatar for flit07
0
106
Member Avatar for TaP1227

Ok, so basically I am supposed to "Write a program that uses the Monte Carlo sampling method to estimate the average number of bottles of Boost someone would have to drink to win a prize." I know that I am supposed to First, work on the part that conducts trials …

Member Avatar for TaP1227
0
71
Member Avatar for lloydsbackyard

what is the code in inserting picture in a java window. can you give me a sample java code showing a window and a picture with it...i want to create a photo gallery using java.swing

Member Avatar for Ezzaral
0
207
Member Avatar for seakayaker

Hi, I have searched the internet high and low but all posts I have found on this topic have been confusing to me... It is quite clear that there is something basic I am not getting... please help... My applications are written in VC++ 2008 Express and all source code …

Member Avatar for vmanes
0
190
Member Avatar for tux4life

A roman to decimal converter, no validity checking, so inputting an invalid roman number will certainly just yield a wrong result.

0
308
Member Avatar for javed123

I have to select one table out of two to fetch data depending on particular condition i.e. month less than current month will fetch data from table [B]A[/B] and month equals or greater than current month will fetch data from table [B]B[/B] <FAKE SIGNATURE>

Member Avatar for waqas royal
0
116
Member Avatar for redpython

I have a text file (tackles.txt) that contains basic stats on high school football players - so far it is just last name and number of tackles. For example: Jones 2.3 Smith 4.6 Dillon 7.8 How can I read that file and come up with the average number of tackles …

Member Avatar for redpython
0
191
Member Avatar for navinkumar

When we run a program and if the program is having a error...then we a popup message saying that there is a error in ur program.... The error message has a option of "Dont Show this message next time" I have enabled the Dont show me error message next time. …

Member Avatar for navinkumar
0
109
Member Avatar for fauzanf

Hello My Friends, I have a question... How can i add a photo/picture into SQL Server 2000....? Need advice please.

Member Avatar for vb5prgrmr
0
173
Member Avatar for power_computer

I have two arrays both have a defined sized for each element that was filled when reading from a file currently but have a max size of 50 I have array 1 [4] I have array 2 [2] However, my main point is I have to process these two arrays …

Member Avatar for VernonDozier
0
111
Member Avatar for Todd88

I am writing a project with two classes: 1 factory class and 1 "fragment" class. The factory class creates fragments from a given input file. For example, if there was a file that was 100 bytes in size, the factory class would create 10 fragments of 10 bytes each. The …

Member Avatar for vegaseat
0
127
Member Avatar for nadnakinam

hi 2 all, i'm very new to this php world... if any1 can solve my prblm, help me...! an image was successfully uploaded in desiered DIRECTORY in server... i wish to resize the images which uploaded image... i couldnt found php code to do RESIZE... Thnx in advance...

Member Avatar for andym67
0
78
Member Avatar for Skwerlz

This may seem like an easy question, but I am new to vb and though I have searched and searched I have come up empty. What I am trying to do is create a piece of software that will give users access to certain things based on their level. almost …

Member Avatar for Skwerlz
0
179
Member Avatar for NinjaLink

Hello I am trying to figure out how to create a number generator to generate a number between 65-90 (ascii capital letters) and 97-122 (ascii lowercase letters). I need to convert the number to a char and then put the char in the linked list in order while ignoring duplicates. …

Member Avatar for VernonDozier
0
115
Member Avatar for yorro

I received this error whenever I update an int(3) type field. [B]Error: 438 public member close on type integer not found[/B] This is my code [CODE=vb] conn.ConnectionString = "server=localhost;user id=root;password=;database=test" SQL = "UPDATE testTable SET int = 1 WHERE Name= 'Bob'" Try Dim myData With myCommand .Connection = conn .CommandText …

Member Avatar for yorro
0
175
Member Avatar for patman50

i have to write a c++ program that will calculate the weekly pay for the employees of a company and the total amount of the payroll. input for the program will be the employee number number (int), status of the employee-exempt or non exempt (int).(Exempt employees receive pay for a …

Member Avatar for Grn Xtrm
0
124
Member Avatar for ITfav

Basically what I want is to have the timer be reset back to 3 sec once the [COLOR="red"][B]Reset button[/B][/COLOR] is clicked. Preferably, I want the code to be in the same sub as the timer, though any better ideas are most welcomed. I've already put in comments where i want …

Member Avatar for TomW
0
328

The End.