43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Niloofar24
Member Avatar for vegaseat
0
6K
Member Avatar for diazv2

I want to create a login form by taking the text written on the notepad file in the same folder . is there anything that can help me

Software Development visual-basic
Member Avatar for diazv2
0
115
Member Avatar for SkateX

Question: It seems my code won't work while looping. It's a simple password verifier, however entering subsequent passwords will return the same invalid as the previous password. The simple answer might be to set boolean values under the do so they reset everytime the loop runs. But if I do …

Software Development java
Member Avatar for SkateX
0
561
Member Avatar for somjit{}

My Program is about Directed Graphs. It reads a list of edges like : `25 589` , and puts 589 into the adjacency list (a linked list) of 25. My input file has about 5 Million such `v w` edges, with about 800K nodes/vertices, for each of which there will …

Software Development c c# c++ file-system linked-list
Member Avatar for somjit{}
0
472
Member Avatar for billgreene1313

I've been working on a program that generates 100 random, 3-digit numbers and displays the sum of all 100 numbers. For every 10th number displayed, I'm trying to add a message next to the number stating " is the 10th number." So far, I've only been able to display said …

Software Development
Member Avatar for billgreene1313
0
202
Member Avatar for safaklx

I have a question about game programming with c. I should add a background music on my game, and the same time i want to move my character on it. i used that way for solution PlaySound("sample.wav",NULL,SDN_SYNC); playing music ok but i cant move my character...

Software Development c
Member Avatar for safaklx
0
118
Member Avatar for 00Gambit

from tkinter import * from random import randint #Return random color #RRGGBB def getRandomColor(): color = '#' for j in range(6): color+= toHexChar(randint(0, 15)) return color #Convert an integer to a single hex digit in a character def toHexChar(hexValue): if 0 <= hexValue <= 9: return chr(hexValue+ord('0')) else: return chr(hexValue …

Software Development python tkinter
Member Avatar for vegaseat
0
176
Member Avatar for nate9603

I've compiled a working program, for whatever reason, is returning 0 values for the output. I'm not sure why this is happening. I've been troubleshooting this for hours and I can't figure it out. Any help would be much appreciated. Here is the full program's code: #include "stdafx.h" #include <iostream> …

Software Development c++
Member Avatar for nate9603
0
246
Member Avatar for negru

Hi. How to find index of first letter in every word in a string? For example, input string is: Programming Languages. Output should be: 0 12, those are the indexes of letters "P" and "L". I tried different approach, to print those numbers but that didn work. Thanks for the …

Software Development c c# c++
Member Avatar for TalhaMoazSarwar
0
184
Member Avatar for ebaum2112

i am trying to make a checkerboard that centerss automaticly no matter what the sideLength is. also i am tryiing to put the checker in the squares...im only a beginner!!!! have mercy heres what i have [code] def drawCheckerBoard(myTurtle,sideLength): myTurtle.speed(0) for i in range (8): myTurtle.forward(sideLength) myTurtle.right(90) myTurtle.forward(sideLength) myTurtle.right(90) myTurtle.forward(sideLength) …

Software Development python
Member Avatar for ilona.lizard
0
225
Member Avatar for mdev

