199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for madgokuss4

I have just started getting into python and so far it's all been very interesting and the help good to, but now i have ran into a problem. I'm sure it's very easy to solve but i just can't seem to figure it out or find anything on the web. …

Member Avatar for vegaseat
0
145
Member Avatar for alone2005

I define a class which hold some variables first: [code] class Command{ string cHandle; int numPara; vector<int> cPara; public: Command(); Command(string ucData); //...............more functions here }; //end of class definition [/code] Then I declare an object of Command and wanna store it in a vector [code] vector<Command> cv; Command c; …

Member Avatar for alone2005
0
143
Member Avatar for nwc

Does anybody know of any way to mix something like tail up with something like wc and get a scrolling "new lines per second" number? Or maybe there's a util that specifically does this?

Member Avatar for nwc
0
202
Member Avatar for STP72

I am new to bash shell writing and I need some help. I need to ask a user a name to search for. From the value the user has entered the information is pulled from a file called phonebook which displays the users name,address and telephone number. Then I have …

Member Avatar for shanenin
0
173
Member Avatar for G-Do

Hi, I'm writing a client program that downloads data from an HTTP server via urllib, like so: [CODE]ufile = urllib.urlopen(urlstring) text = ufile.read() # Do stuff with text[/CODE] Nice and simple. Unfortunately, the server only accepts requests with a session ID embedded inside - and I don't know how to …

Member Avatar for G-Do
0
250
Member Avatar for Rearden

i.e. . . [code] #include<iostream> void EatFrisky(Cat *Cat); int main() { Cat * Frisky = new Cat; EatFrisky(Frisky); return 0; } void EatFrisky(Cat *Cat) { delete Frisky; std::cout<<"Someone ate Frisky!\n"; } [/code]

Member Avatar for Drowzee
0
138
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to do an application that does the upload as well the download of files from a http server that needs authentication. The thing is i am not very sure where to begin and i am open to any suggestions. Basically what i am trying …

Member Avatar for Sauce
0
81
Member Avatar for peaceofmind

hi :) I need some help for this script I have -------------------- [CODE]cursor = conn.cursor() cursor.execute("select * from playlist limit 5") result = cursor.fetchall() # iterate through resultset playlist_txt = '' for record in result: mp3id = record[0] mp3_title = record[1] mp3_artist = record[2] playlist_txt += mp3id + mp3_title + …

Member Avatar for peaceofmind
0
210
Member Avatar for Debugthiss

I'm trying to learn Java on my own; however this book(for lack of a better word) sucks. It only has integer examples; therefore, I am unsure of how to script names, I'm trying "cha"; however it doesn't work. I want to write a program that reads: the total number of …

Member Avatar for Debugthiss
0
207
Member Avatar for Mahen

Hi everyone, am currently building a program with VS 6.0 but am having problems with string coruption, especially with strncpy(), [code]#include <stdio.h> #include <string.h> int main() { char prog[200]; int count; int su2; char mir[200]; strcpy(prog, "cmd.exe"); // we add cmd.exe to prog count = strlen(prog); // we measure the …

Member Avatar for winbatch
0
620
Member Avatar for djbsabkcb

I must ask user number of students who took test, then create a dynamic array and then get the scores for each student. Then calculate the sum,average of the scores. My problem is that once it calculates it continues to ask user for student scores. I am confused with this …

Member Avatar for winbatch
0
211
Member Avatar for jhoop2002

So ive got my login page almost completed, now for whatever reason i am stuck trying to get the roles for each user from my database into the authorization cookie. In regular old asp this wouldn't be a problem for me, but don't see what im doing wrong in .net …

Member Avatar for Paladine
0
301
Member Avatar for ozeona

Hey there i have been trying to bind a table from database to a listbox. I know this can be done quite easily but i keep having an error with i cannot figure out why. Whenever i declare selectedMain as linklist.selectedItem.value, it will alsways tell me "Object reference not set …

Member Avatar for Paladine
0
643
Member Avatar for SpittingSctsman

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in _____________________________________________________ I have seen a lot of this around the internet lately, both in forums and on some production websites (WHOOPS!) :cheesy: I am currently developing a small site which uses MySQL as it's data repository, and I …

Member Avatar for SpittingSctsman
0
140
Member Avatar for Cr4nberry

Hello everyone, I have a little problem using WMServer tools, I get this error when I go to localhost in my browser: [B] Warning: mysql_get_server_info(): Can't connect to MySQL server on 'localhost' (10061) in C:\WM\www\index.php on line 118 Warning: mysql_get_server_info(): A link to the server could not be established in …

Member Avatar for Troy
0
160
Member Avatar for Yuki H.

I have this header information error while I was playing with a script. Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/layouts/connection.php:8) in /home/user/public_html/layouts/addcomments.php on line 23 I wanted the page to redirect itself after submitting the comment, but I messed up. I also want …

Member Avatar for Troy
0
112
Member Avatar for Toulinwoek

