132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for d1e9v85

hi guys ... this is a bubble sort program that i made [code=cplusplus] #include<iostream> using namespace std; #include<iomanip> using std::setw; int main() { const int arraysize = 10; int Bubble[ arraysize ]; cout << "Please enter 10 integers: " << endl; for ( int i = 0; i < arraysize; …

Software Development c++
Member Avatar for White_2
1
765
Member Avatar for vegaseat

You can put an image and text on a Tkinter button widget. This small code shows you how. The GIF image file you want to use for the button should be in the working directory, or you have to give it the full path. Incorporate the Python Image Library (PIL) …

Software Development file-system gui image python
Member Avatar for neon_3
1
23K
Member Avatar for jan1024188

Most common quiestion is: [quote]Is there any C++ GUI API?[/quote] My answer is MANY. There are many API's for making GUI applications. Here are some. [B] 1. WinAPI: (C based)(MFC is C++ based)[/B] [I]Its a great API and the best solution if you are windows programmer. First code will look …

Member Avatar for sreenivasula
1
110K
Member Avatar for Jezer

Hello i am creating the assembly program that accepts a single character and display the alphabet . The requirements are (1) The input character should be displayed (2) The input of the single uppercase letter should be displayed the lowercase letter. (3) The alphabet should be displayed horizontal position and …

Software Development assembly
1
212
Member Avatar for Adm666

Just as the title says im trying to get the sum of a string's characters values, but in a recursive way and without for loops i tried to do this, but it says that a return type required? private stringSum(String s, int i) { if (i==a.length) return 0; return ((int)s.charAt(i)+ …

Software Development java
Member Avatar for Dani
1
166
Member Avatar for vegaseat

A little calculator written in BCX basic and then translated to C code and modified to compile with Dev C++ (GCC/G++). Once you find your way past the standard GUI gibberish you can figure it out. For those who need some hand holding with the Dev C++ IDE: In the …

Software Development c++ gui ide
Member Avatar for rproffitt
1
6K
Member Avatar for DaleGriff

Hi I've recently downloaded Vpython and python3.1 I have been impressed with the 3D animation ability of Vpython and playing around with the sample code available. I am a physics teacher and would like to make some interactive simulations to use in class. Is there any way that Vpython and …

Software Development gui python tkinter visual-studio
Member Avatar for 令佳
1
2K
Member Avatar for inkcoder

Well if you were like me and Python is your first language. You are trying to learn programming and many people suggested that learn Python as a first language. You take their advice, your download Python and get all set up. Maybe you take a tutorial or two in order …

Software Development gui python tkinter
Member Avatar for Gabriel_9
1
49K
Member Avatar for JamesCherrill

This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 solutions to printing the contents of a multi-dimensional array of arbitrary dimensions - although in fact all the solutions will …

Software Development data-structure java
Member Avatar for JamesCherrill
1
462
Member Avatar for Reo_1

