199,114 Archived Topics
Remove Filter ![]() | |
HI! I have a problem: I want to initalize a class by a condition. For example: [CODE] class something: def __init__(self,a): self.a = a if self.a == 0: #break initalization else: #continue initalization [/CODE] How do I break the initalization? Thank u and sorry for my english! | |
i ned elp in using do while loop.. the program must be in like the username and the password.. when the pasword is incorect that you have already assigned it is backing into the beginning.. when the password is correct it ends.. the username is kulot the pasword is 1234 … ![]() | |
I am loading a perl script that creates 2 arrays - 1 with a list of id's for classes offered and another with # of students already registered for each class (from a flat file that already exists) How can I reference the array values generated by the cgi scipt … | |
I have to ge t the result using call by reference. I'm receiving 4 errors??? from my understanding, I have 'declared' total before main. Quite frankly, I'm not getting why not declared it on display_output nonetheless?? and why total is still not being recognized?? Thanks in advance for the help! … | |
what's wrong with this statement? adobau.RecordSource = "SELECT * FROM tblbau WHERE year(Bau_datum) => " & Jahr_beg & "AND year(Bau_datum)<= " & (Jahr_beg + intyears) | |
Hey guys, i have a linkedlist called CDArtist and one called CDTitle. i have all the functions and classes written and working except one which i have no idea how to. I need to be able to delete a CD by the name of the title or artist but this … | |
hi every one I want to weite a pice of code that if specific condition happened I set the focus on a textbox. I prefere that have a colornotification as well. any one knows how to do that.in vb.net express | |
I'm a newbie working on a program in C# .Net 2003 I'm trying to resize my user controls to populate them on another form. I've already coded a program in .Net 2005 in it I used auto size my user control through the properties window... 2003 doesn't have that as … | |
can anybody pls tell me the full examples of address operator overloading,assignment operator overloading stream insertion operator overloading and stream extraction operator overloading? | |
Hi all, In my MFC application I've create two buttons, OPEN and CLOSE, used to open a text file and close it. I do it as follows. [CODE=cplusplus] void CSRFToolDlg::OnBnClickedOpen() { char* ReadFileName = "G:\\Work On\\CPP\\SRFTool\\text_file.txt" ; if(openFile.Open(ReadFileName, CFile::modeCreate | CFile::modeReadWrite)) { AfxMessageBox("File creates successfully", MB_OK) ; } else { … | |
I am currently studying how to use ASP, i really am having difficulties in web desining because my only background is html...but now we are using vbscripts and etc....any tips for me to understand it better...and where can i find terminologies? thanks... | |
I'm attempting to write a function that scans a number from the user as a string and converts the string to an array of int type, then reverses the order of the array and puts zeroes where no scanned data exists (eg. program says "Enter a number up to 5 … | |
Dear pro web developers, This is a basic web developer and wanna you to help me. I want to make Forum site on my LAN what should I do and what should I use? I see the most forum site which are exactly the same with the same template,are they … | |
I want to know how to copy the mysql database on my development PC to mysql server on my production PC. Please, anyone who knows how to go about this should help me. Thanks! JNORA | |
I have to take in a list of song names. When the user types in "mmm" then it stops, and it spits out the first and last song titles in a sorted list (alphabetically). This is what I came up with, and there's many an error, all seemingly bool errors. … | |
Hi friends, Can you pls tell me about "[B]explicit template instantiation[/B]". Suppose I have a simple program : 1. File : TClass.h [code] #ifndef CTCLASS_H #define CTCLASS_H template<class T> class CTClass { public: CTClass(T t1, T t2); ~CTClass(); T add(); private: T cm_T1; T cm_T2; }; template<class T> CTClass<T>::CTClass(T t1,T … | |
What is the best way to submit sensitive data (social security, driver's license, etc.) over the internet. I also need to store it in a database where an administrator could access the info. I may be looking at either open-source solutions or outsourcing this to a company to limit my … | |
Hi all Newbie to visual basic. I need to create an application to read and write in information into database. It is a prototype that y i choose to use Access as my database. I am having problems connecting database to VB. I choose Microsoft Access as data source. It … | |
Hi All I have created a script which will email output if the file contains data, this works. But when the file contains 0 data, it tries to email but hangs, when i hit ctrl D, it ask for Cc: address, i then cancel this then it emails me out. … | |
Hi everyone...good day to you all....I am looking for more information about RR Scheduling....you see I started to do my project in our OS subject which is FCFS program and RR program....and I finish with FCFS program but the problem is I can't start the RR program because I don't … | |
Hello Everyone, I was trying to figure out why this particular mysql_query() doesn't return false and how to deal with it. First of all, I have a table (call it table1) with only one row in it. The one row has a 2 in the user_id column. So when I … | |
Could someone please give me an idea on how to do this? Suppose you have a group of people that needs to be transported on buses and vans. You can charter a bus only if you can fill it. Each bus holds 50 people. You must provide cans for the … | |
Hi all, I have a case. Example: In Windows, I click a test.doc. my program running than it showmessage test.doc. and and then I click again dodol.doc.. my program is running... and it show message dodol.doc. any program I open.. It show the message (the file name).. How to create … | |
Hi everyone, I'm new here and I'm looking forward to seeing how everyone codes in python. I'm a complete newbie, who has never done any programming in his whole life (except for the past 2 week). I read the guidelines about asking for help on assignments, and I wouldn't have … | |
Can someone tell me why this SQL Command at the end is not working? I am a noob, but I have tried everything I can think of and I am getting nowhere. There is no literature on how to do something like this... It would have to be my first … | |
I'm trying to simulate a typewriter effect in an applet. I have a main box and input box which I want to copy the input text letter by letter in to the mainbox. The problem I'm having is when I try to sleep it sleeps the whole time then prints … | |
I am trying to get this program login to work with sessions. I don't know what I am doing wrong, but part of my code is displaying on the page instead of just my login form. Here is my code [code] <?php session_start(); $_SESSION['name']= "test4"; define('DBSERVER', 'localhost'); define('DATABASE', 'dbname'); define('USER', … | |
Okay i am trying to make a lock this is my code: [CODE]#include <iostream> using namespace std; int main () { char key [10]="abcd"; char answer[10]; cout<< "password:"; cin >> answer; if( key == answer) cout << "correct"; else cout << "incorrect"; return main(); }[/CODE] when ever i try to … | |
I wish to a write a program that creates an array of 100 random integers in the range for just argument sake from 1 to 200 and, then use a sequential search to search the array 100 times using randomly generated targets in the same range. Can anybody please help … | |
Help! I need to copy a char array initialized as a string from one array to another, using a function containing one line of code. Here is the code: [code]#include <iostream> using namespace std; void cpystr(char *instr, char *outstr); void cpystr(char *instr, char *outstr) { [COLOR=red]//Insert line of code here[/COLOR] … | |
I am having troubles with a program I wrote to count letters in a string. Here is the program: [code=C]#include <stdio.h> #include <stdlib.h> #include <string.h> int i; int length; int ascii; char cipher[3]; int letters[26]; int main() { char cipher[10] = "ABC"; /*Or an inputted variable, but that's not important … | |
i wrote a program with switch statements and now i have to write with while loop the same programram. Please say me where i am worng. my if program: [code=c] char letter ; printf("enter the antibiotic sample >>>>> "); scanf("%c", &letter); switch (letter) { case 'N': case 'n': printf("Perform standard … | |
I am currently trying to write a program that: [quote]Write a program to count and print out the number of copies of the letter 'e' that are found in a pre-specified string. (By "pre-specified", I mean you should declare and initialize the string right in your program, rather than reading … | |
Write a C++ program that will read user's full name into a C-string. User will enter first name followed by one or more spaces and then the last name. Also, obtain user's student ID also into a C-string. Pass the name and ID obtained along with another C-string to a … | |
I'm new to C++.. and killing my brain to find this 1 error and cannot figure it out!! I don't understand why square cannot equal true??? or false?? this is my 3rd program for my class to turn in!! Any help would be appreciated!! Eddy //This program allow the user … | |
hai, me again, i would like to create a data report by adding the report labels and textboxes at runtime. Is there any ways to add the controls to a report dynamically | |
I have a project where the user selects from 4 combo boxes, and I want to "Keep Score" based on their selections in those combo boxes They pick the 1st item in the 1st cbo box, it adds 1, if they pick the second item, it adds 2 and so … | |
Hi all, I'm a beginner in JAVA studying SWING. I learned that if we want to handle an event for a event source(say JButton) we should implement corresponding Event Listener(say ActionListener) . I also understood that we should register the Listener with that event source. With that knowledge I tried … | |
HI CAN U PLS HELP ME IN ADDING SOMETHING TO THIS PROGRAM TO BE LOOK GOOD. HERES THE PROGRAM I'VE MADE. #include <stdio.h> #include <conio.h> int a,b,c; int main() { clrscr(); printf("Enter Number:"); scanf("%d",&c); switch(c) { case 1: printf("\t\t\tJanuary 2007"); printf("\n\t"); for(b=1;b<=51; b++) { if(b==51) printf("=\n"); else printf("="); gotoxy(9,3); printf("Sun\tMon\tTue\tWed\tThu\tFri\tSat\n\t"); … | |
I'm having problems writing records to an output file. When I do it in Textpad running on Windows, the output file looks fine. When, however, I copy the script to a Linux machine and use the exact same code, it appends a ^M character on each line written to the … | |
Hello, I am working on a project and I need to go to multiple news web sites and get articles pertaining to stock numbers. My ideas so far have been to download an RSS file from somewhere like Google Finance, and then extract the links out of there, follow them, … | |
Will someone help me on how I should start this? I am trying to write a program that will find the average of a series of integers and store the result in the BX and AX registers. e.g Main array = 4, 1, 28, 11, 2, -28, -7 The result … | |
![]() | i have done a simple program, which i asked..(don't know how many days ago.) but i find that there is a problem.. if i give an input (for example) 1234 it shall reverse back 4321 (it does) when i key in 100, by right it should return 001, but it … |
hi how to disable the url in browser.for ex:http:\\localhost:8080\webapp\one.jsp; but i need http:\\localhost:8080\webapp.user must not know the wat jsp he is using. Iam not using frames.plz reply.thankx in advance | |
Hi guys, I wrote: [CODE] <?php $WACnt=33; while($WACnt>=0) { require("Wordsarray.php"); $enn=preg_replace("/".$normal[$WACnt]."/i",$tidied[$WACnt],$enn); $WACnt--; } ?> [/CODE] The browser said: [B][QUOTE][B]Warning[/B]: Unknown modifier 'g' in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] [B]Warning[/B]: Compilation failed: nothing to repeat at offset 0 in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] [B]Warning[/B]: Unknown modifier 'b' in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] … | |
Hi, i've been trying to create a program for implementing high/low pass filters on images. I get the data from a 24 bit .bmp file using the old file handling techniques. The file handling portion of my program works like a breeze, it is the arrays that are giving me … | |
i am new with c++ and as i was going through all the post i found a reserved word i.e. namespace. i am unable to know what do u mean by this and as i was trying to run the program there was a error telling "namespace name required". i … | |
I am making a form which will take inputs such as email, password etc. And the form checks whether it is a valid email id or password, if not an alert is being shown such as invalid email-id.. I have done this with java script.. Now I would like to … | |
Hi, I have seen this problem before, I cannot find a solution. I am using ASP with an access database. I have a form that is has a combo box called resno displaying school names and resno IDs the Resno is the stored value and is a text field. FormCode: … |
The End.