Hi again people, i have a datagridview with "Persons" hosted in a xml file. When i click ShowData button i get the "Persons" in datagridview. Also have a textbox control to filtering : private void toolStripTextBox1_TextChanged(object sender, EventArgs e) { try { //this code is used to search Name on …

Software Development
Member Avatar for mdev
0
133
Member Avatar for mdev

Hi again people, Who knows how to show value of the selectedRow in DataGridView on a messageBox? Thanks in advance.

Software Development
Member Avatar for mdev
0
3K
Member Avatar for mdev

Hi People, im new here. I have a app to register CandidatesForJob.. i have a datagridview and i load data from xml file. I Have a object with data. But my boss sad me to associate each row to my object. Who can help me? That button , open my …

Software Development
Member Avatar for mdev
0
171
Member Avatar for negru

Hi. I need help finding the longest word in a string. How to return last longest word if there are two or more words with the same (longest) length? My code: #include <stdio.h> #include <string.h> int main() { char string[100], word[20], max[20], min[20], c; int i = 0, j = …

Software Development c c# c++
Member Avatar for deceptikon
0
10K
Member Avatar for Papa_Don

I need to identify how the code identifies that a file is at the "eof" (end of file). Here's why: On Monday's, I'm having to combine text files created over the weekend that will eventually be read and pulled into an Excel spreadsheet (generally there are three files). Using VB.net, …

Software Development file-system vb.net visual-basic
Member Avatar for |-|x
0
448
Member Avatar for johnny blaz97

import tkinter top=tkinter.Tk() t=tkinter.Text(top,height=1,width=1,bd=2,font=10) t.grid(row=0,column=0) b1=tkinter.Button(top,height=2,width=8,bd=2,text="MC",fg="Red") b1.grid(row=1,column=1) b2=tkinter.Button(top,height=2,width=8,bd=2,text="Backspace",fg="Red") b2.grid(row=1,column=2) b3=tkinter.Button(top,height=2,width=8,bd=2,text="CE",fg="Red") b3.grid(row=1,column=3) b4=tkinter.Button(top,height=2,width=8,bd=2,text="C",fg="Red") b4.grid(row=1,column=4) b5=tkinter.Button(top,height=2,width=8,bd=2,text="MR",fg="Red") b5.grid(row=2,column=1) b6=tkinter.Button(top,height=2,width=8,bd=2,text="7",fg="Blue") b6.grid(row=2,column=2) b7=tkinter.Button(top,height=2,width=8,bd=2,text="8",fg="Blue") b7.grid(row=2,column=3) b8=tkinter.Button(top,height=2,width=8,bd=2,text="9",fg="Blue") b8.grid(row=2,column=4) b9=tkinter.Button(top,height=2,width=8,bd=2,text="/",fg="Red") b9.grid(row=2,column=5) b10=tkinter.Button(top,height=2,width=8,bd=2,text="sqrt",fg="Blue") b10.grid(row=2,column=6) b11=tkinter.Button(top,height=2,width=8,bd=2,text="MS",fg="Red") b11.grid(row=3,column=1) b12=tkinter.Button(top,height=2,width=8,bd=2,text="4",fg="Blue") b12.grid(row=3,column=2) b13=tkinter.Button(top,height=2,width=8,bd=2,text="5",fg="Blue") b13.grid(row=3,column=3) b14=tkinter.Button(top,height=2,width=8,bd=2,text="6",fg="Blue") b14.grid(row=3,column=4) b15=tkinter.Button(top,height=2,width=8,bd=2,text="*",fg="Red") b15.grid(row=3,column=5) b16=tkinter.Button(top,height=2,width=8,bd=2,text="%",fg="Blue") b16.grid(row=3,column=6) b17=tkinter.Button(top,height=2,width=8,bd=2,text="M+",fg="Red") b17.grid(row=4,column=1) b18=tkinter.Button(top,height=2,width=8,bd=2,text="1",fg="Blue") b18.grid(row=4,column=2) b19=tkinter.Button(top,height=2,width=8,bd=2,text="2",fg="Blue") b19.grid(row=4,column=3) b20=tkinter.Button(top,height=2,width=8,bd=2,text="3",fg="Blue") b20.grid(row=4,column=4) b21=tkinter.Button(top,height=2,width=8,bd=2,text="-",fg="Red") b21.grid(row=4,column=5) b22=tkinter.Button(top,height=2,width=8,bd=2,text="1/x",fg="Blue") b22.grid(row=4,column=6) b23=tkinter.Button(top,height=2,width=8,bd=2,text="M-",fg="Red") …

Software Development gui python tkinter
Member Avatar for vegaseat
0
1K
Member Avatar for Niloofar24

Hello. I'm using Linux OS, Python 2 and the last version of Kivy framework. Here i have 2 files that i have typed them exactly as what i watched on a kivy tutorial video. Fist file is "main.py": from kivy.app import App from kivy.uix.scatter import Scatter from kivy.uix.label import Label …

Software Development operating-system python
Member Avatar for vegaseat
0
4K
Member Avatar for Hatem_1

how to make a reading operation with this writing textfile solution, please? Textbox[]tbs = { textBox1, textBox2, textBox3, textBox4, textBox5 }; // add all of them in here StringBuilder sb = new StringBuilder(); foreach(TextBox tb in tbs) sb.AppendLine(tb.Text); System.IO.File.WriteAllText(@"C:\myFile.txt", sb.ToString());

Software Development
Member Avatar for Hatem_1
0
161
Member Avatar for sam ss
0
85
Member Avatar for Hawk123

Hi, Im trying to make a simple programe that will make my life easier. But its more complex than i thought i have 6 tables, 1 master and 5 sub. All the 5 tables are of different column and types. Master Table ID Names 1 Branch 2 Committee 3 Translation …

Software Development audio open-source vb.net
Member Avatar for Hawk123
1
222
Member Avatar for steven.rose.94

Good Day:) I'm trying to figure out how to remove the % sign that is returned from scraping Yahoo Finance **without** removing the decimal point (or a possible negative sign in front of number returned as netProfit). My goal is to convert the string without the % sign a float …

Software Development finance operating-system python
Member Avatar for Slavi
0
2K
Member Avatar for MustafaScript
Member Avatar for vegaseat
0
224
Member Avatar for jez9

when i run my system in .exe file i got error[unhandled exception has occurred in your application] , i used this code Public Class Form1 Declare Function Wow64DisableWow64FsRedirection Lib "kernel32" (ByRef oldvalue As Long) As Boolean Declare Function Wow64EnableWow64FsRedirection Lib "kernel32" (ByRef oldvalue As Long) As Boolean Private osk As …

Software Development vb.net
Member Avatar for jez9
0
361
Member Avatar for zandiago

Good day: My infile contains the following: [CODE] U Apple Pie 1.29 A Bacon Burger 3.45 V Burrito 2.09 S Cheeseburger, Double 3.59 W Cheeseburger, Regular 2.95 Y Chicken Nuggets 1.87 H Chicken Sandwich 3.33 C Chili, Bowl 2.12 X Chili Dog 2.29 N Chocolate Milk 0.98 D Coffee 1.09 …

Software Development apple c c# c++ printer
Member Avatar for NathanOliver
0
9K
Member Avatar for Niloofar24

Hi. How can i open a mp3 file and play it in python? There is a mp3 file on my Linux desktop and i want to open it from a python file and play it. What should i do?

Software Development python
Member Avatar for Niloofar24
0
30K
Member Avatar for brandon66

Alright can you guys tell me why the first call to printOcean prints out the memory address of the arrays rows/cols and the second one prints like its suppossed to with 0's which the array is filled with #include <stdio.h> #include <string.h> //macro #define FLUSH_STDIN(x) {if(x[strlen(x)-1]!='\n'){do fgets(Junk,16,stdin);while(Junk[strlen(Junk)-1]!='\n');}else x[strlen(x)-1]='\0';} //define constants …

Software Development c
Member Avatar for brandon66
0
200
Member Avatar for muhammad_74

Hi, I have ubuntu installed on my pc with openjdk 8 but as i want to lern java ho can i create programs by openjdk or which is the place to write the coding. Plz suggest me with easy words Thanks,uxama

Software Development java ubuntu
Member Avatar for muhammad_74
0
355
Member Avatar for OMER AHMED

Dim Mail As New MailMessage Mail.Subject = "" Mail.To.Add("") Mail.From = New MailAddress("") Mail.Body = textbox1.text " How i can add 5 textboxes in body " Dim SMTP1 As New SmtpClient("smtp-mail.outlook.com") SMTP1.EnableSsl = True SMTP1.Credentials = New System.Net.NetworkCredential("mail@mail.com", "password") SMTP1.Port = "587" SMTP1.Send(Mail) How i can add 5 textboxes in …

Software Development email vb.net
Member Avatar for OMER AHMED
0
185
Member Avatar for BenWard

Hello, I thread hijacked earlier today... probably shouldn't have, sorry if that annoyed anyone. Anyway I have an issue using LookupAccountSid in a visual studio 2013 project running on Windows 7 Pro x64. First of all, it works perfectly in debug, but doesn't work when built for release. What I …

Member Avatar for BenWard
0
1K
Member Avatar for Builder_1

if i were asked a secret question between 1 and 1 billion by asking yes/no question of the form "is the number less than X? " what algo should i use to efficiently find the secret number? using the algo what will be the minimum number of questions if asked …

Software Development algorithm c++
Member Avatar for SalmiSoft
0
133
Member Avatar for Sarkurd

I have some confusion about Copy Constructor. Why this program crashes if we remove Copy Constructor `MyString`? #include <iostream> #include <cstring> using namespace std; class MyString { private: char* Buffer; public: // constructor MyString(const char* InitialInput) { cout << "Default constructor: creating new MyString" << endl; if(InitialInput != NULL) { …

Software Development c++
Member Avatar for Sarkurd
0
296
Member Avatar for Niloofar24

Hi everybody. I have problem with .pack() and .grid(). I have to use this line: mywin.pack(fill=BOTH, expand=YES) I have used .grid every where on my file but now here i have copied a pice of code from some where and have pasted to my file, as you see it has …

Software Development python tkinter
Member Avatar for vegaseat
0
4K
Member Avatar for Niloofar24

Hello. When we want to insert a vlue into a table in sqlite, we use this line, right? cursor.execute('INSERT INTO colors Values ("red", "blue")') As we can see above, we want to insert 2 words and we type them as when we are typing whole the codes. But i want …

Software Development python sqlite tkinter
Member Avatar for vegaseat
0
5K
Member Avatar for jez9

Hi again, i want to use on sceen keyboard when i want to click/touch a textbox, i tried to do a keyboard in vb.net but it can only focus on one form only. Can you give any idea how can i use on screen keyboard or how can i focus …

Software Development vb.net
Member Avatar for Reverend Jim
0
9K
Member Avatar for it@61@sec

I have a C++ program with a main routine which reads arguments from command line: int main(int argc, const char *argv[]) In my system I have defined some aliases in my bash environment which abbreviates directory names. Example: alias dst='home/username/Documents/test' alias src='home/username/Download/test' My program is called "dircopy" and I want …

Software Development c++
Member Avatar for it@61@sec
0
314
Member Avatar for jez9

Hi again, I'm having a trouble in updating an item from listview to database I try this code , but it says syntax error in Update nod=name of dish , qty = quantity TBLORDERS - nod[text], qty[text], price[text] lvorder - qty , [subitems] - name of dish, price Dim sql …

Software Development listview vb.net
Member Avatar for jez9
0
1K
Member Avatar for Azii

Hello, I have written the basic shell script "myscript.sh", which prints Hello World. I want to call this script using PL/SQL. Please let me know the procedure(steps) for the same. Thank you.

Software Development shell-scripting sql
Member Avatar for Azii
0
1K
Member Avatar for gbhs

Hi Consider the string "Please, go Mr. Gofer and good bye" I want to split the string at the specific word 'Go' (not Go in 'Gofer' or in 'good') in my case 'Go' could be at begin of sentence or at end or somewhere inside sentence. How can I achieve …

Software Development vb.net
Member Avatar for Reverend Jim
0
237
Member Avatar for rhys_1

memoryc = open("cipher.txt", "a") memoryd = open("decipher.txt", "a") #------------------------------------------------------------------------------- choice = input("cipher, decipher or memory") #------------------------------------------------------------------------------- if choice == "cipher": message = input("What is your message?") key = int(input("What is your key?")) coded_message = "" for ch in message: code_val = ord(ch) + key if ch.isalpha(): if code_val > ord('z'): …

Software Development python
Member Avatar for Ene Uran
0
320
Member Avatar for Alxprog

The problem is that i can't manage to compile the simplest (int main(){}) boost asio program with Code Blocks. I'm using Windows 7. Googling gave me some controversial suggestions: 1) to add -lwsock32 key - Done(Compiler settings->Other options-> -lwsock32) 2) to link with ws2_32.dll and wsock32.dll - Done (Linker settings->paths …

Software Development c++
Member Avatar for Alxprog
0
681
Member Avatar for Derorim

So can anyone tell me how to make this I was sick for a long time so Im far behind in school. So: First the customer NEEDS to fill in his first and last name. Then he needs to tell with how many people he comes. Then he has to …

Software Development c c# c++
Member Avatar for ddanbe
0
184
Member Avatar for Doogledude123

Alright, I've never done this before so this may not be the way to go about it, but here goes. I'm creating an Application that connects to a Server which executes SQL Queries. I am coding the Application as a prototype in Java currently and extending it later possibly with …

Software Development api ios java
Member Avatar for Slavi
0
294
Member Avatar for ddanbe

I have this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace RegexTest { class Program { static void Main(string[] args) { string str = "The quick brown fox."; string pat = "fox"; Regex rgx = new Regex(pat, RegexOptions.IgnoreCase); Match matches = rgx.Match(str); Console.ReadKey(); } } } …

Software Development regex
Member Avatar for ddanbe
0
257
Member Avatar for M.I.Sahil

Can anybody let me know, why i receive a (Runtime error 3319: Syntax Error in union Query), when I run the following union Query : sSQL = "SELECT 0 AS VoucherNo, #" & Format((txtFromDt), "dd/MMM/yy") & "# AS VoucherDate, " _ & "Vendors.VendorName, ""[Balance Brought Forward]"" AS Narration, 0 AS …

Software Development visual-basic
Member Avatar for M.I.Sahil
0
376
Member Avatar for OMER AHMED

how to print my listview details .. i found open source with class but this is only printing my 1st column also it is printing 1st column details in all column. please tell me how i can edit it . and put my all subitems of list the class is …

Software Development listview open-source printer vb.net
Member Avatar for OMER AHMED
0
1K
Member Avatar for PinoyDev

I am creating a table dynamically of which fields are date. I have a running code below but I want to remove those doble quotes in both sides.. If I remove the chr(34) on both ends, I get this error saving "invalid field defination". My code and table screen shots …

Software Development visual-basic
Member Avatar for PinoyDev
0
145
Member Avatar for Doogledude123

Hey, I'm looking for decent MySQL tutorials for connecting a Database in Java. I'm using Java 8 so preferably would like tutorials that correspond with newest code. Thanks!

Software Development java mysql
Member Avatar for JamesCherrill
0
382
Member Avatar for shahera.arafat

hi :) I'm wondering >>what is the use of (static) word in func.'s ? in this code what does it mean ??and if I didn't put it what would happen then ?? thanks :) import java.util.Scanner; class Average { public static double compute(int...x) { double sum=0; for(int item:x) sum+=item; return …

Software Development java
Member Avatar for shahera.arafat
0
401
Member Avatar for PulsarScript

Here is my code,how do i use the length property to show length of the random.bin file? static void Main(string[] args) { FileStream fs = new FileStream("random.bin", FileMode.OpenOrCreate, FileAccess.ReadWrite); // has to be declared in method scope Random r = new Random(); for (int i = 0; i < 10; …

Software Development
Member Avatar for tinstaafl
0
159
Member Avatar for LATCH808

so im trying to find the min, max, range, mean, median, and mode. The max number is right but the min isnt. Once that is corrected, i can get range and mean easily. Also, i have no idea how to get mode and median. Im guessing the values in the …

Software Development c++
Member Avatar for LATCH808
0
169

The End.