199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for brechtjah

Hey there everyone I'm a bit troubled with something I'm trying to construct, I'm trying to create an object that can reproduce itself, creating more objects that can be accessed also, to reproduce themselves. Each object would then be given a random name like: object1, object2 so they can be …

Member Avatar for Airshow
0
127
Member Avatar for gk0110

Hi friends, I need to do this: Scroll down the scroll bar grey out all my page and show a loading gif load, thru ajax, content from the db server turn off grey and loading gif update current page content. how can i do this without using jQuery? Many thanks …

Member Avatar for IllBeTheJudge
0
111
Member Avatar for Mattpd

I am trying to delete any line of text that contains "$npname" and the word "in." The script works if $npname is only one word, but if it is more than one work I get "error: unterminated address regex" How can I fix this? [CODE]sed '/'$npname'.*in/d' parts.txt > parts.tmp[/CODE]

Member Avatar for Mattpd
0
4K
Member Avatar for ffs82defxp

First Program - CalcPro.py How do I make labels like in Batch so that I can 'go to' or initiate certain blocks of code when needed? And what is the command for goto? Whats the command for cls (or in other words clearing the screen)? [CODE]while 1: import math print …

Member Avatar for snippsat
0
121
Member Avatar for xtian3

this is the output when enter 1 *********O* when enter 2 ********O** ---------------------------- 1*********O* 2********O** 3*******O*** 4******O**** 5*****O***** . . . . . . . help me plss tnx

Member Avatar for donaldw
0
196
Member Avatar for bigmaq

So i need help figurin out where my segmentation fault is comin from. Im not even close to finishing this program but i was just testing my progress so far to make sure that it was taking values correctly, but sometimes the program doesnt stop when its supposed to and …

Member Avatar for bigmaq
0
94
Member Avatar for ylchen

Hi all, I'm new to working with C++ (I'm more a C programmer) and I have a question: I have a container class for a templated type T, which could be any scalar type, although the most commonly used ones are unsigned char and float. I have a function that …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for manofspider

