132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for RoseB

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
Member Avatar for RoseB
0
336
Member Avatar for hira.jehangir.3

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
Member Avatar for JamesCherrill
0
5K
Member Avatar for ameer.mhmed

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
Member Avatar for stultuske
0
119
Member Avatar for kal_crazy

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
Member Avatar for kal_crazy
0
2K
Member Avatar for Mohammed_9

#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
Member Avatar for Ancient Dragon
0
327
Member Avatar for Yozuru

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
Member Avatar for Yozuru
0
288
Member Avatar for newperluser

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
Member Avatar for 2teez
0
144
Member Avatar for navi2582

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
Member Avatar for Gribouillis
0
444
Member Avatar for ahmad_9

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++
Member Avatar for Ancient Dragon
0
130
Member Avatar for paeez

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
Member Avatar for S1nfulAngel
0
1K
Member Avatar for ZixCo

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
Member Avatar for JamesCherrill
0
163
Member Avatar for dennis254

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
Member Avatar for ddanbe
0
183
Member Avatar for MasterHacker110

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
Member Avatar for MasterHacker110
0
259
Member Avatar for BogdanCov

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
Member Avatar for ddanbe
0
174
Member Avatar for sankubha

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
Member Avatar for masijade
0
467
Member Avatar for thorin

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
Member Avatar for thorin
0
619
Member Avatar for DonXai

*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
Member Avatar for oussama_1
0
124
Member Avatar for waseem1345

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...

Software Development c++ gui microsoft
Member Avatar for waseem1345
0
285
Member Avatar for carmamir

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
Member Avatar for carmamir
0
3K
Member Avatar for ravi_14

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++
Member Avatar for Banfa
0
207
Member Avatar for ravi_14

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++
Member Avatar for Banfa
0
208
Member Avatar for Decode098

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
Member Avatar for stultuske
0
272
Member Avatar for nayzin.phyo

![e3aa463a715bf7d059e1bb1c76bea2ba](/attachments/large/4/e3aa463a715bf7d059e1bb1c76bea2ba.png "e3aa463a715bf7d059e1bb1c76bea2ba") 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
Member Avatar for nayzin.phyo
0
269
Member Avatar for gg_bata

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
Member Avatar for Schol-R-LEA
0
174
Member Avatar for xfinity.Ace

ATM -Deposit -withdraw(5 times maximum per day) -maintaning balance 200 -maximum withrdaw 20,000 -Default Amount 50,000 help me :(

Software Development java
Member Avatar for stultuske
0
210
Member Avatar for jared.geli

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
Member Avatar for jared.geli
0
150
Member Avatar for DeepKiran

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
Member Avatar for DeepKiran
0
207
Member Avatar for Brittany_1

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++
Member Avatar for vmanes
0
252
Member Avatar for MaddTechwf

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
Member Avatar for uchy69
0
1K
Member Avatar for ckide
Member Avatar for Ancient Dragon
0
282
Member Avatar for Labdabeta

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
Member Avatar for Labdabeta
0
197
Member Avatar for SK33

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
Member Avatar for raj.mscking
0
188
Member Avatar for avenzEncina

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
Member Avatar for cgeier
0
147
Member Avatar for Patrick_3

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
Member Avatar for xrjf
0
598
Member Avatar for come_again

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
Member Avatar for come_again
0
317
Member Avatar for waseem1345

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?

Software Development c c# c++
Member Avatar for waseem1345
0
156
Member Avatar for khair.ullah

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 - …

Software Development c# vb.net
Member Avatar for Kavitha_2
0
389
Member Avatar for vineeth.shankar1

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
Member Avatar for Ancient Dragon
0
108
Member Avatar for theashman88

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 …

Software Development app-store c#
Member Avatar for tinstaafl
0
1K
Member Avatar for AbstractEden

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
Member Avatar for AbstractEden
0
4K
Member Avatar for jhender4880

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++
Member Avatar for jhender4880
0
465
Member Avatar for newbiewwcode

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++
Member Avatar for Ancient Dragon
0
365
Member Avatar for mohit_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
Member Avatar for pritaeas
0
176
Member Avatar for thirteen_xx

"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
Member Avatar for om314
0
241
Member Avatar for mohit_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
Member Avatar for Ancient Dragon
0
228
Member Avatar for pb404

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
Member Avatar for Alberto Bucur
0
10K
Member Avatar for sruthiashok

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
Member Avatar for sruthiashok
0
409
Member Avatar for begueradj

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
Member Avatar for begueradj
0
412
Member Avatar for Rashmi_1

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++
Member Avatar for David W
0
467
Member Avatar for Singh.saurav.5070

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
Member Avatar for Schol-R-LEA
0
169

The End.