OK, I'm hitting the wall harder than a rookie Indy driver! I'm very new to programming in general, C# in particular, and I'm trying to teach myself. I'm using [B]C# Express[/B], which Microsoft claims is aimed squarely at people like me (novice). However, I can't seem to find the exact …

Member Avatar for Toulinwoek
0
172
Member Avatar for joeh157

Can anyone help with a program that would allow you to enter 5 floating point values into an array called Marks and then calculate and displays the average of the marks entered? Also need help with a second program that manipulates an array of 7 integers according to the following …

Member Avatar for Dave Sinkula
0
178
Member Avatar for atv161

wrdMailMerge.Destination = Word.WdMailMergeDestination.wdSendToPrinter This line of code gives an error saying requested object is not available Does anyone know why? If so can you point me in the right direction to fix it.

Member Avatar for yyu
0
209
Member Avatar for jrichards

My problem usually happens when I have logged off the internet and I go back. I get a small screen in the center and it says "dtdp://748/331lljgen44.cjt1net/HTM/704/0/JavaSiteRequest.asp?LV=6000&DC=453&NF=0&IW=720&IH=300&ORD=1121629852397? 7" and after I hit OK it then says can not find site "dtdp://748/331lljgen44.cjt1net/HTM/704/0/JavaSiteRequest.asp?LV=6000&DC=453&NF=0&IW=720&IH=300&ORD=1121629852397? and after that I can go about my business

Member Avatar for mmiikkee12
0
169
Member Avatar for alone2005

in one file I define [code] void Show(char* s){ string str =" "; str+=s; cout<<str<<endl; } [/code] then in main I call it by [code] char s[100]="Testing..."; //or use *s here, make no difference Show(s); [/code] output nothing but blank. weird?

Member Avatar for alone2005
0
250
Member Avatar for roza

Hi, I am not familiar with JavaScript very well, but despite the fact that where it says "enable" in "internet options" I checked the box, most of the sites still don't work. What could be the problem and how to fix it? THANKS in advance, -Roza

Member Avatar for tgreer
0
291
Member Avatar for alone2005

