132,726 Archived Topics
Remove Filter ![]() | |
Below code is working fine with small problem. My problem here is, how can i get the BegValue working in a proper order. please it is only the begvalue that is giving me a headache. Please some one help me. !!! Thanks in advance. Public Class Form1 Private Sub Button1_Click(ByVal … Software Development vb.net | |
if input is given like (5,4,6,3) it returns 4,5,3,6 but i want it to return like 3,4,5,6....kindly help. import java.util.Scanner; public class sort { public static void main(String args[]) { int rows; int cols; Scanner input = new Scanner(System.in); System.out.println("Enter number of rows u want in matrix "); rows=input.nextInt(); System.out.println("Enter … Software Development java | |
how to write code in java this statm if public String pass (){ b =txt_pass.getText(); if ("ameer".equals(b)) JOptionPane.showMessageDialog(null, "the password is correct"); return b; } how to make this **if (user ()) retrun a ** JOptionPane.showMessageDialog(null, "the password is correct"); Software Development java | |
How to save the created txt file to a specified path? For example to C:\\ Drive. When the code creates a file it saves to the workspace folder of the project. Do I have to set the directory to C:\\? I tried using `SetCurrentDirectoryA` function but does not change to … Software Development c++ file-system | |
#include<stdio.h> #include <file.h> main(int argc, char *argv[]) { FILE *fp; char s[100]; int i; //char exit if((fp=fopen("Allah ya isa.mp3","rb"))==NULL) //Open file and read on binary mode { printf("Could not open the file\n"); // exit(1); } fclose(fp); } #include<stdio.h>`` main(int argc, char *argv[]) { FILE *fp; char s[100]; int i; //char … Software Development audio c file-system | |
Hello good people I am working on a caeser cipher program for class. However, I ran into a problem with my outputs. Up to a certain point for example: two('y', 'z') Would give a '\x92' output instead of a 'x' output. Currently this is my code so far: def chartonum(ch): … Software Development python | |
I am new to Perl, I wanted to combine two lines where "ANN" and "QTR" in second column have same date in fourth column (date), otherwise just print line with data which has "ANN" in it. It also skip line where date column is empty: Input data file: I am … Software Development perl | |
Hi, I am new to wxpython and trying to develop a small GUI interface (shown below). User selects a python script from "Browse run script" and when he/she hits the button "Execute RunScript", the script should execute via aardvark i2c interface. But I am not sure why it's not getting … Software Development gui python user-interface | |
Write a program to recognize tokens for C++ program. Use C++ program as your input?How to answer? TOKEN getRelop() // TOKEN has two components TOKEN retToken = new(RELOP); // First component set here while (true) switch(state) case 0: c = nextChar(); if (c == '<') state = 1; else if … Software Development c++ | |
can any one explain about the below code which is Dining Philosophers Problem.. [CODE] //Dining Philosophers Problem import java.util.Random; class Monitor { int phil_States[] = new int[5]; // 0=not_waiting, 1=waiting // 2=eating boolean fork_States[] = new boolean[5]; // false = in use, true = free Monitor() { // constructor for(int … Software Development java | |
Hi. I am making a program and I started at the first example for sphinx 4. I can't even run the program becouse I get an error:new ConfigurationManager(args [0]) so I can't even run the program. Please help. Here is my code: import java.net.URL; import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; import edu.cmu.sphinx.frontend.util.Microphone; … Software Development java | |
What is the difference between this two ways of initializing arrays. I have instantiated an array Guys[] guy = new Guy[3]; where Guys is a class having fields Name, Cash, MyLabel(a Label), MyRadioButton(a RadioButton) guys[0] = new Guy() {Name = "Joe", Cash = 50, MyLabel = joeBetlabel, MyRadioButton = joeRadioButton … Software Development | |
Hello, I am trying to write this program in Delphi that calculates the amount of change required to make a certain amount. The user enter a number between 1 and 200. The program then calculates the amount of 100, 50, 20, 10, 5, 2, 1 bils required. But there is … Software Development algorithm delphi pascal user-interface | |
Hello, guys. I need your help. :o3 I want to create a MessageBox which may "communicate" with form. Actually, i need to communicate with form. It's a kind of backtraking and I want to display in more ways the solution. void afisare() { int dame = int.Parse(Dame.Text); afisari++; for (int … Software Development | |
how to reduce memory usage of java application...it takes 18 mb memory when started,when i starts new thread it takes 47 mb of memory .After i closed the started thread ,the memory is not reduced to 18 mb. It still stays at 47mb of memory usage. Software Development java motherboards-cpu-ram | |
I am getting a very mysterious bug when I run my java website in Browser Mode: IE9 Compatibility View - the sessions stop working and I have no idea why. I don't think there is a tag or any code that I can include in my website that can force … Software Development java session web-browser | |
*Online Examination System # Heading Here # Dear friends i have to develope online examination system in vb.net ...but there is some problem .. Inserting teacher record from combobox,Subject record from Listbox into a table name Subj_Paper.. columns are Sbj_Paper_ID,Sbj_Paper_Name,T_ID... Sbj_Paper_ID isa the primary key T_Id is foreign key from … Software Development vb.net | |
Hello, I googled this and didn't found any good results. I found "GUI Toolkits for C++"... I need a C++ eBook to teach me to use the windows library... | |
Private WithEvents tim As New System.Timers.Timer Public Delegate Sub doSub() Private thingToDo As doSub Public Sub TimeOut(ByVal d As doSub, ByVal milliseconds As Integer) thingToDo = d tim.AutoReset = False tim.Interval = milliseconds tim.Start() End Sub Private Sub tim_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles tim.Elapsed Invoke(thingToDo) End … Software Development vb.net | |
vector <int> a; //first vector vector <int> b; //second vector vector <int>::iterator i; //iterator for first vector vector <int>::iterator i1; //iterator for second vector //reading of first vector int temp; while(cin>>temp) { a.push_back(temp); } i=a.begin(); while(i!=a.end()) { cout<<*i<<" "; i++; } //end of reading first vector //reading of second vector … Software Development c++ | |
for(i=a.begin();i!=a.end();i++) { cin>>*i; } for(i=a.begin();i!=a.end();i++) { cout<<*i; } above code works fine but when i use while loop to display vector , program crash. while(i!=a.end();) { cout<<*i; i++; } Software Development c++ | |
import javax.swing.JOptionPane; public class Hotel626 extends javax.swing.JFrame { public Hotel626() { initComponents(); } @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { jLabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jProgressBar1 = new javax.swing.JProgressBar(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); setResizable(false); jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Pic/Entrace.jpg"))); // NOI18N jButton1.setBackground(new java.awt.Color(0, 0, … Software Development java java-swing oracle | |
 Hi, > Quoted Text Here ` can anyone help me....i need help in this project... ` 1st thing is File type...the code i want is to only check the file type as binary, csv, etc... ` 2nd in Data Type....i have to count if the data type is … Software Development visual-basic | |
guys Im a newbie here I really need your help for our project...pls help me..heres the problem..Write a C program that add a names into a file then read the names in a file and sort it alphabetically..(FILEPOINTER). Software Development c | |
ATM -Deposit -withdraw(5 times maximum per day) -maintaning balance 200 -maximum withrdaw 20,000 -Default Amount 50,000 help me :( Software Development java | |
Hi guys I need your help on selecting data from 4 different worksheet. Here's my code Dim MyConnection As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0; Data Source='" & path & "'; Extended Properties=Excel 12.0;") Dim cmd As OleDbCommand = New OleDbCommand("Select [MAM$].[Seller Name], [MAM$].[Final Computation], [MAM$].Designantion From [MAM$] Left Join [DSS$] on [MAM$].[Seller Name] … Software Development dataset open-source vb.net | |
I have two Form One is CASH BOOk ANd another is CashBOOkUpdation...............whne i Doubleclick on ny row of datagrid of CashBOOk i go to the 2nd formCashBookUpdation for updating anything.............BT PRoblem is that when i came back to form CashBook after Editing............the Grid SHow The OLD records not the New … Software Development vb.net | |
I'm new here, and haven't posted anywhere for any help since I've been all about learning for myself. However, I've gotten to the point where I don't want to fail this class so I'm seeking as much help as I can! I don't want it done for me, just a … Software Development c++ | |
I'm trying to pull the total physical memory on a machine and have it show just like it would inside My Computer Properties. I know I can use My.Computer.Info.TotalPhysicalMemory which will return it in bytes. This is where I'm getting stuck. I want to be able to divide it and … Software Development motherboards-cpu-ram vb.net | |
need new "c++ database" books or tutorial sites Software Development c++ | |
Hello, I feel like this is probably something silly, but for some reason if I declare a variable at a certain point in my code, then never use it... it crashes. This is literally what happens: //... code here int isBuf=0;//one of my variables int zeroAddr=0;//<-- another variable I want, … Software Development c++ open-source | |
Hello everyone. I have created a class in Java named Farm which contains a list of animals(cow,pig and chick). myFarm is an array of object of Farm class containing objects of NamedCow,pig and chick class. I have not understand one line in my code: NamedCow named = (NamedCow)myFarm.get(0); here what … Software Development java | |
Hi. Can someone help me with this? I'm trying to make a code for database to be edited through DataGridView. Here's the code: Public Class Frm_UA Dim Connection As String = "Data Source=.\SQLEXPRESS;AttachDbFilename=G:\VB Project\Library Catalog System\Library Catalog System\library.mdf;Integrated; Security=True;Connect Timeout=30;User Instance=True" Dim a As OleDb.OleDbCommand = New OleDb.OleDbCommand Private Sub … Software Development vb.net | |
Hello, I have another question about dynamically compiled code. I am using the VBCodeProvider class to compile, test, and run "scripts" that users type into my program (Code Below). Public Function Compile(ByVal vbCode As String, ByVal argsString As String) As Object Dim oCodeProvider As VBCodeProvider = New VBCodeProvider ' Obsolete … Software Development assembly user-interface vb.net | |
Hello, I am relatively new to python and I am tryin to create, or better yet, find a text editor/box which displays simple html text/formatting and allows me to modify it (without having to deal with the html directly). For example in the text box you might find this: 1. … Software Development html-css open-source python | |
Hello, I heard that microsoft is planning to make an AoT (Ahead-of-Time) Compiler for the C# so it can compile it to a native code instead of the IL... My question is, When will this compiler be available? | |
Hello every one . I have a piece code in VB.net which work perfectly. but now i convert that code to C# Which give me the follwing error. "No suitable Method found to override" my VB.Net Code is Here Protected Overrides Sub onload(ByVal e As EventArgs) startPosX = Screen.PrimaryScreen.WorkingArea.Width - … | |
Hi, my requirement is that I do gets and take user name as input. Now I have to create a file name with the same name as user name. Next if I try to login as a same user from different client I need to check if that file with … Software Development c file-system | |
I took the liberty of posting the assignment and the work I've done. I can't figure this one out, can anyone help me And I did put an attempt at this, almost 4 hours now and I'm burnt out. If anyone can help me I would soooo love you. "Your … | |
Just wanted other opinions on my code and a way to figure out whether or not each number placed into the 2D array is unique. My mind is blanking out a bit, I placed something in the method before but erased it. Debating on whether the parameters should simply be … Software Development java | |
I need help with finding the sum of only 1 row and 1 column in a 2D array. I have loops working inside int main() that show the sum of all the rows and all the columns but what I need is a function to sum only one row and … Software Development c++ | |
it's a beginner's problem. I am trying to calculate sum of the first 15 factorials. I know int isn't large enough for the sum, so I used unsigned long long but it still didn't work. why?? Thanks for helping! #include <iostream> #include <cmath> #include <iomanip> #include <cstring> using namespace std; … Software Development c++ | |
#include<stdio.h> #include<stdlib.h> int main() { int i,j; int ascii_value; char c; FILE *plain; plain=fopen("xx.dat","r"); while((c=getc(plain))!=EOF) { ascii_value=c; printf("%d %c\n",ascii_value,c); printf("~~~~~~~~~~~~~~~~~~~~\n"); } fclose(plain); return 0; } the file xx.dat is 12sdfsldkfj MY output is 49 1 ~~~~~~~~~~~~~~~~~~~~ 50 2 ~~~~~~~~~~~~~~~~~~~~ 115 s ~~~~~~~~~~~~~~~~~~~~ 100 d ~~~~~~~~~~~~~~~~~~~~ 102 f ~~~~~~~~~~~~~~~~~~~~ 115 s … Software Development c file-system | |
"This database needs to track how often a member has used the golf course, and how many guests any and each member has brought to the club." ^That is part of our case problem that I can't figure out how to do it. I'm done recording each member or guest … Software Development vb.net | |
#include<stdio.h> #include<stdlib.h> int main() { int i,j; int ascii_value; char c; FILE *plain; plain=fopen("xx.dat","r"); while((c=getc(plain))!=EOF) { ascii_value=c; printf("%d %c\n",ascii_value,c); printf("~~~~~~~~~~~~~~~~~~~~\n"); } fclose(plain); return 0; } the file xx.dat is 12sdfsldkfj MY output is 49 1 ~~~~~~~~~~~~~~~~~~~~ 50 2 ~~~~~~~~~~~~~~~~~~~~ 115 s ~~~~~~~~~~~~~~~~~~~~ 100 d ~~~~~~~~~~~~~~~~~~~~ 102 f ~~~~~~~~~~~~~~~~~~~~ 115 s … Software Development c file-system | |
I'm wondering if there is a way to change the color of the text so that it looks like this when output Name: Joe Blow City: Denver Score: 80 But I would like the text to be Yellow and the numbers to be White. Console.WriteLine("Name: {0}", studentName); Console.WriteLine("City: {0}", studentCity); … Software Development | |
i use a string str1= { 0xFEFE 0x0111 0x00 }, { 0xFEFE 0x0112 0x01 }, { 0xFEFE 0x0113 0x01 },{ 0xFEFE 0x0114 0x00 } need to find and seperate the substrings that end with 0x00 in one list and the substrings that end with 0x01 in another list. could anyone … Software Development python | |
![]() | Hello, Where can I download Python 3.4.0 for Linux ? On the official website of Python I can find releases only for Windows and Mac OS. Thanks for your help. Software Development file-system python ![]() |
Hi, guys, I need some help to figure out how to get my program working. Program description: The purpose of this program is to all the user to input names of city and their (x, y) coordinates on a 2D map. Once more than 2 different cities are entered, the … Software Development c++ | |
A company provides his staff 20% off for tour allowance of basic his basic salary and 10% off for housing rent allowance.calculate the salary in unsigned int. Software Development c |
The End.