199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for trihaitran

My *.py script has some non-ASCII characters in comment lines and when I run it I am getting the following warning: sys:1: DeprecationWarning: Non-ASCII character '\xe5' in file /Users/haitran/Documents/Sophomore UCB/Python/cedict.py on line 118, but no encoding declared; see [url]http://www.python.org/peps/pep-0263.html[/url] for details The thing is I went to the indicated page …

Member Avatar for trihaitran
0
162
Member Avatar for eddie-jdp

Hi all, I am new to windows programming. I am currently using Delphi. Is there a way to tell how much total memory (including virtual memory) is currently available on a computer. As far as I am aware... Delphi programs start out automatically with an address space of 1 or …

Member Avatar for eddie-jdp
0
188
Member Avatar for babutche

Hello, I am trying to create a program that uses a dictionary to associate American states with their capitals. It has an interactive loop that exits when the user enters "quit". The user types the name of the state and the program responds with the state's capital. I will show …

Member Avatar for babutche
0
6K
Member Avatar for sTorM

Hi all, How can make the output not to repeat again for many players. here is part of code. [code] struct { int face; unsigned int value; } card[13] = { {'2', 2},{'2', 3},{'2', 4}, {'5', 5},{'6', 6},{'7', 7}, {'8', 8},{'9', 9},{'X', 10}, {'J', 13},{'Q', 12},{'K', 11}, {'A', 1} }; …

Member Avatar for Ravalon
0
111
Member Avatar for l36963

Hi, I am pretty new to C/C++, and would like some tips on writing the code fo my first 'try' I am trying to write a programme that marks exams and such and calculates grades. I am not looking for somebody to write it for me, well if you want …

Member Avatar for WaltP
0
231
Member Avatar for sneekula
Member Avatar for diya_deve

I have a radio button i want it to bind with database field when i click on the radio button it will call the value n get displayed all data in textbox given. how to do it

Member Avatar for nikkiH
0
130
Member Avatar for Shefali

hello all i m having a really silly problem. i have written some codes with mscomm, but i dont know why all of a sudden i m having this problem. the problem is: [CODE] Private Sub Form_Load() With MSComm1 .Commport=1 .Settings="19200,N18,1" .InputLen=0 .PortOpen=True '(Here the error message says that the …

0
80
Member Avatar for irfan.motiwala

i am developing a application that if i want to send sms from my application to my client mobile.what language i would use presently my application is in vb6 and also in asp

Member Avatar for Dukane
0
108
Member Avatar for unclepauly

heres a question: i understand that array insertion is carried out in constant time - O(1) - but if the array is 2D (n*n), then would this still hold true if i wanted to insert the same value into each array? let me explain a bit better, if i have …

Member Avatar for unclepauly
0
126
Member Avatar for angus1910