clienthint.js [CODE] var xmlhttp; var parameters=""; function showHint(url) { var myform = document.forms[0]; if (myform != undefined) { parameters = getRequestBody(myform); } if (url.length == 0) { document.getElementById("txtHint").innerHTML = ""; return; } xmlhttp = GetXmlHttpObject(); if (xmlhttp == null) { alert("Your browser does not support XMLHTTP!"); return; } xmlhttp.onreadystatechange = …

Member Avatar for manofspider
0
284
Member Avatar for ytregnn
Member Avatar for ytregnn
0
61
Member Avatar for Mr.PinkBunny

I've been studying VC++ for about 2 months, and I was working on my first game from a book (Game Programming All In One) The game is 'Craps', it's a dice game. Anyways, I've had a few prolems with the codeing, can someone help me? (Windows 32 Console) Here is …

Member Avatar for Tales
0
186
Member Avatar for futhonguy

Hi I am wondering if i can move a field (with contents) from Table B to Table A. If so how can i do it? Any advise ?? Thank you very much..

Member Avatar for futhonguy
0
94
Member Avatar for flipjoebanana

Hello, If I want to say compare a line at a given line number to another line at a different given line number how can I do this? I know I could iterate through the file and store the lines into a data structure and perform comparisons that way but …

Member Avatar for Ancient Dragon
0
105
Member Avatar for scriptkiddy

Hi, how is this done in assembly? [CODE=c++] ofstream writer("settings.ini"); writer << "launch: 1" ifstream reader("settings.ini") char buffer[MAX_PATH]; reader.getline(buffer, MAX_PATH); HANDLE hFile = CreateFileA(StubPath,GENERIC_WRITE,0,0,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,0); memset(&overL, 0, sizeof(overL)); overL.Offset = 0xffffffff; //end of file overL.OffsetHigh = -1; WriteFile(hFile, Settings, strlen(Settings), &dwBytesWritten, &overL); CloseHandle(hFile);[/CODE] How would I split a string in assembly? …

Member Avatar for NotNull
0
1K
Member Avatar for mahela007

I've just started learning tkinter for python. I'm a little curious as to how tk runs on different platforms. From another thread on these forums, l leaned that tk talks to the kernel. The kernel talks to the device driver which talks to the hardware. (Please correct me if I'm …

Member Avatar for mahela007
0
100
Member Avatar for dmcadidas15

I'm trying to write a program that will open a file named "data.dat". This file contains an unknown number of values that I need to have read and averaged together and is written such that each line has one value. I need to have the data in this file be …

Member Avatar for pythopian
0
109
Member Avatar for marlowkc

I cannot figure out how to do this. I have set the padding and border as 0 and tried the collapse border command. Here is my code: [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Untitled Document</title> </head> <body> <table border="0" …

Member Avatar for NormandP
0
118
Member Avatar for Calaesto

Hi, In my code I'm getting a weird error. It's caused by this piece of code: [CODE]response = SQLCommand.ExecuteNonQuery();[/CODE] The error: There is missing a ; at the end of the SQL-instruction. My eyes may be bad, but I clearly see a ; at the end of this piece of …

Member Avatar for DdoubleD
0
90
Member Avatar for jnthn205

[code] public static void displayBoard(final char[][] theBoard) { // note the final parameter - we won't change the board, just print it. // Need to format the board display to look like this: // | | // ----- // | | // ----- // | | System.out.println("Welcome to a game …

Member Avatar for jnthn205
0
102
Member Avatar for SharonSweeting

Hi, I am creating a project for my VB class, using VB 2008 Express, and I would like to be able to have the age of child (whose birthdate is a constant, in otherwords, it won't be changed or entered). I figure that I would need to use the "[B]Today …

Member Avatar for SharonSweeting
0
260
Member Avatar for Calaesto

Hi, I am trying to make a program that allows one to see a database (MS Access) and add items to the database. The database works perfectly (update and suchs) but the adding won't, sadly enough. The error I get is (translated as i'm using a Dutch version): Syntaxisfault in …

Member Avatar for mikiurban
0
140
Member Avatar for red999

I recently needed to add member functions like these into my class [CODE]istream& read(istream&) ; ostream& print(ostream&); [/CODE] I am a little confused on how to actually call these functions within my class. I am more familiar with overloading the insertion and extraction operator since the prototype for those makes …

Member Avatar for red999
0
299
Member Avatar for dmcadidas15

Im trying to access a variable in a list that is 3 places earlier in the list. For example list_1[dogs, cats, pigs, hamsters, kids]. If Im trying to access the word cats based on the position of kids how would I do that? I know list_1[4] returns kids and I …

Member Avatar for dmcadidas15
0
92
Member Avatar for psathish2

I am trying to disable the F5 key in Mozilla. I have the next code in javascript that it is working in Internet Explorer but it is not working in Mozilla. how can I disable the F5 key in Mozilla? Code: [code] function checkKeyCode(evt) { var evt = (evt) ? …

Member Avatar for Troy III
0
495
Member Avatar for antr25

Hi - I have a css drop down menu that hides behind a javascript photo gallery (in the main area of the page) in IE7. Not quite sure what to make of it. Any and all help is appreciated!! thanks

Member Avatar for laura_ci
0
194
Member Avatar for bpt0004

My program deals with the Genetic Algorithm and Hill Climber Algorithm. I have a program that compiles without any errs, its just the data is gives is incorrect. I explain my error on the bottom part of my post Header File [CODE]#include <iostream> using namespace std; //------------------------------------------------------------------------------ template<class T> class …

Member Avatar for Vash32291
0
111
Member Avatar for ImMoRtAl-

Please ok can any one give me the code to this im making a program and it needs this and im stuck please give code asap application that will convert any text I throw at it to hex Thank You

Member Avatar for sfuo
0
102
Member Avatar for LiamOB

Hi All, I am getting the message "input string was not in a correct format" about the line " numline[i] = Convert.ToDouble(num);" The program is supposed to read a csv and convert the fifth line of the file to an double array. The line to be read in looks like …

Member Avatar for DdoubleD
0
549
Member Avatar for Privoxy

Good morning all, So i have started teaching myself C++ in preparation for taking software engineering at university next year, after many hours i have managed to put a simple program together, Im just asking if someone can tell me on in the right track to understanding what each function …

Member Avatar for Narue
0
86
Member Avatar for pankaj.garg

hi, i am making an program in VB6 with access database....m inserting dates in the database at random....and want a listbox to be populated with first 3 dates starting after a particular date.... eg. input - 6 jan, 3 dec, 15 feb, 12 march, 10 dec, 7 june, 5 may …

Member Avatar for AndreRet
0
138
Member Avatar for reese27

I have a project that requires me to make a search engine for classes. If i were to enter Biology, then classes such as genetics, chemistry, anatomy and physiology are to show up. But the thing is i have the classes and their descriptions in a file and i was …

Member Avatar for donaldw
0
111
Member Avatar for rafta

Iam trying to code a single program of an array with 20 elements in it. It asks for a number from user and search is if this array has that number. I am using Binary and selection search. Its not giving me the required results. here is my code; [CODE]/* …

Member Avatar for vmanes
0
115
Member Avatar for benregn

Hi, I need some help with a school project. This is what I have done so far: (Sorry about the wall of code) [code=java] public abstract class State { private double drinkPrice; private double amountPutIn; private String selection; public State() { } public State(double drinkPrice, double amountPutIn, String selection) { …

Member Avatar for benregn
0
2K
Member Avatar for Ponomous

So this is a matching game, flip over two cards, if they match they stay up if not they flip over again. I have the matching system and coordinate system working. My problem is that when i use my array of zeros to "hide" the numbers, all that is ever …

Member Avatar for Ponomous
0
100
Member Avatar for OnIIcE

Hi im messing around with some jQuery and want to disable a link whilst it performs a ajax post (its adding/fetching somthing from a database) and i want to disable the link so it cant be multiclickd. [CODE]<a href=\"#\" id=\"seepages\">See Page</a>[/CODE] ive tried using [CODE]$("#seepages").unbind('click');[/CODE] but that dosnt work! =( …

Member Avatar for Airshow
0
269
Member Avatar for njam

hey guys I'm kine a new to pygame and i want to make a space game but i dont know how to make the screen folow my ship. if you have any info on this plz let me know. Thanks :)

Member Avatar for njam
0
74
Member Avatar for SKANK!!!!!

im using the php mail() function to send an email and i got the email. except its formatted wrong like it looks like this: [CODE]<table bgcolor="black"><tr bgcolor="#111111"><td bgcolor="#222222" width="60%"[/CODE] etc.. u get it right? i use gmail. now ive had images sent in mails to me. so why is this …

Member Avatar for SKANK!!!!!
0
136
Member Avatar for kurt_tna
Member Avatar for username4
0
108
Member Avatar for Israelsimba

i know that a select statement is the best way to go around retrieving records from a database. the problem im facing is selecting a record then assigning a certain field from that record to a variable eg x..... so in simple english, it has to be something like....select clientnumber …

Member Avatar for AndreRet
0
133
Member Avatar for jorgejch

Hello, I've started with python (3) recently. Initialy only for scripting. Now I'm trying the object oriented bit. I'm getting the following error message [CODE] <Atom.Atom object at 0x7f0b09597fd0> Traceback (most recent call last): File "./Main.py", line 7, in <module> print (t.getAtomName()) File "/home/jorge/Documentos/projetos/mestrado/códigos/cartesian_zmatrix/Atom.py", line 22, in getAtomName return atomName …

Member Avatar for woooee
0
591
Member Avatar for Calaesto

Hi, I'm stuck on some tables from MS Access. I have the following: Items: itemId(PK), Naam Combo: comboId(PK), Naam Combineren (combination): ID(PK), itemId(FK), comboId(FK) I want my app to show ComboNaam with ItemsNaam in my dataGridView in the following form: [CODE]string queryString = "SELECT Combo.Naam FROM Combo ORDER BY Naam"; …

Member Avatar for mikiurban
0
97
Member Avatar for mahela007
Member Avatar for ITech

can anyone help..plz i have a form called transaction view.in this form there is two datetime picker.dtpstart and dtpEnddate.i want to pass these two values to report such that the report will display transactions occured in the range specified by th e datetime picker there are 3 tables in my …

Member Avatar for DdoubleD
0
477
Member Avatar for ihtesham4deni

Problem Statement: File Handling in C/C++ On the basis of the given scenario create a file Expenses.txt, Open the file and copy into another Expenses2.txt, Also show output on screen A college has announced the total budget of 50,000Rs.for each game. Games are done four times in a year. Take …

Member Avatar for donaldw
0
117
Member Avatar for jk2005.jeeva

Hi Anyonem, could you please explain clearly about the order of evaluation of increment, decrement operators in an expression in C? Thanks in advance..

Member Avatar for kommuru
0
380
Member Avatar for lacompsr

The aim of the program was to Write a short assembly language program which creates a divide by zero trap and modify the isr so that you change the error message that the isr issues. stepintr.asm << the sample isr << built in system trap message he said. stepintr.asm contains …

Member Avatar for NotNull
0
159
Member Avatar for ov3rcl0ck

I'm trying to strip HTML tags and replace certain tags with newlines and tabs. I just can't figure out a function to do this, any ideas? I'd prefer to use regex instead of a library.

Member Avatar for jlm699
0
109
Member Avatar for rajeesh_rsn

Hai friends I need a simple (?) advice in one of my web page. I had developed a web application in one of its page there are many number of checkboxes. Users are need to select single or multiple check boxes. But there is a limit for each users. ie …

Member Avatar for rajeesh_rsn
0
103
Member Avatar for spekulanta

Hi there, here what my problem is - I'm trying to get data from MySQL database put in on global array and make calculation. The data in the MySQL table is 3000 rows and 2 columns. The type of data is double and date Here is the code: [CODE] #include …

Member Avatar for spekulanta
0
126
Member Avatar for mpdillon

I created a new class project. I added a new COM object. The .ddl contains a single Public Function and one Public method. The method contains one line of code, a msgbox. I have "Register for COM interop" checked in the Project>Configuration>Compile page. I have ComVisible(true) in the AsseblyInfo.vb file. …

Member Avatar for mpdillon
0
151
Member Avatar for ubundows

Hi to everyone. I'm a beginner at Java and I'm studying a software develoopment course right now. I have a problem with my first assignment. In particular with the last exercise of the assignment that is about writing a program that shows a character distribution with a counter that shows …

Member Avatar for parry_kulk
0
132

The End.