199,126 Archived Topics
Remove Filter ![]() | |
guys..I would like to ask for some help. Im trying to read 10 integers in a text file and store it in a array. the problem is when I display it the numbers are treated one by one instead of putting them all together. For example when I display array[0] … | |
How to get the NAME of the passed parameter ? Eg. in the example below how to get printed , inside my_func() , value = "test_var" [code] def my_func(aaa): [INDENT]print aaa # <---- this will print the VALUE of passed parameter 'aaa' [/INDENT] [INDENT]# ..... but how to print the … | |
Hi i have created an static table having from,subject,date etc and i am just able to display i have created inbox in the front end how to link.....these table to inbox...i have this code but what is this fuction getdata.....how to proceed just help me pls...... [code=php] <? function getdata($tble,$field,$whr) … | |
I am a newbie ...and i m working on a casetool....named Coolgen... Which Generate the jsp pages.... now i have added a html control on my page...... <input id="demo1" size = "10" onBlur="magicDate(this);validate1();" > Now there is a onther field.... which is ool gen field.........whose id is 'PUBLISH_DATE' i want … | |
[B]hi all, i try to move it to the up and resize it but i can't, can an one help me, by give my the code for this frm [/B] | |
I have 2 table in a ms sql database prod_curs_test and rebuturi_test. I want to update some fields in prod_curs_test with data from rebuturi_test. I used this to do that: [code] update dbo.prod_curs_test set dbo.prod_curs_test.cant_rebuturi = (SELECT dbo.rebuturi_test.Cantitate FROM dbo.rebuturi_test CROSS JOIN dbo.prod_curs_test WHERE dbo.rebuturi_test.Comanda = dbo.prod_curs_test.Comanda) where exists (SELECT … | |
I am selling my game I created, with all Copyrights and everything. I have it up and running at e-mafia.uni.cc I currently have register down, because I am selling it. Login with details:Username: Xavier Password : deeman Then email me if you want them or not, I have been working … | |
Hi to all, I have the following problem, I don't know if is possible to solve: I have number of threads working, and I want that every thread to wait in some part of the code, until all the threads reach that part. I'll explain may self: 1. In the … | |
Hi, I have a script to abstract a .txt files end with (*.dly). My problem is, I had to repeat the task by changing the file name manually. I need to abstract 100 files in a folder. Can somebody show me how to change my script so it can read … | |
Hi, Could anyone help me to pass user name and password to another jsp page for testing from database without showing it in URL that what user has entered? | |
Hi I was trying the code written in the following URL http://support.microsoft.com/kb/117565 to get the information about the page size But when I try to run the program I am getting the following errors: `CMyView' has not been declared `CSize' was not declared in this scope `CMyView' has not been … | |
My problem is that I am not receiving all of the data that I should be. I am only receiving 7 records rather then receiving 12. Is there a time limit that a socket can recieve for? Is there something else that could be my problem that I would not … | |
i am new to c#. I want to write a windows app that will display a txt file in a new window. | |
Hi, I don't know much about javascripts. I am preparing a module in PHP in which I have to validate data entered by a user through javascripts. Now there is a field in which I have ensure that the value entered by the user already resides in the database. How … | |
Hi, pls find the attachement and tell what should i do....i have got stuck up.......i am not able to proceed.........pls help.............if u have the code of how to create an inbox.....give me the entire code.......... | |
I have a list of choise. All i want to do, is when i click on a element - to show the string of that element. Suppose i click on "Pizza" element, then i should to get at console (with System.out.println()) the word -Pizza. Any ideas or example will be … | |
I am working on a web-based app, and I need to implement a function whereby it checks the dates daily, and send reminder email automatically. May I know how can I do that? I saw some websites that mentioned about Console Application and Windows Scheduler. Is that what I need? … | |
I am writing the following program that calculates the average of a group of test scores where the lowest score in the group is dropped. It has the following functions: [LIST=1] [*]void getScore()-should ask the user for a test score, store it in a reference parameter variable, and validate it. … | |
What version of MS access is compatible to VB 6.0??? And any other application beside of access you can suggest. Thanks a lot... | |
Hi i have created an static table having from,subject,date etc and i am just able to display i have created inbox in the front end how to link.....these table to inbox...i have this code but what is this fuction getdata.....how to proceed just help me pls...... [code] <? function getdata($tble,$field,$whr) … | |
I am working on the following Java application Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate’s name, the votes received by that candidate, and the … | |
actually, i want to display back all checked value in checkbox..In my form, there is some checkbox element where the user should check necessary value b4 submit the form....My problem is, once the user has submit the from, i can't retrieved only checked value.....it display all value including unchecked value … | |
I have two methods that when prompted by the user will print out n amount of String on m rows, for ex: * 3 3 would print out: *** *** *** here is the code I have: [ICODE]public static void writeLine(String c, int n) { if(n==0) System.out.println(); else System.out.print(c); writeLine(c, … | |
I'm trying to create a contributor class with one enumerated type. I took the member functions from the header and put them in a cpp, but I get an error for the enumerated type when I try to compile. Is it because I haven't written a code body for that … | |
I have 2 problems -- 1. When I try having IDLE list the modules of python it gives me this error: [code]Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> help() File "D:\Programs\Python\lib\site.py", line 346, in __call__ return pydoc.help(*args, **kwds) File "D:\Programs\Python\lib\pydoc.py", line 1648, in __call__ self.interact() File … | |
Greetings, I have a problem with CF code, and I assume it is because I am new to ColdFusion. I've searched the Web, the Adobe pages, the Forums here, tutorials, etc... I just can't find the answer to what I imagine to be a fundamental of CF. I just inherited … | |
Hi, I'm wondering, whether is there any other methods to save the shape into a file? Meaning that I've already drag few shape and I wanted to save all the shapes, their position, their colour. What I'm thinking now is, getting all the shape's coordinate, colours, size and save it … | |
Is there a way that after you store something, such a Rectangle, to an object variable, say, Object x, that you can then look at object x, and determine it is indeed a rectangle, allowing you to use Graphic methods such as draw on said object? | |
I have a class called Thing that defines vector<string> stuff. I have no problem declaring anything I want inside "class Thing" itself or functions from it, like "void Thing::bob" works fine. My problem is when I inherit this class. For some reason I get my program terminated. pseudocode: [CODE]Class Thing … | |
So for my assignment, I'm supposed to fill ten strings from a file using an array of pointers. Now I know I'm doing this wrong since my compiler is telling me that there are errors on the levels of indirection. Pointers are so confusing... >_> [code] char* pStrings[10]; char** pWalker; … | |
Hi guys. I have this problem, i have a script which is handling file uploads. when running it on my local machine (WAMP--Apache 2.0; PHP 5.1.4) the script works well and all files are uploaded well. However on using the script on my server (LAMP -- Apache 2.0; PHP 5.1.4) … | |
Hello, I am having problem with strings within structs and was wondering if someone could help. I have a struct, i.e. [code] #include <stdio.h> #include <strings.h> struct feeling { char *emotion; char *emotion_options[20]; int num; }; [/code] which i then pass to a function via reference, i.e. [code] int main() … | |
Hey guys i have an application where i assign values to the type of sale it would be -- here's my code -- [code] procedure TPaymentForm.OkButtonClick(Sender: TObject); begin //ID 1 - Cash Sale IF (CashRadioButton.Checked) Then BEGIN //Opening Data Source and Stuff, Setting The Columns and Stuff Data.Statement_Entries_Table.Append; Data.Statement_Entries_Table.FieldByName('customer_id').AsInteger; Data.Statement_Entries_Table.FieldByName('date_time').AsDateTime … | |
hi guys, I found a simple whois script and intregrated it completely into my site before testing it on IE (oooops!) and it only works on firefox and safari. On IE the result text that should be written as a result of the below section of the code: [CODE]if (eregi('No … | |
I started Python, imported Tkinter assigned Tk() to root, imported snack and initialized it. i then made a sound object, read a sound from the hard drive and then played it. i couldn't hear any sound though. any idea what the problem may be? | |
Hi, I have a program: [code] def AdjacencyMatrix(dim, pairs): matrix1 = (zeros((dim,dim))) for (first,second) in pairs: matrix1[first,second]=1 matrix1[second,first]=1 print '\nAdjacency Matrix\n' print matrix1 [/code] But I get an error: TypeError: 'int' object is not iterable Can anyone help? Thank you! | |
Hi. The objective os to open a file and print 55 lines of content at a time. Since I am still learning 'C', my code (thus far) may appear slightly neophytic ;) [CODE=C] #include <stdio.h> #include <stdlib.h> #define SIZE 1000 void pause( void ); int main( void ) { FILE* … | |
Is there any inbuilt function in C language by which one can directly access image contents? | |
I am very new with XML, no experience. I am trying to import an XML file into Excel. The XML file will import into Excel fine, but when I go to export the Excel file back out to an XMl file I get error messages. The error messages are: "List … | |
Hey, I decided I should probably read a book to learn about C++ considering there are so many and etc :P. My parents said they would buy it for me, but I just wanna make sure it is gunna actually be a book that will teach me alot and hopefully … | |
[code=cplusplus] #include <iostream> using namespace std; const int capacity = 20; string tax_payers[capacity] = {"jane", "tom", "jerry", "joe", "annie", "mary", "kate", "steve", "sarah", "paul", "petra", "peter","elaine", "noreen", "sean", "niamh", "donal", "john", "marie", "colin"}; double income[capacity] = {21000.0, 16500.0, 120000.0, 16000.0, 38000.0, 62500.0, 14500.0, 28500.0, 13500.0, 27500.0, 15000.0, 44000.0, 18000.0, 21000.0, … | |
I am using Visual C++ 2005 (native C++) For the following code, the different of main function 1 and main function 2 is main function 1 using }catch(MyException &e){ but main function 2 using }catch(MyException e){ Which is more correct? if both are correct, which is better? [CODE]//========This is MyException.h===== … | |
So I got such exercise: You have array of 1000 elements they all are random numbers from 1 to 1000 and there is only one duplicate number. You can access each array member only once, can you find duplicate value? And you can't create another array. You can create some … | |
Hi I am using Dev Cpp for dos programming. I want to know how we can add classic style user interface to programs. The interface like in which we control the menus etc. through arrow keys not mouse. The interface like when we press F2 button at the start of … | |
Question is : Write a function [code=c++] int f(char* str, long pattern) [/code] to find out how many pattern does the str contain? str is a char array consist of '1' and '0'; for example: str = "11010101110101011110100011001" ,pattern = 110; My solution is change pattern and str to std::string, … | |
I have written a program in which there is a board and the balls should travel from one place to another.i need to provide a delay when i draw the ball in new position and erase it from previous position.I used delay() funtion on turbo c++.but on gcc compiler on … | |
I'm working on a problem in the File Processing chapter of my C book, and I've run into a few problems. I'm sure they are probably minor but I've been playing for a while and can't figure out why they are happening. First: When printing a text file containing the … | |
Hi I have problem with calling jsp using <a href> in scriptlets. Not able to call the jsp. I used the following code. but not able to enter in to ozCmnDeleteEntity.jsp. please give me solution. [code] out.println( "<a href=\"ozCmnDeleteEntity.jsp?objType=PROJECT&objId="+prj.getProjectId()+"\">"); out.println("</a>"); [/code] thanks in advance... | |
Hi Everybody I am stuck can somebody help me please. I am testing a very small portable barcode scanner. After scanning I need to upload the scanned data. I am in VB6 I am using the mscomm1 control I tell the scanner to send the data. I have a [B]OnCom[/B] … | |
hi friend i have a problem in coding a program it states that you have to take input of suppose ten players and their team with their batting average there may be all tn different team or any but less than ten and i have to sort them by their … |
The End.