199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Yee

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!

Member Avatar for Yee
0
296
Member Avatar for jumar01

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 …

Member Avatar for iamthwee
0
102
Member Avatar for jvallee

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 …

Member Avatar for ~s.o.s~
0
370
Member Avatar for eddy518

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! …

Member Avatar for ChaseVoid
0
132
Member Avatar for plusplus

what's wrong with this statement? adobau.RecordSource = "SELECT * FROM tblbau WHERE year(Bau_datum) => " & Jahr_beg & "AND year(Bau_datum)<= " & (Jahr_beg + intyears)

Member Avatar for plusplus
0
113
Member Avatar for nnobakht

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 …

Member Avatar for Ezzaral
0
186
Member Avatar for apchidara

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

Member Avatar for apchidara
0
175
Member Avatar for GRaymer

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 …

Member Avatar for GRaymer
0
86
Member Avatar for gaggu82

can anybody pls tell me the full examples of address operator overloading,assignment operator overloading stream insertion operator overloading and stream extraction operator overloading?

Member Avatar for cerf_machine
0
75
Member Avatar for eranga262154

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 { …

Member Avatar for eranga262154
0
125
Member Avatar for ian_tec234

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...

Member Avatar for bsvnhll
0
149
Member Avatar for geekychick

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 …

Member Avatar for hollystyles
0
119
Member Avatar for divya.padukone
Member Avatar for ashkan3030

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 …

Member Avatar for jbennet
0
279
Member Avatar for jnora

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

Member Avatar for kaykays
0
103
Member Avatar for HoldenCfld

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. …

Member Avatar for HoldenCfld
0
100
Member Avatar for amt_muk

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 …

Member Avatar for amt_muk
0
182
Member Avatar for jpl80

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 …

Member Avatar for world_weapon
0
79
Member Avatar for Deidre

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 …

Member Avatar for debasisdas
0
94
Member Avatar for skelly16

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. …

Member Avatar for masijade
0
89
Member Avatar for mragot

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 …

Member Avatar for jwenting
0
254
Member Avatar for world_weapon

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 …

Member Avatar for world_weapon
0
147
Member Avatar for Sembhi

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 …

Member Avatar for Sembhi
0
171
Member Avatar for dodol

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 …

Member Avatar for dodol
0
101
Member Avatar for Eclipse77

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 …

Member Avatar for jrcagle
0
176
Member Avatar for Atlantistwo

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 …

Member Avatar for Atlantistwo
0
152
Member Avatar for ob1wan

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 …

Member Avatar for Ezzaral
0
120
Member Avatar for thunderbbolt

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', …

Member Avatar for thunderbbolt
0
130
Member Avatar for toko

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 …

Member Avatar for toko
0
125
Member Avatar for Robin_Dragon

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 …

Member Avatar for Narue
0
2K
Member Avatar for nquaoser

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] …

Member Avatar for n.aggel
0
338
Member Avatar for mooseguy

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 …

Member Avatar for Aia
0
83
Member Avatar for furpacino

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 …

Member Avatar for Ancient Dragon
0
160
Member Avatar for Exsiss

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 …

Member Avatar for Aia
0
85
Member Avatar for anga08628

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 …

Member Avatar for Ancient Dragon
0
167
Member Avatar for eddy518

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 …

Member Avatar for twomers
0
303
Member Avatar for savi_karthika

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

Member Avatar for linodnunes
0
141
Member Avatar for ironwood9

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 …

Member Avatar for williamrojas78
0
143
Member Avatar for parthiban

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 …

Member Avatar for parthiban
0
106
Member Avatar for restrooms

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"); …

Member Avatar for twomers
0
225
Member Avatar for peterv6

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 …

Member Avatar for trudge
0
143
Member Avatar for stupidenator

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, …

Member Avatar for trudge
0
162
Member Avatar for smithyluke

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 …

Member Avatar for virtual
0
119
Member Avatar for kohkohkoh

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 …

Member Avatar for Narue
0
181
Member Avatar for balagangadharm

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

Member Avatar for jwenting
0
94
Member Avatar for Pro2000

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] …

Member Avatar for Pro2000
0
195
Member Avatar for rghai6

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 …

Member Avatar for rghai6
0
124
Member Avatar for kamlesh_ag07

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 …

Member Avatar for ChaseVoid
0
97
Member Avatar for rime

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 …

Member Avatar for ~s.o.s~
0
108
Member Avatar for downsy42

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: …

Member Avatar for SheSaidImaPregy
0
179

The End.