hey guys i am trying to create a library management system which is supposed to be used to store/keep infp for the library and the library members( book title, author, name and picture for borrower and other stuffs). The app has 6 buttons, delete, save, add,previsous,next, and upload( for upload …

Software Development app-store microsoft-access vb.net
Member Avatar for Reo_1
1
322
Member Avatar for 華星

import requests import pandas as pd import csv from bs4 import BeautifulSoup from pandas import Series,DataFrame import unicodecsv def name1(): url="https://www.agoda.com/zh-tw/pages/agoda/default/DestinationSearchResult.aspx? asq=%2bZePx52sg5H8gZw3pGCybdmU7lFjoXS%2baxz%2bUoF4%2bbAw3oLIKgWQqUpZ91GacaGdIGlJ%2bfxiotUg7cHef4W8WIrREFyK%2bHWl%2ftRKlV7J5kUcPb7NK6DnLacMaVs1qlGagsx8liTdosF5by%2fmvF3ZvJvZqOWnEqFCm0staf3OvDRiEYy%2bVBJyLXucnzzqZp%2fcBP3%2bKCFNOTA%2br9ARInL665pxj%2fA%2bylTfAGs1qJCjm9nxgYafyEWBFMPjt2sg351B&city=18343&cid=1732641&tag=41460a09-3e65-d173-1233-629e2428d88e&gclid=Cj0KEQjwvve_BRDmg9Kt9ufO15EBEiQAKoc6qlyYthgdt9CgZ7a6g6yijP42n6DsCUSZXvtfEJdYqiAaAvdW8P8HAQ&tick=636119092231&isdym=true&searchterm=%E5%A2%BE%E4%B8%81&pagetypeid=1&origin=TW&cid=1732641&htmlLanguage=zh-tw&checkIn=2016-10-20&checkOut=2016-10-21&los=1&rooms=1&adults=2&children=0&isFromSearchBox=true&ckuid=1b070b17-86c2-4376-a4f5-d3b98fc9cf45" source_code=requests.get(url) plain_text=source_code.text soup=BeautifulSoup(plain_text,"lxml") for a in soup.find_all("h3",{"class":"hotel-name"}): b=a.string.strip() print(b) csvfile=open('hotel.csv','w') wr=unicodecsv.writer(csvfile,encoding='utf-8') for item in b: wr.writerow(b) csvfile.close name1() I use python3 and win10 to write this code. I …

Software Development microsoft python
Member Avatar for 華星
1
332
Member Avatar for opman234

Please , help me. I could not find crystal report view control in my toolbox. I am using visual basic 2010. I don't know if I need to add something. Thanks

Software Development vb.net visual-basic
Member Avatar for samuel_11
1
3K
Member Avatar for AutoPython

Okay, I'm trying to make a python game (not with pygame), I want it to use the arrow keys. But the thing is, I don't know how to get it to respond to the arrow keys. So here's what I want to do. If the user presses the up arrow …

Software Development python
Member Avatar for Gribouillis
1
49K
Member Avatar for J.C. SolvoTerra

There are many examples of compressing files in VB.Net. So many of these examples are using third party libraries which is just not neccesarry. People were saying that files and archives exceeding 4Gb couldn't be used... I hate restrictions and decided to "Stick it to Microsoft" To get a better …

Software Development vb.net
Member Avatar for Cristhian_1
1
2K
Member Avatar for Churchillrl

Hi, I am working on a personal vb.net project that will allow me to capture a full-sized image of a given web page. I've been working on this for a few of days and have not found a method that is 100% reliable. Here's what i have tried so far... …

Software Development vb.net web-browser windows-api
Member Avatar for _1_18
1
4K
Member Avatar for spiriad

Hi, I am trying to make small game , but I am confronting with a problem. I have a function that should add a new button to my form when it's called. The problem is that I don't know how to create a new object (a button, a shape or …

Software Development c++ ide
Member Avatar for Itamir
1
3K
Member Avatar for Violet_82

Hi guys, I wonder if you can help. As I've started as a programmer, I've been told I have to practice OO a bit more. I've done the theory, but I think I will have to take another look at it. , Above all though, I have to do exercises. …

Software Development java
Member Avatar for AssertNull
1
613
Member Avatar for nitin1

Hi, I have been working in Java for more than 8-9 months now. I want to have deep understanding of Java concepts now. For ex: Collections properties, threading, interfaces detailed concepts etc. I mean I have been using all these things for a while now but want to know about …

Software Development java
Member Avatar for nitin1
1
299
Member Avatar for Awulonu

I need the code for fingerprint capturing using vb6 and also which control do i use in achieving it.

Software Development visual-basic
Member Avatar for Asela_2
1
10K
Member Avatar for Smith5646

As I dig deeper into the capabilities of Visual Studio, I have seen that you can have multiple projects in a single solution. I must be missing something because I can't come up with a reason to ever do this? My guess is that I don't understand the benefit. So, …

Software Development vb.net visual-studio
Member Avatar for Bryan Anthony
1
2K
Member Avatar for Louie_Rave

Hello, I'm just new here. I wanted some people to help me with my project. We were tasked to do a game using Turbo C. I already found some games that has source codes like snake, tic toe, etc. I wanted to be slightly different 'cause I know my classmates …

Software Development c
Member Avatar for markanderson4
1
4K
Member Avatar for Mr.M

Hi Dw. I have a MS Access database that has 9 columns what I want to do is to retrieve all data from a database only on 5 columns. I think I have to use the `select * from data` but I don't know how to select the columns I …

Software Development microsoft microsoft-access vb.net
Member Avatar for Mr.M
1
862
Member Avatar for nitin1

Hi, I am creating a form in jsp. <form action="" method="post"> <input type="hidden" name="status_1" value="0" /> <input type="checkbox" id="status_1" name="status_1" value="1" /> <input type="hidden" name="status_2" value="0" /> <input type="checkbox" id="status_2" name="status_2" value="1" /> <input type="hidden" name="status_3" value="0" /> <input type="checkbox" id="status_3" name="status_3" value="1" /> <input type="submit" /> </form> I was …

Software Development java java-jsp
Member Avatar for AndrisP
1
512
Member Avatar for Suzie999

Hi folks. I'm looking for some pointers on how to "stream" a video file which is online. I have no control over its location it could be http://anywhere.com/ontheweb.mp4 for example. In my browser if I put the link into the address bar, it will simply download it to HDD. I …

Software Development file-stream streaming-service video
Member Avatar for kamilacbe
1
684
Member Avatar for ddanbe

Sometimes you only want to enter numeric data in a textbox. You have two options here : Let a user type whatever he/she wants into a textbox, validate the input and show him or her an annoying message that he/she has done something wrong.:angry: Or: capture the key before input, …

Software Development
Member Avatar for noface0711
1
3K
Member Avatar for jatin24

Hi, Im trying to include the feature of automatically generating a word document through C# using a pre-defined template. Im able to insert 'mailmerge' fields in the word template documents at specific locations, and accessing these through the code in C#. I can update the values of these fields, no …

Software Development c c# c++
Member Avatar for vnikitha
1
3K
Member Avatar for savedlema

Greetings Daniweb! Just recently, I was able to integrate a Fingerprint device to my application. Can now scan fingerprints and save them to database using the INSERT TO syntax. But I can't get my application to match scanned fingerprint to one already stored in the database, so that I could …

Software Development mysql vb.net
Member Avatar for rubberman
1
2K
Member Avatar for Diamonddrake

I am working on a combination productivity and source/version control app. One of the features i would like to add might sound crazy, but I would like to substitute the User's windows Desktop folder with the project files "Working Directory" That way, until the the software is exited, or the …

Software Development windows-vista
Member Avatar for Kelly_5
1
864
Member Avatar for vegaseat

If you have a long message to display in a large readable font, then this little Tkinter GUI toolkit code might help.

Software Development gui python tkinter
Member Avatar for Mohamed_65
1
4K
Member Avatar for TrustyTony

Sometimes we want to not split by every space character, but we want to split only on those outside of brackets and quotes. This way we can have for example quoted string as single argument for command. EDIT: 1. Added hierarchical nesting of same kind of brackets. 2. Bunching multiple …

Software Development python
Member Avatar for gamesbook
1
3K
Member Avatar for BenedekFekete

We have someone with Outlook 2010 from an old system that is no longer is use. Outlook 2010 still works because it's using an OST file to see the emails. How do I convert the Outlook 2010 OST file in to a PST file and use on our New O365 …

Software Development
Member Avatar for BenedekFekete
1
113
Member Avatar for FlamingClaw

Our text file contains 10 words,and located in C:\ drive,we will read this data into an array and write out the results to the screen Created by FlamingClaw 2009.04.26.

Software Development pascal
Member Avatar for gurisa
1
3K
Member Avatar for ThisIsMeOrIsIt

public class MazeArray { public static void main(String[] args) throws FileNotFoundException{ File inputFile = new File("maze1.txt"); Scanner sc = new Scanner(inputFile); int maze[][] = null; maze = createMaze(sc, maze); mazePathFinder(sc, maze); printMaze(maze); } public static int[][] createMaze(Scanner sc, int[][] maze){ int arrayRowSize = sc.nextInt(); int arrayColumnSize = sc.nextInt(); maze = …

Software Development java
Member Avatar for stultuske
1
322
Member Avatar for priyanka.choudhary.90038

Hi, I have one doubt in my mind that why below programme ended up in infinite loop if return NULL statement is commented. pthread_cond_signal will take control out of loop and gracefull exit is done from consumer thread . #include <pthread.h> #include <stdio.h> pthread_mutex_t mutex; pthread_cond_t cond; int buffer[100]; int …

Software Development c
Member Avatar for rubberman
1
220
Member Avatar for SpiritualMadMan

I have a form from which I can launch various Test Modules. The Form has 16 PushButtons, one for each of the possible Modules. I need to disable Button_2 through Button_11 until the Modules that are connected to Button_1 and Button_0 are succesfully completed. The Buttons are on a pyQT …

Software Development python
Member Avatar for Gribouillis
1
7K
Member Avatar for Geekitygeek

It is a common design in data handling applications to move from form to form to show the user different information. I have seen any number of different attempts at this on the boards so i thought I'd throw together a short snippet to show a cleaner OO way to …

Software Development web-design
Member Avatar for jacss1x
1
3K
Member Avatar for hefaz

Hi all, i am doing my project. i need one search box to find something i write in the box, how can i code that? its very important please help

Software Development seo visual-basic
Member Avatar for hefaz
1
254
Member Avatar for COKEDUDE

BESIDES having to do a bunch of unnecessary iterations in a for loop with strlen doesn't it also produce weird behaviors? http://www.cprogramming.com/tips/tip/dont-use-strlen-in-a-loop-condition The documentation uses size_t instead of int. I believe I got weird behaviors when it happened. I didn't write it down when it happened so I can't remember …

Software Development c
Member Avatar for ddanbe
1
245
Member Avatar for Luckychap

This is a program for Encryption and Decryption This program uses the Simple Data Encryption Standard (SDES) Algorithm. This Algo takes 8-bits of plaintext at a time and produces 8-bits of ciphertext. It uses 10-bits of key for Encryption and Decryption.

Software Development algorithm c++ encryption
Member Avatar for overwraith
1
13K
Member Avatar for DaveTran

I am moving an object around from one node to another. I need to tell the object to stop moving when it has reached its destination node. I am currently using this algorithm for movement and node checking [CODE] if (!isFinished) { // If the level has arrived at the …

Software Development algorithm
Member Avatar for Chris_33
1
2K
Member Avatar for Miurei

I need help about this, I've been working for this a quiet while... I want to log-in using one login form for both admin and normal user but after log in, some of its form and/or buttons in the form should not be available for normal users. here is my …

Software Development open-source vb.net
Member Avatar for Miurei
1
7K
Member Avatar for ddanbe

Some time ago, I needed to know the pathname of my running application, in order to create a temporary file. As it seems ther are alot more options than I thought. So I applied all I could find in this little snippet. I also used the full names to make …

Software Development file-system
Member Avatar for Teme64
1
2K
Member Avatar for marky101

Good day! I want to know how to pass a value to reportviewer textbox. I want to pass the value of a datetimepicker to reportviewer textbox. How can I do this? Both reportviewer and datetimepicker are in the same form. any help is much appreciated. Thank you.

Software Development asp.net vb.net
Member Avatar for Karunya_1
1
5K
Member Avatar for LibraryCode

![jframe.png](/attachments/large/4/0b8af77defcb3e49ffd02bbff7d6281f.png "align-center") Here is the jframe above,images selected at random,the task is after image is displayed,choose from jcombo the answer,press submit and display in jtextfield below the answer:"Correct" or not.And untill the submitt button is not pressed ,disable the next button.How would i do this logic? So far i have …

Software Development java java-swing
Member Avatar for JamesCherrill
1
759
Member Avatar for ddanbe

One of the most, if not THE most, beautiful formulas in math, is from Euler: ![Euler_e_pi_i.png](/attachments/large/1/b32f45540a27b3efc328d14c60ee286c.png "align-center") It combines in it a relation between the number **e**, the number **Pi** and the complex number **i**, plus the basic math symbols 1, +, = and zero. Is that not amazing? More …

Software Development c# mathematics
Member Avatar for JOSheaIV
1
616
Member Avatar for ddanbe

After reading this excellent [code snippet](https://www.daniweb.com/software-development/csharp/code/492766/display-excel-data-in-a-datagridview) by djjeavons, and just trying to learn WPF, I decided: "Well, let's translate that to WPF!". It was a bit harder than I thought, but a great learning experience! Her's how my screen in action looks: ![WPFscreen.png](/attachments/small/1/ac05d33ccd8a190d0576fa063e54749f.png "align-left") Things that changed compared to the …

Software Development asp.net microsoft microsoft-office
Member Avatar for ddanbe
1
552
Member Avatar for ddanbe

Inheritance with generic types can sometimes be tricky. If you would inherit from a Stack<double>, no problem, but what if you want to keep it as generic as possible? Maybe it's a bad idea, but I wrote something like `class Stacker<T> : Stack<T>` and in Stacker I implemented some arithmetic …

Software Development oop
Member Avatar for JOSheaIV
1
778
Member Avatar for belalhamdy

I'm tring to develope newcamd virtual server i have read the newcamd protocol documentation there is some missed Points the newcamd protocol uses 3des encryption 112bit CBC Mode point one : what is the padding mode?? point two : what is the vector key?? another thing for example i spyed …

Software Development c++ client-server encryption
Member Avatar for Zurab
1
759
Member Avatar for vegaseat

The example shows how to establish a dictionary of (row, column):value pairs to mimic a two dimensional array. This can be easily expanded to more dimensions. Python3 has dictionary comprehension, making the process of creating a dictionary of this type easier.

Software Development python
Member Avatar for vegaseat
1
7K
Member Avatar for BustACode

Note: In Python 2.7 use: `from __future__ import print_function` to use examples. In Python, by default, the key and value pairs in a dictionary are stored as hashes, therefore dictionaries do not retain the order in which values were added, and cannot be ordered. v_Dict ={} v_Dict["First"] = 99 v_Dict["Second"] …

Software Development python
Member Avatar for DragonMastur
1
480

The End.