Simplify my problem I put a short version of code here, first header file: [code] namespace xxx{ class util{ public: static int MAX_PATH ; util(); static void init(); static void do(void); }; //end class int util::MAX_PATH ; } [/code] cpp file: [code] namespace xxx{ util::util(){ init(); } void util::init(){ MAX_PATH …

Member Avatar for Dave Sinkula
0
254
Member Avatar for chriswell

i need to write a program that can count the number words the user enters and and the recurences of each letter. ex: Have a nice day Total words: 4 a = 3 d = 1 e = 2 ... Can't get the program i've writen so far to count …

Member Avatar for bgunn
0
218
Member Avatar for davidlim

I've been writing a java application to run employee data and compute their salary. I'm having some problem with my Manager class. Manager class is for adding and removing employee record supervise by a manager and compute their total salary. Can anyone guide me how to develope this class with …

Member Avatar for Easter Bunny
0
245
Member Avatar for swep

Can a tuple hold a URL that points to a particular file, so that when a SELECT is made on that tuple it will open up the file itself? What I'd like to do is within the db store the URL like "C:\MyDocuments...\Image1.jpg". When I use a SELECT statement on …

Member Avatar for swep
0
173
Member Avatar for Jon182

Hi guys, I was making a program a few months ago in C++ and in this program I used cin.getline but I found if I used this more than once in the same function some of the cin.getlines would be ignored once the program was compiled. I was just wondering …

Member Avatar for Jon182
0
221
Member Avatar for Mahen

i have windows xp, where can i find the SDK for windows XP or 2000 where can i find a comlete documentation of all the API of windows

Member Avatar for Mahen
0
128
Member Avatar for Iron_Cross

Because of some suggestions, I'm going to try to gather some good programming resources in this thread. If you know any good websites, either post them here, or PM me and I'll add them to this post. [b] Tutorials, Books, Utils, Misc[/b] [list] [*] [url]http://www.techbooksforfree.com/[/url] (Free Books) [*] [url]http://www.freeprogrammingresources.com/books.html[/url] (Tutorials) …

0
132
Member Avatar for DivX

this is what i got: function roll(id,h){ //menu = document.getElementById(id); cont+=1; document.getElementById(id).style.height = cont; t=setTimeout("roll('"+id+"',"+h+")",100); if (cont > h){ cont=1; stop(); } } this should resize a layer's height like an animated dropdown menu ... but it simply won't assign the new height.tryied also: function roll(id,h){ menu = document.getElementById(id); cont+=1; …

Member Avatar for DivX
0
402
Member Avatar for MsEbonee

The assignment is as follows: Write an original program with a theme of a family vacation. The name of the class containing the main method should be VacationXXX. There should be at least four classes. Use a menu with a switch statement to provide a menu of options to call …

Member Avatar for jwenting
0
149
Member Avatar for asatrujesus

Okay, when I first started trying to teach java to myself, I picked up a book called "Java: A beginners guide" by Herbert Schildt. I thought compiling was going to be as easy as c, I was of course wrong. Well through various searches I've figured out how to get …

Member Avatar for asatrujesus
0
444
Member Avatar for karen_CSE

hi, I know it's me again. It's HW, and I'm supposed to write a program that grades an example of 20 questions. I'm supposed to store the correct answers in an array. And then ask the user to enter the student's answers for each of the 20 questions, whic should …

Member Avatar for Drowzee
0
509
Member Avatar for Mr.

Hello, this is a simple model for a simple program that will spawn a thread to run a given option in a menu (only option 1 and 2 run threads). The loop will need to wait for a thread to complete, so it uses the thread_join function [code] pthread_t newthread; …

Member Avatar for Mr.
0
172
Member Avatar for Kob0724

So I had this nifty program on my calculator that I wrote that sloves quadratic equations for me. I decided it would be good practice to try and write it in C++. I've actually had 4 different versions, each one (atleast in my opinon) getting better than the last. When …

Member Avatar for Kob0724
0
333
Member Avatar for toruhikaru
Member Avatar for Xeys

I'd like to team up with another beginner in C++ to write a role playing game. I'm a beginner also. Is there another beginner that would like to work with me as a team to make something? Please, no flames. The goal is to write a game that will use …

Member Avatar for Electrohead
0
234
Member Avatar for zerenoa

Hi, In my assignment , I need to print out the ID,Name and more in a line..with no space bar allowed..besides using the \t ,is there any method to print out... Student Student Course bla bla ID Name Info xxx xxxxxxxxxxxx xxxxxxxxx when i use the \t, my output aint …

Member Avatar for Dave Sinkula
0
165
Member Avatar for roopasumanth

hi i want to do a program for mway search( external sorting),displaying each step of sort in java, can any one of you please help me, i am a starter in java. thanks in advance

Member Avatar for roopasumanth
0
159
Member Avatar for madhusuri

Hi, Iam a MySQL user and Iam currently having some error messages in my code.I use TYPO3 as the frontend. I get these 2 warning messages [COLOR=DarkRed]Warning: Supplied argument is not a valid MySQL result resource in /var/www/typo3/lib/t3lib/class.t3lib_db.php on line 677 Warning: Cannot add header information - headers already sent …

Member Avatar for onewebsite
0
122
Member Avatar for Leo Vite

Hi all, Im new to the site and to Java. Im having some trouble with my current assignment. I was suposed to make an isosceles triangle with asterisks based on a number entered by user. I got the first half correct but I can not figure out my loops for …

Member Avatar for Leo Vite
0
125
Member Avatar for Rearden

Hello. I'm learning C++ out of Sams Teach Yourself C++ in 24 Hours and Accelerated C++ Practical Programming by Example. I've heard these are both good references. Anyway, I just learned about classes and I was wondering how one makes an array of class objects. here is the Cat class …

Member Avatar for Rashakil Fol
0
263
Member Avatar for CoolHandLuke

I have attached 2 java files which, when run, simulate a calculator that performs addition and multiplication only. I have been working on it for some time...getting assistance from varioius sources. I am having two issues I need help in correcting. They are as follows: 1) When multiplying two single …

Member Avatar for compiler
0
266
Member Avatar for shakesahal

I recieved a warning error as below [C++ Warning] HMLP.cpp(4): W8058 Cannot create pre-compiled header: write failed which was refer to the code below #pragma hdrstop After check with help file in Borland C++ Builder 6 the statement was as below This warning is issued when pre-compiled headers are enabled …

Member Avatar for shakesahal
0
207
Member Avatar for ozeona

hi recently, i realise theres such thing as Hashtable that are allow listbox to retrieve url when clicked. However, as i find out more, i realise most examples i saw are static. As in [CODE] dim mycountries=New Hashtable mycountries.Add("N","Norway") mycountries.Add("S","Sweden") mycountries.Add("F","France") mycountries.Add("I","Italy") [/CODE] is there any way to retrieve this …

Member Avatar for ozeona
0
347
Member Avatar for jerMAn

I the Page_Load I have a random event and a public variable [code] Dim rndImage As Integer Randomize() rndImage = 1 + Int(Rnd() * 13) Select Case rndImage Case 1 ImageRnd.ImageUrl = "/jpro/images/rnd/Image1.gif" rndAnswer = "A7b" Case 2 ImageRnd.ImageUrl = "/jpro/images/rnd/Image2.gif" rndAnswer = "5RX" etc.... End Select [/code] Then in …

Member Avatar for jerMAn
0
312
Member Avatar for cancer10

Please help me in converting bytes to MB, attached is a project, please fix it and post it here...thanx

Member Avatar for mnemtsas
0
75
Member Avatar for techz_boy
Member Avatar for user777

Hi, Could anybody explain me how to add the totals of a colomn in a database table? Thanks in advance. user777

Member Avatar for mnemtsas
0
121
Member Avatar for jepapel

ok - challenge number 2: What now if i would like to input letters and the letters would be displayed as numbers? For instace i would like to input b a d and it would display me the corresponding numbers. The opposite of what Mr.Dave Sinkula (look thread:[B]Need help with …

Member Avatar for zyruz
0
338

The End.