132,726 Archived Topics
Remove Filter ![]() | |
I have a strange problem, I have written a for loop to check a list of words for a match and it is not checking all of the words: I am using two files to check for matched words (Enwords.txt - a list of English words and Encontract.txt - a … | |
Hello, I have a school assignment that i really need help with. I am supposed to create an X shape with asterisks using for loops. I am terrible at for loops so i was wondering if you guys could help me out a little in figuring out the best solutions. … Software Development c++ | |
I tried to make a try-catch block in a program but when an exception occurs, it doesn't do what I intended int num = 0; boolean noException; Scanner keyboard = new Scanner(System.in); while (true) { noException = true; System.out.print("Enter a number or 0 to exit: "); try { num = … Software Development java | |
Hello Every one i'm a newbie in vb.net and i am facing a little problem i hope that someone can help me. i made a little programme that i need at work witch have 15 textbox and in each textbox we will enter a data that will be saved in … Software Development file-system vb.net | |
I have been told that in C++ the concept of a string does not exist. A string is just an array of type char. So in the following code, is message an array because it doesn't really look like one? char *message = "I am having trouble understanding pointers"; std::cout … Software Development c++ | |
I'm having problem with passing argument to the linked list. I wait for user input then I parse this user input and put parsed tokens into dynamic array (char **c) After that I need to write ceratin user input into linked list (for example I need to pass c[1] to … Software Development c linked-list | |
anyone know how to split the text in txt file i have this... try { String newaccount = NewAccount.getText(); String newaccusername = NewAccUsername.getText(); String newaccpassword = NewAccPassword.getText(); FileWriter filewriter = new FileWriter(newaccount + ".txt"); BufferedWriter out = new BufferedWriter(filewriter); out.write(newaccpassword); out.write(newaccusername); //out.write(newAccount); out.close(); LabelInfo.setText("Account Registered !"); } catch (Exception ex) … Software Development java | |
Please help. I have an illegal start of expression at line 65 where it says "public static void p(Object...args)" /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.*; /** * * @author Minh */ public class Dna { … Software Development java | |
I have been playing around a bit and I want to know if you can update a global varaible... rowA = [] def printSeat(): global rowA print "A", rowA = ['*', '*', '*', '*', '*', '*', '*', '*'] print rowA print "B", rowB = ['*', '*', '*', '*', '*', '*', … Software Development python | |
Suppose I have a code: Class A have items which is pushed into a vector...I want to access Class A element from class B through A's vector.. class A { friend class B; vector<A> data; //store info in vector }; Class B { void showDataInClassA(); A a; } void B::showDataInClassA() … Software Development c++ | |
![]() | Hello people, I need to do this: I have Form1 having textbox1. I want to display text entered into textbox1 into Label1 of Form2. Suggestions Welcomed. Thanks Software Development vb.net |
Could someone please tell me hw 2 validate e-mail address on an event in vb.net?? | |
Was having trouble printing special characters using Ascii codes for this two characters: **Ñ and ñ. ** I'm trying to enable inserting them on textboxes using Keypress event but to no avail. But since the Alt key doesn't have Ascii equivalent, I can't figure it out. I would want to … Software Development visual-basic | |
I am creating a project in turbo c++ and it is based on kids and i want to implement the speech like it will speak(a for apple).so is it possible to do this?and if possible then please help me out. ![]() | |
This procedure is called just before the answer is written to a binary file to ensure it is in the correct format. It works but I need it to repeat until it is an integer. I was trying to use a 'repeat','until' but wasnt sure what the 'until' condition woudld … | |
Hi guys, I m making an small aplication for buses but i got stuck with the string array conversion to a timespan array, i have to convert it i order to compare times later on but i don t know how... Here is the code string line; TimeSpan [] array; … Software Development | |
hello expertes i have 2 tables , both having same table structure (i.e. same fields ) but having different Records. First Table for Male Candidate and another for Female Candidate. both tables have 2 fields namely :- name and marks. Now i wanna write sql statement using adodb to perform … Software Development visual-basic | |
Hi guys i was trying to integrate a very basic Client/Server chat software with Caesar Cipher. i just wanted to encrypt the communication using Caesar cipher. the Client/server chat software is using TCP sockets.i tried and integrated the cipher on client side but it encrypted all texts and its not … Software Development c# client-server encryption monitoring-software | |
#include <stdio.h> #include <string.h> int InformaticsPayrollSystemMenu(); int main() { char fname[100],lname[100],sex[100],con[100],dob[100],ans; int empnum[100],pay[100],payrollSystemMenuChoice,choice,emp,edit; int i=0,found=0; float rate,week,weekyear,ot,abs,weeksal,monthsal,annal,sss,pagibig,phl,tax,netpay; system ("color 0A"); system("title INFORMATICS PAYROLL SYSTEM"); do { payrollSystemMenuChoice = InformaticsPayrollSystemMenu(); switch(payrollSystemMenuChoice) { case 1: { found = 1; printf("\n\t\t******************************************"); printf("\n\t\t********* REGISTER NEW EMPLOYEE **********"); printf("\n\t\t******************************************"); printf("\n\t\tNOTE:Please fill up the form properly … Software Development c | |
I am trying to write a program that creates a new file every time I use the application. Right now, this is what I am doing: outfile.open("Application.txt"); outfile<<"First Name: "<< firstName <<" "<<"Last Name: "<< lastName<<" "<<"Student Number: "<< studentNumber << endl; outfile<<"Email Address: " << emailAddress <<" "<< "Major: … Software Development c++ file-system | |
Hello, I have been fiddling around with this and no luck so far. So I am hoping someone can help me. I am making a time clock application. When you add an employee it creates a new directory using their name along with a .txt file used to store their … Software Development file-system vb.net | |
I want to convert a Pandas DataFrame series to a List. In [63]: bayFails Out[64]: 0 [0, 1, 4, 5, 6, 8, 9, 12, 13, 14] In [63]: type(bayFails) Out[64]: <class 'pandas.core.series.Series'> Can someone show me how to convert bayFails into a list? Software Development python | |
![]() | Does anyone have a sample fully working code, that demonstrates how to change the mouse cursor picture when moved over a certain area in a program? [edit] just to clarify change it to a mouse cursor I designed myself[/edit] ThanQ Software Development java |
As for my assignment I had to write a program to swap 2 digit number Example:- If user input 12 the swaped number Would be 21. Along with ALgorithm, and a short description on this program(As how will you solve this program or what measure you'll take to get desired … | |
Implement in Java a class Coin that describes a coin with a name (e.g. dime) and a value (e.g. 10 cents). Also implement a class Wallet that describes a collection of coins. Supply a method add() to add a coin to a purse, and a method printContent() that prints out … Software Development java | |
Hi, I'm new to Python and am having trouble with this. Here's my code: import urllib, urllib2, re import xml.etree.ElementTree as ET from bs4 import BeautifulSoup # The get_zipcode(address) function will be called with an address string with # no zip code, such as 'Lowell Observatory, Flagstaff, AZ', and it … Software Development api google-api json python | |
I have this issorted code to sort elements of an array. It's very slow as it is right now due to a lot of memory access, number of branch instructions per iteration of the poorly written loops, and unorganized instruction/register usage causing dependencies between instructions. I'm not sure on how … Software Development assembly | |
I am making a basic comand line program that does conversions in python and i want to add more conversions to it without scripting. so you can command the program something like (you command the PC) add new_conversion (The PC ask) name the new_conversion: *here you enter your function name* … Software Development python | |
Hi, I'm a bit of a newbie to Pascal and I'm trying to create a simple program to convert binary numbers to decimal, I'm unsure of how I can disallow an input that is not binary, this is my code: var Validation : boolean; Binary, Number : String; Decimal, index, … | |
i want to loop through each avaiable color in Color struct. Is that possible? Software Development | |
hi guys .. i have problem in this code . it dose not work am trying to make gaussian filter in spatial domain. is this possible ??????? pls, any help #Const gauss_width = True sumr=0 sumg=0 sumb=0 Dim gauss_fact() As Integer = {1,6,15,20,15,6,1} Dim gauss_sum As Integer = 64 For … Software Development image visual-basic | |
**Can Anyone help me in this problem?? plssss... concurrency violation** Software Development vb.net | |
So my program is progressing quite nicely, and I'm semi-proud of myself for getting this far (I'm a newbie), but I had 2 questions. One question is that my program recognizes a .CFG extension...but never finds games with any other extension (.smc, .srm). I type it in EXACTLY as it … | |
public class ClickListener implements ActionListener { public void actionPerformed(ActionEvent e) { System.out.println(e.getSource().setText("Changed")); } } Eclipse tells me that `setText()` is undefined for type Object. This tells me that `getSource()` doesn't actually return the JButton object. How do should I do this then? How I change the text of the clicked … Software Development java | |
Hello guys, I am still encountering a problem regarding my combobox. I am trying to populate it from my MySQL table but I am unable to so far.... Dim connectionstring As String Dim dbCon As MySqlConnection Dim strQuery As String = "" Dim SQLCmd As MySqlCommand Dim DR As MySqlDataReader … | |
Hi, Can anybody help me out to solve string handling without using predefined spilt function , here come the questions for eg i have a input string as "hai welcome to the sample " so i should display as follows hai welcome to the sample pls advice, thanks for your … Software Development display | |
Hi again, I have the simple code below, and I receive the error "best overloaded method match has some invalid arguments". I tried to return a string or an int and then it said that I can't implicitly convert void to string. Any ideas on how I can overcome it? … Software Development | |
how to code vb.net connection string support to all computers? normally we are puting connction string like this. con = New SqlConnection ("Server=REHAN-PC \SQLEXPRESS;Initial Catalog=library;Integrated Security=true") con.Open() but the thing is when we are going to put this application to another computer we have a trouble. Now what to do? … Software Development vb.net | |
hi I've just started learning C# and I 'm working with excersice . There is something wrong with my add and remove button , but I don't know how to fix it here is the begining of my code and I'm sure that it correct also I have Item and … | |
Hello! I have a specific idea for the proram, but I don't really understand how to make it. What I need: Standard Window with Canvas which is divided in a 10x10 boxed field. When you move your mouse over one of these boxes, it must become red (each box is … Software Development | |
**I have this timeissorted.c file, and right now it's running at around about 8397599 usec. I'm looking for help toward improving the performance of this code to make it run faster.** #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <stdlib.h> static struct timeval start_ts, end_ts, diff_ts; void startClock() { gettimeofday(&start_ts, 0); … | |
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> int main() { printf("\t//*****************St.Jago High School******************\\ \n\n"); printf("\t------------Courtney Athlone St.Michael Reid---------------\n\n"); printf("\t^^^^^^^^^Computer Science IA-Pay Roll System^^^^^^^^^\n\n"); char fname[50]; char lname[20]; printf("Enter the employee's First Name:\n"); scanf("%s",&fname[50]); printf("Enter the employee's Last Name:\n"); scanf("%s",&lname[20]); } int add_hours() { printf("\t^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"); printf("\t^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"); int hours; int mo, … Software Development c | |
#include<iostream> #define MAX 1000000 #define loop0(i,j) for(int i=0;i<j;i++) #define loop1(i,j) for(int i=1;i<j;i++) using namespace std; bool flag[MAX]={0}; int tree[MAX]={0}; void update(long int node,long int b,long int e,long int i,long int j) { if(b>j || e<i) return; if(b>=i && e<=j) { if(flag[node]) { flag[node]=0; return; } else { tree[node]=e-b+1-tree[node]; flag[2*node]=!flag[2*node]; flag[2*node+1]=!flag[2*node+1]; … Software Development c++ | |
Hi guys, I have this code - I am trying to find if a number is present in a given array using recursion. The thing is, I get the error "not all code paths return a value". I don't know how to fix this. Please advise. using System; namespace checkArrayForValue … Software Development | |
(Just to preface this, I am a Python noob, so parts may be stupid/less obvious to me) I am trying to compile a Python script to exe, with the following setup.py file: from cx_Freeze import setup, Executable includes = ["re", "PyVMF"] setup( name="Wall Tile Randomizer", version="1.2", description="Wall Tile Randomizer", executables=[Executable("WallRandomizer.py")], … Software Development python | |
I have doubt that what we are using in java as String, is it class or datatype? String str = "hello" String s1 = new String("Hi") What is the difference in above two statements? Which is object of String class and which is varialble of datatype String? Because as i … Software Development java | |
I have a custom ObjectCollection class in my custom control and a public property to access this collection. //My custom Property [Editor("System.Windows.Forms.Design.StringCollectionEditor",typeof(UITypeEditor))] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public ObjectCollection Items { get { return itemCollection; } } //My custom collection class [ListBindable(false)] public class ObjectCollection : IList, ICollection, IEnumerable { //code } However, the … Software Development | |
Hi there, I'm currently working on a project that requires for me to print out data about a hexadecimal. It needs to print out signBit, expBit, and fracBits. I have tried to look onine but I haven't had any luck finding something useful. These are the requirements: Your code will … Software Development c | |
i just started with C++ program so i know very little programming . i have to make a program that calculates tax the senerio is this Federal: 15% on the first $43 561 of taxable income, + 22% on the next $43 562 of taxable income, (on the portion of … Software Development c++ | |
Hi all, I have created a java program that reads in the number of rows and columns entered by the user, and creates a board of that size. Then, it takes in the position of cells (x, y) that the user wants to make live on that board. -1 will … Software Development java |
The End.