199,114 Archived Topics
Remove Filter ![]() | |
Hello, Can anyone tell me what the code beneath means. I've searched but can't find a clear explanation. Maybe someone can give an example of how to use it. Thanks... [code] [COLOR=#0000ff]bool[/COLOR][COLOR=#000000] MyClass::[/COLOR][COLOR=#0000ff]operator[/COLOR][COLOR=#000000]()()[/COLOR] [COLOR=#000000]{ [/COLOR] [COLOR=#000000] ....[/COLOR] [COLOR=#000000]}[/COLOR] [COLOR=#000000]class MyClass[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#0000ff]virtual[/COLOR] [COLOR=#0000ff]bool[/COLOR] [COLOR=#0000ff]operator[/COLOR]()(); } [/code] | |
Write a conditional that assigns the boolean value true to the variable fever if the variable temperature is greater than 98.6 . i dont understand what i'm suppose to do... can you explain what i am suppose to do please.. | |
With the ease of argument passing to and from functions in Python, why would anyone want to use global variables. Isn't that an open invitation for mistakes to happen? Yet, I see code in threads here that abound with globals. I am a little confused here. | |
I am taking a programming course, and since we have not been introduced to string functions (puts(), gets(), etc) I need to take some input from the user using scanf. The assignment is to read a DNA sequence, storing it in a char array. The array must be 512 characters, … | |
hi. well can anyone please tell me y am i getting this error and how can i get rid of it.. [code] import java.io.RandomAccessFile; import java.io.IOException; import java.util.StringTokenizer; import java.util.NoSuchElementException; public class routing{ public static void main( String args[] ){ routing app = new routing( args[ 0 ] ); } … | |
dont know what is wrong with this, wont give me the result. please help [code]#include <iostream.h> #include<stdlib.h> #include <process.h> #include <conio.h> class SortList { private : int *list; int size; public : SortList(int size) { list=new int[size]; this->size=size; } void Swap(int i,int j) { int tmp; tmp=list[i]; list[i]=list[j]; list[j]=tmp; } … | |
[code]#include <stdio.h> int function1(int a) { return(a*a*a); } int function2(int b) { int i; int sum = 0; for (i=1; i<=b; i++) sum += function1(i); return(sum); } int main () { int n, result; printf("Enter n\n"); scanf("%d", &n); result = function2(n); printf("Result = %d\n", result); system("pause"); return(0); } [/code] Explain … | |
I would like my old postings to remain on my blog through out the month. Then after every month change over the links will post for that month. The links should remain posted through out the month. And can you tell me what does this code mean: <ul id="monthly"> <ul … | |
Hi, I was running Python 2.3 an although I had a few problems it generally worked. I today tried to upgrade to 2.5 and it installs (apparantely) ok, yet when I click on the IDLE icon nothing happens. No error message, nothing. I can however click on the Python (Command … | |
I don't know where to put this anyway- guessing that VB is actually php based.. Gonna put it here- Move this if it isn't the right place. :o How do you actually make a VB skin? I looked on the site and I didn't really find a tutorial on it- … | |
Dear All, This is my first post - I was delighted to stumble across such a great resource. I am trying to set up a simple e-card system for my website using HTML formatted CDOSYS email messages. At present I have the system up and running in a raw form … | |
i don't know why this program doesn't work.. it just keep on saying that it have errors..... pleae help!! please help!! [code] #include <stdio.h> #define LEX_LEN 1024 enum chars{ LETTER, DIGIT, UNKNOWN,ZERO,TULDOK, WHITESPACE,SEMICOLON,QUOTED,PLUS,MINUS, DIVIDE,LT,GT,EQ,ASS2,OPARENT,CPARENT }; enum Token { STOP, NUM, STRING,STMTSEP,QUOTED_CHAR,ERROR,ADDOPERATOR,MINUSOPERATOR,DIVIDEOPERATOR,SIGNEDNUM, SEMI,LTHAN,GTHAN,EQUAL,ASS,OPEN_PARENT,CLOSE_PARENT }; chars charclass; char nextchar; char parse_me[] = … | |
I've just bought a copy of Borland C++ V.6 personal, for the purposes of compiling/'single stepping' my C code for college work. When I click the right pointing green arrow, the code compiles, (HelloWorld!) but trying to single step through the code or get an executable isn't obvious. Trying to … | |
can someone please help me to write a code in c to do the following: 1)read words from a file 2)store the words in a linked list 3)read the words and display 4)count the number of words in list | |
Hi Ive got this word count script when i check it there is no probs but when i run it it says Traceback (most recent call last): File "H:\Scripts\count.py", line 9, in <module> infile = file(data, 'r') NameError: name 'data' is not defined This is my script #The number of … | |
I want to find the length of a string, But the strlen function seems only to work with chars. I can't use a char[] to store my text because the size must be known beforehand and I don't know it. So I read everything into a string, then tried to … | |
Hello Friends, I am willing to learn python, so can someone please guide me how do I get started? I mean wot compiler would I need and which editor etc Also tell me wot is the scope of python in web programming? Thanx | |
Hi guys, I just found this site while doing a google search for "declaration syntax errors" and it looks like there are some great people here that are willing to take time to explain things which is what I need! I'm in college taking c++ and my teacher doesn't tell … | |
I am new to php and am building a search function for my website. The problem is I cannot seem to make the Aa> tags work to make the link I keep on getting parse error. could someone tell me how to make $title a link. I can pretty much … | |
Hi, Just to make things obvious, I am a student. I have been learning C given an assignment to code a program similar to that used on the Voyager 9 probe. It uses hadamard matrices to make sure that bits transmitted through space have redundancy and are not lost. Each … | |
up to 3am last night, any help appreciated!!! have a html form created in dreamweaver. want users to complete their details on a form. do not need a dynamic page or sql d.base as only one way traffic. i just want to receive date in either email or excel format. … | |
I'm having touble trying to send arrays from funciton to function. The thing I can't do is make a global variable (one of the rules set by the teacher). I don't know what I'm doing really, so let me know if it's even doable. | |
Hi The info "joeprogrammer's" gave me to place the python directory at the end of my path but im confused. My path at the moment looks like this %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Adobe\AGL Python on my pc is in my H:\ drive under a folder called python. … | |
Ok, ive created a login script and i have saved it as login.js. See below: <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function Login(){ var done=0; var username=document.login.username.value; username=username.toLowerCase(); var password=document.login.password.value; password=password.toLowerCase(); if (username=="someone" && password=="something") { window.location="page.htm"; done=1; } if (done==0) { alert("Invalid login! (try lower case)"); } } // End --> … | |
Hi i Made a shell script like this [code] name = raw_input ("Please enter your name: ") if name == Harry: print "Welcome" else: print "you smell" [/code] What i want it to do is ask for my name and if i dont enter Harry it says "YOU Smell" But … | |
[COLOR=#555555]Greetings C++ Lovers:[/COLOR] [COLOR=#555555]I'm a student very new to this C++. Yes I took Linux & UNIX. That was a year ago and I've never applied it to ANYTHING. If it's not too much trouble, I'm at a loss. A Big LOSS. You see, the reason I say this is … | |
How to I best pass multiple arguments to and from a function? | |
I recently learned the command-line argument from my book, and I understand that both of argc and argv. HOWEVER, I don't know when I will use them and for what purpose??? I appreciate if anybody can help me!!:sad: | |
What would be the time complexity (worst case) of following: I have three loopes. n=number of elements for(i=0;i<n-2;i++) for(j=i+1;j<n-1;j++) for(k=j+1;k<n;k++) If only i and j loop were there the time complexity would be O(n^2-n/2) but considering the 3rd loop i got kind a lost. So please help me! | |
Hi everyone could anyone find or know the code for the above? I've looked but can only find it for add to fav's. Any help would be great. ![]() | |
I have written a program with 2 functions which compute factorials & combinations. The functions work perfectly when called but I cannot insert a for loop at the end which sums up the combos. This part works (I have omitted the functions because they work when called for). [code]long factorial(int … | |
Hey all. I was hoping somebody on here, preferably vegaseat or any other long time and reputable poster and/or moderater would have any Ideas for a program that I should write. Basically, I fear I am trying to push myself to hard and to fast with python. I really want … | |
I have played with Python code just a little and like it so far. I am using a Windows XP machine and have downloaded Python 2.5. As recommended in the "Starting Python" thread, I am saving my test files in the directory C:\Python25\Atest\. When I bring up the IDLE editor, … | |
Dear All i am totally confuse in how to explain the issue. i will try i am web master of one site [URL="http://www.makepakistanbetter.com/why_how_what_forum.asp?GroupID=5&Group_title=Pakistan&ArticleID=351&Article_Title=Burney’s%20concern%20for%20thousands%20underage%20missing%20jockeys%20in%20Dubai&ArticleFName=350-2-5.html"]www.makePakistanbetter.com [/URL] if you check this link,there is one issue you will be seeing there this txt 1 "Burney’s" but this is not what i entered. in the … | |
I just started with TASM 5.0, and I have a question. Is there a way to assemble the exe so I can use it in windows XP? I write TASM myproject.asm then TLINK myproject thats how I was told to do, but I cant run it in XP how should … | |
Hello again. I am writing a bulletin board script at the moment (Perl BB sound good :p )? While writing some code to update a text file I encountered this situation. I need to open the file, append data to the end, then set the write offset to a particular … | |
As far as i thought, this should work?? there is a spot or 2 i am concerned if i did it right though. Any ideas would be nice. It fatally crashes when ran in windows, didnt try in linux due to the fact i know it wouldnt work there either … | |
Hi Im interested in downloading pythhon and i was looking through the first steps to making a python script. This was in the tutorial " [B]Setting the path[/B] You will need to cause the directory containing the file named [B]python.exe[/B] to be listed in your system environment variable named [B]path[/B]. … | |
okay I am getting segmentation fault whenever I pass more than 300000 ints or so to be sorted....the code works fine for less than this with mergesort quicksort is sorting 100000 fine if they are in random order, but seg faulting if I sort a bigger number, or if the … | |
-If u have a slower I/O unit, then can the CPU execute instructions while waiting on slower I/O? -In this case, this type of optimization works differently for different I/O units... -So why are there no smarter .exe files that orders the instructions for your I/O-usage? -Whouldn't that be a … | |
[COLOR=#0000ff]Hi , Im new to asp.net and im need help connecting to an sql server 2005 databse in vb.net. I tried so many things and its still not working. I also need hep with inseting, updating and deleting data from a webform into the sql server database. Could anybody tell … | |
I thought function xrange would give me a list of integers, but I got a string instead: [code]x = "xrange(1, 5)" print x # xrange(1, 5) x = xrange(1, 5) print x # xrange(1, 5) same result as string above!? [/code] | |
Hi, I am new to PHP and need some help regarding some issues which I am facing in development of the contact form. Please look at the diagram at [URL="http://www.Photo-Host.org/view/392565untitled-1.gif"][/URL][URL="http://www.daniweb.com/techtalkforums/"]http://www.Photo-Host.org/view/392565untitled-1.gif[/URL] [IMG]http://www.Photo-Host.org/view/392565untitled-1.gif[/IMG] for the exact problem which I am facing. I have tried [B]header()[/B] for that issue but it didn’t worked … | |
I have posted items on my vb problem with detailes of my code to sort in vb with very little response, so i will be brief and present only my problem. The only practical advice I got was to search for arrays and sorting through search engines. Several of them … | |
2005/11/09 18:32:11, Event:Access, Door:entry, Card No.:2727, Description:266:55748 Date time event door card no. description +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2005/11/09 18:32:11, Event:Access, Door:entry, Card No.:2727, Description:266:55748 2005/11/09 18:32:13, Event:Access, Door:entry, Card No.:2345, Description:266:55732 2006/01/11 14:07:02, Event:Cover Removed Return to Normal, Door:5 2006/01/11 14:07:02, Event:Cover Removed Alarm, Door:5 2005/11/09 18:33:58, Event:Card No. Error, Door:entry, Description:266:51792 … | |
Hi All, I have a stored procedure which displays list of ADMITTED,QUEUED and DISCHARGED patients. The patient status is stored in a table. A represents ADMITTED patient, Q represents QUEUED patient and D represents DISCHARGED patient. I am using a dropdown to display the ADMITTED,QUEUED and DISCHARGED patients respectively. I … | |
Hi - I need some advice on how to force web controls to update. I have built a custom header and footer as two separate web controls, and have added them to the Toolbox. I can then drag and drop them onto any aspx web page. All has been going … | |
Hi All, First post here - so high hopes! I have created a rollover button that I want to use as a print button in DW MX but when I add Javascript print button code it doesn't work on my rollover. Can it be made to work or is it … ![]() | |
Hi i need to sum the values in different cells of an excel sheet which im getting from data base and which is in a loop and the number of entries depends on the user.Please help me out im adding the code please check it out: [code] <% Response.ContentType = … | |
Hello. I always use the same way to open an excel file (the same one that the one wich is used by another person in this topic: [url]http://www.daniweb.com/techtalkforums/thread26473.html)[/url]. But to create... there are problems. Let's see... To generate an Excel file... 1) If I use the method based in <% … |
The End.