why my randomize commond doesn`t work in my pascal program? i used many loops in my program which i put the randomize after the first begin of the program. Is there some one can tell me how to place the randomize command in a complicated pascal program! :rolleyes: THX...........

Member Avatar for Lord Soth
0
327
Member Avatar for Siva_sbj

I am writing a C program using Dev-CPP. It uses a 3 dimensional array to store around 350 values as shown below. [code=c] db[2][0][1]=3278; db[2][0][4]=2368; db[3][0][3]=6686; db[2][0][6]=7224; .. .. .. [/code] I get a valid output when I read the array with the following code [code=c] zone = db[2][0][1]; printf("%d",zone); …

Member Avatar for Siva_sbj
0
126
Member Avatar for bluebird

hello, What problems will I encounter if I use Array although I don' know how many elements need I store? If I set the array size very large than I expected, can problem arises anymore? I tried to use Arraylist. But when there are many attributes, I always declare a …

Member Avatar for aviasoorya
0
141
Member Avatar for wandie

I have made a list of names and everytime i want to select a value in the listbox it should give me a result in the Entry box can someone please help me. This is my listbox values [code] musicfolder = [ ["CollegeRock/"], ['RnB/'], ['HipHop/'], ['Build/'], ['Buy/'], ['Techno/'], ['Jazz/'], ['Classic/'] …

Member Avatar for wandie
0
5K
Member Avatar for ashneet

I made a small program which will encrypt my files using xor encryption method. It work but to encrypt 11MB file it take like 20 mins. any suggestions on how to make it faster would be nice. This is the function that encrypt (this is a thread): [code] [COLOR=#0000ff][COLOR=#0000ff]public[/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000] encrypt()[/COLOR] …

Member Avatar for Lord Soth
0
116
Member Avatar for Maidomax

Hey Guys, there's a simple problem I can not solve, and neither can my friends. How do I shut down the computer in C#. I am trying to make an aplication that would shut down the computer after a countdown closing all other active applications, so that I can go …

Member Avatar for Lord Soth
0
167
Member Avatar for mattyd

Simply, I need to understand the basics of button binding. I have researched [URL="http://www.pythonware.com/library/tkinter/introduction/events-and-bindings.htm"]this[/URL] already and have decided just to ask for instruction. For example, one of the programs I am building currently will require, at a certain point, user input; I want to be able to know when a …

Member Avatar for sneekula
0
94
Member Avatar for dubeyprateek

I am a C++ programmer, I have a good hands on C, C++ and WIN32, however i don’t know MFC much. I am willing to learn C# and i am looking for few guidelines. It will be a great help if anyone can tell me how to start with it. …

Member Avatar for sedgey
0
193
Member Avatar for sTorM

hello, pls find out why code is not work for solitaire game... Thanks in advance.:rolleyes: code: [code=cplusplus] #include<iostream> using namespace std; /*****CLASS PLAYING CARD*****/ class PlayingCard { private: int rank;//integer 1-13 int suit;//integer0-3 char color;//red('r') or black('b') public: PlayingCard(int,int); PlayingCard(); void display(); ~PlayingCard(); const static int diamond; const static int …

Member Avatar for John A
0
224
Member Avatar for vatsal17

I want to write various programs using ' Loops' in C language but new to C .please solve my query

Member Avatar for TylerSBreton
0
85
Member Avatar for gabs

[COLOR=#555555]I want to use static buttons with invisible background to the text. does anyone know how to do that? I have a picture in the background, and when I use a static button, it has a gray background, which doesn't look nice at all....:-| ![/COLOR]

Member Avatar for jwenting
0
87
Member Avatar for Matt Tacular

I have searched google, but found nothing, I'm not even sure if this is what you call it. But in my program I am writing, if someone hits enter by mistake without entering anything, it errors, is there a way to avoid that? Another error that happens is if the …

Member Avatar for bumsfeld
0
186
Member Avatar for d_1386

Write a program that can simulate the following CPU scheduling algorithms: 1. FCFS 2. RR (new processes are added at the beginning of the ready queue, the quantum is one time unit) 3. Priority based 4. SJF non-preemptive 5. SRTF The program can be written in either C or Pascal. …

Member Avatar for Salem
0
264
Member Avatar for secret

Hi Dani, i am a computer programming student learning the Pascal language. I wish to ask for your help in furnishing me with two pascal games which i can study and and improve on, or probably writing my own codes. I like the pseudocode for the games and the procedure …

Member Avatar for JJarvis
0
378
Member Avatar for TheBiochemist

Hello all - I've got an interesting problem that I can't seem to solve, so any input on this would be greatly appreciated. I have a group of web pages. I'm passing several variables back and forth between those pages successfully. One of the variables is called sntime. Essentially, it's …

Member Avatar for blitz123
0
120
Member Avatar for babutche

Hi, I cannot figure out why my fib problem is giving me the output below. I just want it to print when the fib is called and the value of n, when it returns and with what value of n, and the return value. This is what I have so …

Member Avatar for babutche
0
129
Member Avatar for jatin_surati

Hello All, I need a help from you all ,I have a big problem right now I am developing a stock market related site where I have to calculate XIRR return of investment and this is in built function of excel So wht I want is to take data from …

Member Avatar for jatin_surati
0
150
Member Avatar for nuwan243

06)How can we turn on and turn off the serial ports’ DTR and other pins………? When we transfer a file from one computer to another is there need to configure these pins or they are automatically configured?

Member Avatar for JRM
0
119
Member Avatar for LawnGnomeNinja

I do not want the full program, as you all know because of the rules. What I do need though is a place to start because I have no idea what I need to do. I'll post the problem. For the purpose of this program, a widget is a fictitious …

Member Avatar for needs_help
0
123
Member Avatar for sportsnut941

program AreaofRectangleOrTriangle; uses WinCrt; var Base, Height, RectOrTrian, Area, CharUserInput: Char; Begin (*Enter R or T*); Writeln('Enter R for Rectangle or T for Triangle'); Readln(CharUserInput); (*Enter Base and Height*); Writeln('Enter Base '); Readln(Base); Writeln('Enter Height '); Readln(Height); (*Give case statement and formulas*); if (CharUserInput = 'R') or (CharUserInput = 'r') …

Member Avatar for needs_help
0
84
Member Avatar for babutche

Hi, I am trying to figure out how to print tracing information for Fibonacci numbers. output = Computing fib(4) Leaving fib(4) returning 3 Can anyone steer me in the right direction? This is what I have: [code]import math def fib(n): if n < 3: return 1 while n >= 3: …

Member Avatar for woooee
0
111
Member Avatar for Wavanova

Ok, i just started using pascal, since I went to a college open evening, and they told me in the first year of the course I wish to study, i would be learning pascal. This is not a homework assignment of any kind, this is just me messing around with …

Member Avatar for codewritinfool
0
143
Member Avatar for unclepauly

if an algorithm takes a total time of T(log n + n^2), is this big O(log n + n^2) or simply big O(n^2) ?

Member Avatar for unclepauly
0
65
Member Avatar for jan1024188
Member Avatar for ~s.o.s~
0
125
Member Avatar for sTorM

I just writing the simple twenty one card game...now evth work and fine. And I put cards from 2 to A with concerning value.But when the debug step coming '0'comes to input with value '10'(K is worth 10 etc). It make me so confused. here is my code: [code]#include <iostream> …

Member Avatar for sTorM
0
104
Member Avatar for khusani

I am developing a page with many of AJAX methods. what i want to do is, inside a javascript function, there is a loop. inside this loop i want to call the AJAX methods and retrieve the response text. when i do that i recieve an exception telling me that …

Member Avatar for nemo5
0
173
Member Avatar for hbmarar

hi, I am a new bie to this concept of AJAX....but the demo trial with a select element went fine. What i tried? I created a html file and a drop down menu.based on the option the the information is displayed to the right of menu. What i want is …

Member Avatar for nemo5
0
278
Member Avatar for John P.

Hello, im trying to compile few .java files but i'm geting error message: GraphicsHandler.java:62: ';' expected for (Player p : server.playerHandler.players) { GraphicsHandler.java:67: illegal start of expression }}} I just don't know what to do... ----------------------There is my GraphicsHandler.java-------------- public class GraphicsHandler { public static int[] GFXspot = new int[5001]; …

Member Avatar for jwenting
0
99
Member Avatar for Wreef

Hello Everyone, I was just wondering if people could tell me what they think is the best way to learn C++, and link to some tutorials maybe? Recomend a book, ect. Maybe I havn't found any good tutorials....But the ones I have seen aren't very good. Help Apreaciated. Brendan.

Member Avatar for WoBinator
0
647
Member Avatar for JRM

Hello again! I am using code blocks with the gcc compiler and the gdb debugger (which is a little buggy itself). If i have a program running in debug that requires an input from the keyboard to continue, how do i do that?

Member Avatar for JRM
0
108
Member Avatar for ClevelandMark

I am writing a VB.NET 2005 Win Form that is used with scanning a barcode. I have an Access db that I need to compare a barcode value in a textbox with a matching value in the datagridview. I am thinking I should write a loop to locate the same …

Member Avatar for ClevelandMark
0
93
Member Avatar for bud594

I seem to have an intermittent issue with the following code segment. I am installing an application which has an associated excel add in which I register and then run the on open macro. The formula then calls one of the functions from the add-in. The script fails at the …

Member Avatar for bud594
0
774
Member Avatar for catty50

hi, I am new to programming ! I am just writing match game ! I am trying to move the letter to concerning place .. so I created two dimen-array for it .. but I have problem with moving those to concerning place .. here is my some code of …

Member Avatar for Ancient Dragon
0
132
Member Avatar for anjutalks

Hello, i really need code for creating a binary search tree from pre-order and post order traversals.......and print its output in post order and level order traversals....pls help...

Member Avatar for iamthwee
0
63
Member Avatar for Matt Tacular

is there an easy way to detect if the entire contents of one list are in another? if I have a list like this: li = [1,2] and I have another which will have random values, I want the program to do something only if every value of li is …

Member Avatar for vegaseat
0
174
Member Avatar for nuwan243

08)Can we read from a port while write to the same port? When we short the TX and Rx pins the value TX can be captured from the same port as a data read from port?

Member Avatar for SpS
0
174
Member Avatar for nuwan243

09)What is the purposes of register used in c++.in c++ help they are used more examples and they are used memory addresses……How can we find the specific functions of memory addresses used in programming?Ex int() and int86() functions….. [B]#include<stdio.h>[/B] [B]#include<iostream.h>[/B] [B]#include<conio.h>[/B] [B]#include<dos.h>[/B] [B]#define VIDEO 0x10[/B] [B]void movetoxy(int x, int y)[/B] …

Member Avatar for Ancient Dragon
0
154
Member Avatar for cty

Anyone know where is my mistake? The error show when i click on "buy" in product.php. Please guide me. --------------------------------------------------------- Error shown: Fatal error: Call to a member function fetch_row() on a non-object in C:\test\kelly.php on line 14 ---------------------------------------------------------- [PHP] //product.php <?php include("db.php"); $db=new mysqli('localhost','root','','test'); $db->select_db('test'); $query="select * from book …

Member Avatar for php_daemon
0
107
Member Avatar for sTorM

Thank for most who helped me to find out random fun before.. I am new to programming .. I just writing simple twenty one game.. Now my random out is like that ... k 5 6 q j .. mix char and int together randomly.. it might be suck..! now …

Member Avatar for sTorM
0
104
Member Avatar for petzoldt01

Hello, I am fairly new to PHP, although I am fairly familiar with c++. I am just looking for some good php websites. I am interested in Content Managedment Systems and MemberSystems. I am not exactly looking to download someone elses code. I am instead looking for tutorials, that teach …

Member Avatar for mouseyear
0
125

The End.