199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for geo039

I am trying to seperate the code below into one sub routine and one function. Specifically a boolean function that does the number check. I am still learning how to use sub procedures and functions and am not sure where to do the seperation. Any advice would be helpful. I've …

Member Avatar for iamthwee
0
200
Member Avatar for n.aggel

if i write something like this it works: [code=c++] Person array_persons[10]; int age=0; for(int i=0; i<10; i++) { cout<<"give age : "<<i<<endl; cin>>age; array_persons[i].setAge(age); } [/code] but when i try to do it with pointers: [code=c++] Person *array_persons[10]; int age=0; for(int i=0; i<10; i++) { cout<<"- give age : "<<i<<endl; …

Member Avatar for ~s.o.s~
0
94
Member Avatar for Bobbiegirl

I am new to this C thing and am triny very hard to understand but am having a little problem getting thing to work. I have a project that I have been working on and cannot seem to get it to work. This is what I have so far and …

Member Avatar for ~s.o.s~
0
144
Member Avatar for aparnesh

How can I trim a string i.e. remove leading and trailing spaces ? I have a form validation which requires the user to specify a value, i.e. not leave the field blank. I want to ensure that the user cannot simply press the Spacebar a few times and leave the …

Member Avatar for aparnesh
0
90
Member Avatar for EnderX

I've about given up on trying to get my setup to work by poking at it manually. Does anyone know of any PHP5 rpms for SuSE 9.3 that are of later versions of PHP than PHP 5.1.2? That's the latest one I've found searching online. If anyone has any suggestions …

Member Avatar for EnderX
0
101
Member Avatar for Barefootsanders

Hey guys. Ive been having problems with something. Im trying to load a picture and put random dots on a square part of that image. Right now I got it to put dots on the whole image but I cant seem to get it to just a certain section of …

Member Avatar for Barefootsanders
0
150
Member Avatar for mrwan
Member Avatar for nanodano

I have a question and I was hoping someone could point me in the right direction. I know the IP address of a server I want to download a file from, and I know the path on the client hard disk I want to download it to. How could I …

Member Avatar for ~s.o.s~
0
99
Member Avatar for vissu259
Member Avatar for phuduz

hey guys heres a pop machine program ive been working on and i juss cant seem to understand why im gettin errors especially some of the semi colon errors any help would be much appreciated ty in advance [code] [COLOR=#008000]//File: Assignment 3[/COLOR] [COLOR=#008000]//Programmer: Ravi Mandair CPSC 1103 S. 10[/COLOR] [COLOR=#008000]//Purpose: …

Member Avatar for WaltP
0
81
Member Avatar for linq

I am a new learner to the Dao database operation through MFC access.For now I am trying to write a program, saving two values in two edit boxes to a column of MS Access 2000 table. There are not many samples available. Could any one write little sample codes or …

Member Avatar for Ancient Dragon
0
94
Member Avatar for linq

like .... CString name[5]; for(int i=0;i<5;i++) name[i]="Jack"; .... is this the right way?

Member Avatar for Ancient Dragon
0
106
Member Avatar for bluebird

[COLOR=#000000]Hello Everybody![/COLOR] [COLOR=#000000]I would like to tokenize the text file and save the token into the array.[/COLOR] [COLOR=#000000]I will tokenize a sentence if it starts with “[(“ and consider the sentence ends when it meets “)]”[/COLOR] [COLOR=#000000]For example, if a text file contains[/COLOR] [COLOR=#000000][(I love[/COLOR] [COLOR=#000000]Rose)][/COLOR] [COLOR=#000000]Please help me[/COLOR] [COLOR=#000000][(Thanks …

Member Avatar for Phaelax
0
226
Member Avatar for EFEXConsulting

I’ve been developing ASP.NET 1.1 applications for quite long. About 4 month ago I switched to new .Net 2.0 platform. And here are few stuff that really confusing me about it. (I use MS VS 2005 Standard for development) #1 what’s the big A in the VS2005’s way of site’s …

Member Avatar for EFEXConsulting
0
84
Member Avatar for tiwariarun1

i have problem in asp with vb. i created a form in asp that is catching data from access database it is working fine but now if i want to modify ( update the data in asp in that same form how to do that. please it is very urgent …

Member Avatar for katarey
0
107
Member Avatar for BobbyRags

Hi, my second post. I made my first in the "Geeks Lounge" as suggested. I wish to learn PHP and I'm totally new to/at it. All your help isgreatly appreciated. I have webspace and they support .php, .asp, .cgi, and .pl scripts. How do I start? With PHP that is. …

Member Avatar for Rhyan
0
142
Member Avatar for Serg_zone

Hey guys, i'm have a tough time working the following two problems. I need to find out the theta notation or big O for the number of times x=x+1 is executed [code] i = 1 while (i < n) { i = i^2; x = x + 1; } [/code] …

Member Avatar for AnonCSAddict
0
136
Member Avatar for naheed

i m student .i m doing my final project. i really found this forum to be very useful for me. my project is related to screen capturing i want to create a file with .swf extension from images in a directory and a wav file. simply u can say that …

Member Avatar for antonybls
0
164
Member Avatar for stevos

Hi - was just wondering if anyone could help a php newbie I'm trying to read in a list of items and display them in a table What I would like to do is have a box of text to the left and one item from db alongside it followed …

Member Avatar for Rhyan
0
113
Member Avatar for requiem2

Hi guys, Have been testing on internet explorer and firefox and it worked as required. But when i tested it at work, firefox won't display the site. Instead it shows a dialog boz of whether to open or save the file. It does open on internet explorer though. Any clue …

Member Avatar for requiem2
0
91
Member Avatar for aznballerlee

How do I shift my arrays .. starting at a position in the middle of the arrays .. to one place to the right? I tried using a for loop, but it doesn't work. [B]Here is my task:[/B] int insert(string a[], int n, string s, int pos, int max); Insert …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for mo_show_me

Background: Minimal experience with Perl and none with Expect. We have 1,000's of users. 150+ Unix servers (Primarily AIX, some Solaris, and a couple of HP-UX). NIS is not an option and neither is purchasing a commercial product. The team (40 staff) has to maintain our own ID's across all …

Member Avatar for masijade
0
209
Member Avatar for chakrapani

When we signout the form How can i disabling back button and, not only disabling back button but also delete history from browser. Suppose i used <script language="javascript" > javascript: window.history.forward(1); </script> to disable back button , its working. when i go to back list and click previous histories it …

Member Avatar for chakrapani
0
92
Member Avatar for mattyd

I have come to point in my program where I have decided a static variable would be the best option. I am not very familiar with static variable use and have never implemented them often. The area of concern is highlighted in [COLOR=Red]red[/COLOR]: I am simply using a time function: …

Member Avatar for mattyd
0
110
Member Avatar for smallpau1

I am having trouble, i am trying to make a program read in 3 points and calculate the 3 things listed in the program, but i cant seem to get the sideA-C to get calculated out without overloading the sqrt function. The functions given above main have to be used …

Member Avatar for smallpau1
0
227
Member Avatar for degamer106

I have the following declarations: [CODE]typedef struct{ int year; // key char title[51]; char director[41]; } MOVIE; typedef struct node{ struct node *left; MOVIE *movie; struct node *right; } TREE_NODE;[/CODE] lets say I create a TREE_NODE called root. Why can't I do this declaration? [CODE]root->movie->year = 1990[/CODE] Whenever I try …

Member Avatar for degamer106
0
103
Member Avatar for ffire

Hey whats up im pretty new here and new to java. I have no idea when it comes to methods. (this is my first java course so im completly lost) I have a test coming up and Im just trying to review. We got a couple examples of things that …

Member Avatar for ffire
0
102
Member Avatar for MattEvans

I was playing around with XMLHTTPRequests recently, let me just start this by saying I prefer to never have a single JavaScript requirement... so my use of the request is merely... icing on a big webcake. anyway.. In offline testing I can create requests ONLY in IE... in online tests …

Member Avatar for MattEvans
0
127
Member Avatar for Brent_Ritterbec

This is my first post, so let me begin by describing myself before asking my question because I believe you might then better understand where I am coming from. I am twenty years old. I recently graduated from the University of Florida with a Bachelor's of Science in Business Administration …

Member Avatar for ringy_thingy
0
146
Member Avatar for pedz

I'm trying to understand Argument Dependent Lookup. The classic example is: [CODE]namespace NS { class T { }; void f(T); } NS::T parm; int main() { f(parm); // OK: calls NS::f }[/CODE] I'm looking at this [URL="http://www.kuzbass.ru:8086/docs/isocpp/basic.html#basic.lookup.koenig"]page[/URL] and in particular this statement: [QUOTE]If T is a class type, its associated …

Member Avatar for Lerner
0
115
Member Avatar for aznballerlee

My task for this function is to find the index of the <= string in the array. If more than one string, then retrun the smallest index of such string. Retunr -1 if no elements in array. I came out with a rough code. I hope what I did was …

Member Avatar for aznballerlee
0
115
Member Avatar for boujibabe

I have a palindrome program.Is there a way to ensure user input terminated in a string by a punctuation mark (e.g. ‘!’, ‘.’, or ‘?’.) in an array? And how do i get the program to exclude commas? eg A man, a plan, a canal, Panama! bosters a problem because …

Member Avatar for ~s.o.s~
0
461
Member Avatar for kamitsin

Hi, Yesterday a friend of mine asked me about the use of $ at the end of the crontab command. His query is something like this. [B]15 3 * * * command [COLOR=red]$[/COLOR][/B] Can someone please help me with the use of $ at the end of this crontab command …

Member Avatar for kamitsin
0
94
Member Avatar for mattyd

I have been looking at a small bit of code concerning the use of [B]static [/B]with variables; I thought I understood the use of [B]static[/B], but I find this code confusing: [code]//: C03:Static.cpp // Using a static variable in a function #include <iostream> using namespace std; void func() { static …

Member Avatar for Salem
0
153
Member Avatar for sneekula

I have a file of sentences similar to this: [CODE] Tom ate his Apple. Frank shoveled Snow. Henry drove a Truck. [/CODE]I would like to prosess each sentence so it only retains the capital letter in the first word, every other word in the senetnce should be lower case. The …

Member Avatar for Mouche
0
122
Member Avatar for Mouche

So my idea for this program was to take data from a file and compiling it into a schedule type thing.... Comments? Again...for learning purposes, I'd love to see suggestions for content, efficiency, and techniques. [php] # Get data from schedules.txt import string f = open("schedules.txt","r") schedule_rawdata = f.readlines() f.close() …

Member Avatar for Mouche
0
193
Member Avatar for pachjo

I am trying to get to grips with treeviews in pygtk/gtk and am stuck on setting the alignment of the columns. No matter what I try I cannot change the alignment[IMG]http://ubuntuforums.org/images/smilies/eusa_wall.gif[/IMG] Here is the code I found on the web which I am using to change different lines to see …

Member Avatar for pachjo
0
190
Member Avatar for pointers

Hi, I hav defined an array of n elements.Each element represents a structure. Like, [code=c] typedef struct { int dd; int mm; int yyyy; }srik; srik a[n]; [/code] Then how to assign a date (eg:02/07/1984) as a string("02071984") to the first array element(means the first structure) in the array. I …

Member Avatar for Ancient Dragon
0
104
Member Avatar for bhagwat_maimt

hi everybody! I am trap in a problem related to structure. I am working in the project in which I am devleoping a DLL in C++ using VC++ editor. The code I am using is as follow: [code=c++] //This is header file typedef struct{ static char szOriginalAddress[0x100]; static char szRecipientAddress[0x100]; …

Member Avatar for WolfPack
0
124
Member Avatar for sugarboy rider

I want to make an evaluation version that lasts one month, how can I do an executable that works perfectly during this time and afterall it stops and is then no working anymore?

Member Avatar for sugarboy rider
0
109
Member Avatar for Savage221

Hello, for the final part of my program I need to count how many letters appear throughout a pretty large input file. Opening the file, storing to an array, etc.. is all taken care of. I'm clueless on how to count each letter that occurs. I've read structures are the …

Member Avatar for WaltP
0
105
Member Avatar for jcisml

Hi, i'm trying to make a menu that will follow me as I scroll down the window, somethins like this, (look on the right and on the left) please use IE to see, firefox doesn't display properly [URL]http://www.gmarket.co.kr/challenge/neo_category/html_small_category/small_category_300004054.asp?gdsc_cd=300004054&link_type=LIST[/URL] i have found some java script, however I want the menu move …

Member Avatar for digital-ether
0
112
Member Avatar for Acidburn

Hello guys, can anyone offer guidance on how to implementthe following: I have a JSP page that automatically refreshes every minute. However the page is fairly long and when the user moves the scrollbar down the page, and the minute is up the JSP page is refreshed and the user …

Member Avatar for digital-ether
0
242
Member Avatar for sgriffiths

Hello I have a web page which has a drop down menu. I want the user to select an option from the drop down menu, then click submit. This will then activate my php script and select data from my MYSQL database and populate the fields. How do i action …

Member Avatar for digital-ether
0
147
Member Avatar for mfeldheim

Hello everybody, I've got a small problem I need the following string to be split into it's parts: [code] ftp://user:pass@host/path [/code] the result should be smth like: [code] $USER = user $PASS = pass $HOST = host $PATH = path [/code] Somebody has help for me? Would be nice Alternative …

Member Avatar for kamitsin
0
99
Member Avatar for mayoline

Hello, :) experts out there. First of all, thanks for reading my threads. I am a junior developer using ColdFusion. I have some doubts here. When we passing the parameters which is numeric type, then use that variable in another page for query, sometimes will come out with error of …

Member Avatar for mayoline
0
185
Member Avatar for Jarell

Hi all I'm sure you hear this all the time but "I'm a student who sucks at Java looking for help" My assignment is to (short version) Task Overview:You need to write five classes – Shop, Item, CD, Game, and ElectronicGame. The Shop stores a Vector of Items. The items …

Member Avatar for Jarell
0
117
Member Avatar for Dhruv Shah

VB.NET Code behind: [code] [COLOR=#0000ff]Private[/COLOR][COLOR=#0000ff]Sub[/COLOR][COLOR=#000000] Button1_Click([/COLOR][COLOR=#0000ff]ByVal[/COLOR][COLOR=#000000] sender [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] System.Object, [/COLOR][COLOR=#0000ff]ByVal[/COLOR][COLOR=#000000] e [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] System.EventArgs) [/COLOR][COLOR=#0000ff]Handles[/COLOR][COLOR=#000000] Button1.Click[/COLOR] [COLOR=#0000ff]Dim[/COLOR] dbconn [COLOR=#0000ff]As[/COLOR] SqlConnection [COLOR=#0000ff]Dim[/COLOR] dbcommand [COLOR=#0000ff]As[/COLOR] SqlDataAdapter [COLOR=#0000ff]Dim[/COLOR] dslogin [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]New[/COLOR] DataSet dbconn = [COLOR=#0000ff]New[/COLOR] SqlConnection("Server=localhost;UID=sa;PWD=sa;database=websiteDemo") dbconn.Open() dbcommand = [COLOR=#0000ff]New[/COLOR] SqlDataAdapter("Select UserID from " _ & "Login Where " _ & "Username = '" …

Member Avatar for sierrasoft
0
125
Member Avatar for Mushy-pea

Hello everyone. I've tried several times to use associative arrays in my Perl scripts, but each time I have got syntax errors I can't understand. Based on the tutorials I've read I have tried to do things like this: [code=perl]sub test_function { my($key, %table); %table = ('word1', 'Perl', 'word2', 'is', …

Member Avatar for Mushy-pea
0
111
Member Avatar for wheelz

I need some help,Here is the problem, I work for a company that lays ceramic floor tile and I need a program that estimates the number of boxes of tile for a job. A job is estimated by taking the dimensions of each room in feet and inches, and converting …

Member Avatar for wheelz
0
184

The End.