199,114 Archived Topics
Remove Filter ![]() | |
Can someone guide me how to make menu in python please? [url]http://www.daniweb.com/forums/post693793.html#post693793[/url] This is a previous post of what sort of menu i need. Can someone just give me a start please. Cheers | |
[CODE]#include <mega8535.h> #include <delay.h> #define clk DDRA.0 #define dio DDRA.1 #define cs DDRA.2 #define diopin PINA.1 #define clkx PORTA.0 #define diox PORTA.1 #define csx PORTA.2 #define OUTPUT 1 #define INPUT 0 #define LOW 0 #define HIGH 1 // Standard Input/Output functions #include <stdio.h> // Alphanumeric LCD Module functions #asm .equ … | |
Hi all! I have an app using pygtk and in a separate thread I have a server responding to specific calls on port 1120. Everything works fine except one thing: When I exit my app, everything shuts own properly but if I start up my app again right after (and … | |
i am trying to write this program and i have no clue how to do it. Could someone help me please. thank you! a) The program implements insertion sort, merge sort, quick sort, and counting sort as subprograms or classes; b) The program reads input from a data file specified … | |
Hi all, am working in vb6. I have a situation wherein i have to open many files together and keep it in a folder and then start runnin one by one continously without any break. i have the codes for opening a single file and runnin it... how can i … | |
i need to write a C++ program that reads a sequence of integers and saves it into an array. Your program has to check whether each integer n in the sequence is perfect using a brute force approach. That is, your program should use all possible divisors of n from … | |
Hello All, I have been trying to copy a database from a local system to remote system using the mysqldump command.However, I am not able to do so.I just wanted to know syntactically where am I going wrong? Here are the commands I have tried: mysqldump database-name | ssh [email]myname@mysql.cs.abc.edu[/email] … | |
Does any one know how to use SQLite? Can anyone tell me how to convert populated MySQL tables to SQLite tables without using a DBConvert software? | |
A positive integer number n is said to be perfect if it is equal to the sum of its proper divisors. In other words, n is equal to the sum of its positive divisors excluding itself. For example, 6 and 28 are perfect numbers. Indeed, we have: 6 = 1 … | |
I'm trying to do the following: [code=java] private void butonActionPerformed(java.awt.event.ActionEvent evt) { buton.setLocation(500, 500); } [/code] but it doesn't do anything. Please help. | |
Hi all, How to find free physical memory... I am using new operator to allocate memory.. I tried GlobalMemoryStatus (windows api) to analyse the current free memory. new is giving exception still GlobalMemoryStatus shows sufficient free memory.. I am using visual studio 2005 for development. and I want to avoid … | |
Hi Friends, I have a small doubt about pointers, One of the Advantage of the Pointers is "FAST ACCESS" comparitively to variables My doubt is How can it be? a Pointer stores a variables address, whenever it accessed it goes to that particular address and retrives the value... Similarly,a variable … | |
Hi again. I have a gridview control on my page, and some search criteria textboxes, etc. When my user clicks 'Search', I want to show or hide an unrelated hyperlink based on the count returned by the grid. I'm having trouble figuring out when to do this. I started with … | |
[code] #include <iostream> using namespace std; template <typename T> T total(T numValues) { } int main() { cin.ignore(); cin.get(); return 0; } [/code] Write a template for a function called total. The function should keep a running total of values entered by the user, then return the total. The argument … | |
I am a newbie to c++... Today I was handed a assignment on "array"...While working on this...I've met plenty of errors... I wonder where did my steps gone wrong... May anyone out there borrow me a helping hand?? [CODE]#include <iostream> #include <iomanip> using namespace std; float calpricetopay(int[5],float[5]); // function declaration … | |
In c++ pre and post operator are used with variables where one need to just increment or decrement value by 1.For incrementing value ++ operator can be used and for decrementing -- operator can be used. Its use is very simple one can easily say ++i or i++, to increment … | |
We are an American company, doing business world wide, we have a lot of members coming on board in Russia, Estonia, Latvia, Africa and lots of other places. They are all asking for us to translate the web pages. So I programmed in a language translator, where we can give … | |
Hello guys, i am trying to write an insertion sort program with any values entered by any users but im getting some weird numbers. could someone help me see what s wrong with my code. this is my code: [code]#include <iostream> using namespace std; int main() { int a,b,c,d,e,f; int … | |
Here's my submission to sort a string of characters in numeric, then lowercase, then uppercase. It may be useful, it may be not. [code] Function SortStringUpperLower(ByVal strString As String) As String Try Dim arrString() As Char = Nothing Dim strReturn As String = String.Empty Dim chrPrevious As Char = CChar(String.Empty) … | |
I am preparing for a programming competition soon and for one of the sample problems one line of input is the length of the list of numbers and the second line is the actual numbers. this is what i have: void main() { int num; cin >> num; int items[num]; … | |
Hey I am trying to create a java chat server but I am get an exception: exception in thread main java.lang.arrayindexoutofboundsexception 0 I know it means the index is out of bound but can any please tell me what I am doing wrong, I want to assign the port = … | |
Hi, I am still new to C++ and I am having a little trouble compiling the following code, and couldn't figure out what went wrong: [CODE]#include <iostream.h> #include <string.h> using namespace std; float x = 5.0f; int _65Num = 65; int mian() { string str = "Hello World!"; cout << … | |
Having a problem setting user input to a dynamic array. It worked with a static array, but now I'm having some kind of pointer issue. The user sets the dimensions and enters in a number of characters, which should be set to the array 'gameboard'. it's just setting jibberish though. … | |
Good morning everyone. I am trying to develop a Web site with a search feature that will search a MS SQL database based on text entered into the "Last Name" text field of the search form. I have the search feature working somewhat however, there are some additional tasks which … | |
Hi, I've this script that takes care of picking phone number in standard format - xxx-xxxx, further i would like it to pick phonenumber even without hypen - xxxxxxx. How can i do that? [CODE] foreach $number (@numbers) { if ($number =~ m/(^\d{3}-\d{4}$)/) { push @results, $number; } } [/CODE] … | |
So are there any good piping & threading tutorials out there? | |
Hi Guys I was doing some reading up on data structures to refresh my memory when I came across the following: pmovie->title *pmovie.title source: [url]http://www.cplusplus.com/doc/tutorial/structures/[/url] pmovie is pointing to an instant of a struct. I know the arrow operator is a dereference operator for objects and I thought *pmovie.title was … | |
I'm struggling. I'm trying to make a website using the google weather API. Here's where I'm at: 1) I've got the PHP code working, and it gets the current temperature & images showing the forecast for the next 4 days. Simple enough 2) I decided I wanted to have a … | |
Hi all, How to find the free physical memory... actually i want to avoid the exception from new operator.. i have used the [B]GlobalMemoryStatus[/B] a windows api for this but new is giving exception still more memory available than i am allocating. I am using visual studio 2005 Please help … | |
Hello Everyone, I am banging my head since morning. please help me.. I am not so good at php..i am in learning phase... My requirement was to generate a popup once you immediately login. windows.alert('please call') then the popup should come for every 2 hrs. Even though you navigate to … | |
Hi, I am new in php.I want to use goto statement inside my program.But when i execute the below coding the blank page appears.This is the example program i referred in site. Coding: goto a; echo 'Foo'; a: echo 'Bar'; Help me.. Thanks :-O ![]() | |
This seems simple, but it's not working. There IS a text file in the same directory, but it's not being opened (and with the ios::in | ios::out, it should open even if it doesn't exist). I also ran into trouble trying to use infile.fail, which is why I used !infile. … | |
I have written a Python program that takes information from the user at the command line, and then saves this data in a PostgreSQL database. Now I want to wrap a GUI around my program. I am just starting with wxPython and have completed a few tutorials, but still can't … | |
Hello all, I'm trying for several days to learn how to implement a multicolumn DataGridViewComboColumn into my DataGridView. So I have a DataGridView in witch i have a ComboColumn, i need when i dropdown that ComboColum to have multipe column like a gridview or table. I hope that you understand … | |
Hi, I have code below works fine but I want links to be listed different way. If you want you can use my code, otherwise I am open for your codes. [COLOR="Red"]Original style: [/COLOR] Previous 1 | 2 | 3 | 4 | 5 | 6 | 7 Next If … | |
Hello, I am trying to write a function such as: [CODE] printValues(int nInts, int nFloats) ; [/CODE] nInts describes the variable number of int values passed, and nFloats describes the variable number of float values passed. Normally I would think of doing something like: [CODE] printValues(int num1, int num2, float … | |
I am trying to delete a file when my program draws itself (Using Visual Studio 2008). Currently using this method [CODE] public frmMainMenu() { InitializeComponent(); File.Delete("\\Program Files\\smartdeviceproject1\\SendXML\\1.txt"); }[/CODE] The path for the file is "\Program Files\smartdeviceproject1\SendXML\1.txt" Yet when the program is executed, breakpointing shows that the line is executed (and … | |
I need to match the content on web. For example consider I have one sample code,if i submit that code it should search on web and display the website url where that code exists. I need the code in asp.net and c#. anyone if knows how to do this Plz … | |
Hi, My site: [url]http://www.orchot-hagilboa.com/index.php?mid=1[/url] My jquery form is working properly in most areas except where i have an online wysiwyg editor. If you look at the right side of the site, you will see the editor. It creates a textarea form field. When i send the form, the reply_desc (textarea … | |
I am having issues with the following code of mysql when using the "not like" mysql command. My snippet looks like this [CODE]$name = something $sql = "Select * from table1 where table1.field1 not like ' $name ' ";[/CODE] What it should look like in phpmyadmin is [CODE]Select * from … | |
:S Friends. I want an table with one row of height 200px and another row with relative height of the table or expandable height in JSP page. Is it possible to create like it? I want an solution. I am badly in need of help. Thanks in Advance. | |
can anyone tell how to write in core java using command line arguments : a) to print prime numbers from 1 to n b) to calculate the length of input string c) to find whether the number is odd or even d) to convert dollar in rupees e) to accept … | |
Hello, I am new on this website. I don't know rather I am in the right place or not. I am currently in college and study to be web developer. I am doing good so far! I really need help on this small part. We are working on Mulipulating Strings. … | |
I have two tables 1) tblRequests and 2.) tblMainTags. The Fields in tblRequests are Tag_Request_No, Employee_ID , Accepted, Accepted_Date, and Accepted_Time. The Fields in tblMaintags are Tag_Request_No, Tag_ID, Completed, ... The fields 'Accepted' and 'Completed' are set to YES/NO. I want to display in a datagridview the two tables joined … | |
Hi I'm using [B]NetBeans + GCC[/B] in Linux and also [B]NetBeans + MinGW[/B] in Windows. I need to run an OS Command e.g.: [ICODE]java -jar myjar.jar[/ICODE] I prefer [B]not[/B] to have the terminal/cmd window. It works fine in Linux, but in windows, it ends up in opening a [B]cmd[/B] window … | |
i've been having trouble just figuring out the merging part of the code. here's the main. everything works except for the merge part that is at the end of the code. [CODE] main() { HeapSort heap1; HeapSort heap2; int one, two; int x = 0; int number1,number2; cout<< " Enter … | |
Hello, I'm stuck with this code and I can't figure out how to make it work. I need to get the Sum of Odd numbers from an array. For some reason it returns 0. I'm new to programming, so any help would be appreciated, thanks. Here it is: [CODE]#include <iostream> … | |
HI, I am quite new in this field.I am developing one C# web application .can you help me with following stuff. I want to Display images from a folder which contains nearly 1000 images. That image files in folder(means image itself) has names like 15_1,15_2,15_5,15_40,18_1,18_3... where first field is id … | |
hi! I am quite puzzled here. I have a program inwhich when the user clicks on the command button, a random line should appear but only once. I am storing each line with different variables. Right now i have the random line coming up but it is repeating itself. For … | |
This is the code i have for my stack program: public class MyStack { private int top; private int[] store; Stack(int capacity) { if (capacity <= 0) throw new IllegalArgumentException("Stack's capacity must be positive"); store = new int[capacity]; top = -1; } void push(int value) { if (top == store.length) … |
The End.