199,114 Archived Topics
Remove Filter ![]() | |
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. … | |
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; … | |
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? | |
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 … | |
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 … | |
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] | |
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 … | |
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 + … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 | |
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? | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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) … | |
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; … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
i've attached the file below.. pls gip me a hand!! | |
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 … ![]() | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Please help me in converting bytes to MB, attached is a project, please fix it and post it here...thanx | |
anyone can help with data navigation in vb and ms sql 2000? | |
Hi, Could anybody explain me how to add the totals of a colomn in a database table? Thanks in advance. user777 | |
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 … |
The End.