43,549 Solved Topics
Remove Filter ![]() | |
I have a simple loop which is matching the letters and giving the equivalent into binary. Forexample I have a sequence of letters as *abc*, then according to the code given below the binary generated will be 000010001000011 and saved in the variable at the end. What I want to … Software Development vb.net | |
Hello, Can anyone recommend an [U]light weight[/U] IDE for C development? Preferably open source, but definitely free. (for Windows) It doesn't need to have its own version control - I'm using subversion - a plugin to subversion would be nice but it okay if it doesn't. Currently my colleague is … Software Development c ide open-source | |
import java.io.*; public class QuizBee { public static void main(String[] args)throws IOException { BufferedReader a = new BufferedReader(new InputStreamReader(System.in)); int cor=0; System.out.println("\t \t \t \t \t \t \tWelcome to 10th Annual Quiz Bee of the Year"); System.out.println(); System.out.println("General Direction: In this question you are obligue to answer them honestly."); System.out.println("\t … Software Development java | |
**Enter row number: 4 Sum of numbers in row 5 is 31. Sum of all numbers above 4 is 15. this should be the output look like.. can someone help me? thanks. | |
Here's the entirety of my code. The problem I'm having trouble with is in the sortArray function. The first part of that function is used to sort the words gathered in a text file from A to Z, the second part is meant to find any duplicate words, ie 'a' … Software Development c++ | |
System.out.println("\t \t \tYou got " + (cor/10*50+50) + "%"); help me with this code.. i didn't get what's supposed to be the percentage.. what's wrong with it?.. i got 3 for cor and i should have 65% but i just get 50%.. Software Development java | |
Hi guys, I hope someone can help. I have a list view being populated by a Table (cashCustomers) in an Access DB which has customers Information. * CashAccRef * CashName * CashAddress1 * CashAddress2 * CashTown * CashAddress3 * CashAddress4 * CashAddress5 and the following Orders table (cashOrders) * ID … | |
Please help me. I want to set the identity specification to yes, but all the option is gray out. I could not change it to yes from no. Ĩ̷̊ñ sql server 2008. Thanks | |
Hi, so I have to write a program for my Java assignment and I am just starting out so I might be doing this wrong but I can't figure out why it won't invoke the method I have created. import java.util.Scanner; public class EvalMarks1 { public static void main(String[] args) … Software Development java | |
Okay, I'm very new to Java as a whole, and I'm just trying to get to grips with it. I'm experimenting with classes, and I'm struggling to get this one thing to work. Basically, I've made a short program which one can make matrices, and all it has at the … Software Development java | |
I'm trying to have my program find duplicates in an array of strings, and if it finds one, it swaps the duplicate to itemamount - 1, adds +1 to the WordAmt for that word, and moves the loop one spot down. I just am not sure how to properly do … Software Development c++ | |
Hi, I'm having some difficulty reading in boolean values from a file, particularly false values. Python can understand false values as empty strings, as well as a few other ways. For example: In [43]: bool(0) Out[43]: False In [44]: bool(False) Out[44]: False In [45]: bool('') Out[45]: False The problem is, … Software Development file-system python | |
I need to override String toString method so it woud print my deposits I dont't know how to override it, since in makeDeposit method I pass two variables I'm posting just a saple of my code, I'm not sure if you need the whole code public class Bank { private … Software Development java | |
Hi guys. I am having issues with the output of this program. Can somebody tell me what I have to do to make this work correctly? Here is the code I have so far: import java.util.Scanner; //text scanner to parse primitive types and strings using regular expressions. public class Operations … Software Development java | |
Hi all, I'm trying to set up a typedef for vector type in a header file I've named Container.h The struct is called Student_info and is in a file called Student_info.cpp with header file Student_info.h My code in Container.h is as follows; #ifndef GUARD_Container_h #define GUARD_Container_h #include <vector> typedef std::vector<struct> … Software Development c++ | |
public class asterisk { public static void main(String[] args) { int row, col, spc=3, spc1=2, spc2=1, spc3=0; for(row=1;row<=1;row++) { for(col=1;col<=1;col++) { for(spc=spc;spc>0;spc--) { System.out.print(" "); } System.out.print("*"); System.out.println(); { for(spc1=spc1;spc1>0;spc1--) { System.out.print(" "); } System.out.print("**"); System.out.println(); { for(spc2=spc2;spc2>0;spc2--) { System.out.print(" "); } System.out.print("***"); System.out.println(); { for(spc3=spc3;spc3>00;spc3--) { System.out.print(" "); } … Software Development java | |
I'm trying to use a while loop to read in some files, but it only reads once and quits. Not sure what's wrong, professor says this is how it should work as long as I'm understanding him correctly. void populateStruct(ifstream &filein, WordStruct Words[1000], int &itemamount) { while (filein >> Words[itemamount].Word); … Software Development c++ | |
I want to have 60 buttons that each button has same function with other but not the output when its selected/focused. I don't want to make one by one function. Here is what i mean: Private Sub Button_Click() Handles button1.click, button2.click, .... ,button60.click Dim ST As Button [ST As Selected/Focused … Software Development vb.net | |
Hi, Please help on this. How can I let the buttonmenus shows when the toolbar menu is clicked? Here is my code: Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button) Select Case Button.Description Case "Maintenance" 'I want to display submenus when this is clicked! 'button menus: '1.) Employee '2.) company '3.) department … Software Development gui visual-basic | |
Hello everyone, I have question about how AudioTrack instance should be used for streaming applications. Below my code example and some brief explation about code ... /* some work before */ InputStream in = client.getInputStream(); AudioTrack output_stream = new AudioTrack(AudioManager.STREAM_MUSIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_8BIT, 8192, AudioTrack.MODE_STREAM); byte[] buffer = new byte[8192]; … Software Development android android-development api java | |
Hi all, I need help with this code: DataAdapter1.Fill(DataSet1); DataSet1.Tables[0].DefaultView.Sort = "sortcolumn"; BindingSource1.DataSource = DataSet1.Tables[0].DefaultView; After execution, the "DataSet1.Tables[0].DefaultView.Sort" property is reset to empty string. What might be the cause of this, and how can this be avoided? Thanks Software Development | |
I am trying to serialize data in my XNA project. I have a Texture2D background property that I use during runtime, but I also have a 'string property' to hold my Background name. This will allow me to serialize the asset name so I can later use the info to … Software Development | |
Hello All, this is my first post, so bear with me... My problem is with the following code. I have a simple menu setup to do some number conversions, and everything compiles properly. When i run the code, i end up with the Java VM (in bluej) just running endlessly, … Software Development java | |
Hi Everyone. It's been a while since I was on here last, but ran into an interesting problem with a nested for loop that I cannot solve. Hoping someone here will know the answer. I placed breakpoints in my code at the For x=1 to 10 line and after to … Software Development programming-construct visual-basic | |
Hello, I need to write a program to take in a name (max 101 characters) and out store in into an array so that I can output it like a list. These 2 programs are apart of a bigger program that keeps asking if you want to add another name … Software Development c++ | |
Hi, I am trying to create the most general function possible to test if an object passed into it has mutability or not. With some prior help from pytony, it seemed that the best way to do this is to try to set and attribute. If the attribute can be … Software Development python | |
Hello, I am currently working on a project and I am stuck at the moment. Basically I have a few JToggles buttons, a jbutton and a text box. When the user select a jToggle button, write some text in the text box and clicks on the Jbutton, the text on … Software Development java | |
Im new here and i want to make this code more simple: If tabC.TabCount = 1 Then NClose.Enabled = False CloseNote.Enabled = False CloseNoteContext.Enabled = False CloseNoteX.Enabled = False Else NClose.Enabled = True CloseNote.Enabled = True CloseNoteContext.Enabled = True CloseNoteX.Enabled = True End If I try this `NClose.Enabled, CloseNote.Enabled, CloseNoteContext.Enabled … Software Development vb.net | |
I get a stackoverflow exception on following commented line. namespace Football_Manager_WFA { public partial class Settings : Form { Color def_bgdColor = SystemColors.Control; Color def_fontColor = Color.Black; // ERROR static FontFamily fontFamily = FontFamily.GenericSansSerif; Font def_fontType = new Font(fontFamily, 8.0f); } } Software Development | |
I need some help with the following. I have a form called frmMain that has a couple of icons, one of the icons when clicked loads frmNotes within a Panel, frmNotes has a ListView and i want to load data from a Microsoft Access Database Table into the ListView I've … Software Development listview microsoft-access vb.net | |
Hi everyone. I am making a random music player. How can I play music randomly? My WMP(windows music Player) is Invisible in order to become a background music. What code should need to aplpy to create this program? Here is my Code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e … Software Development vb.net | |
The following are the requirements of the program and all code can be written within one C++ source file for the purpose of this assignment. 1. Declare three structs to store Athlete, Event and Registration details. The struct definitions are provided in Appendix 1. 2. Write the driver code (main) … Software Development c++ | |
hi there, I am making an animation which include music. I want my program to stop the animation when the music stops. Anybody know what code do i need to apply through if condition? I need your help... =( tnx. Here is my code: Private Sub Form1_Load(ByVal sender As System.Object, … Software Development vb.net | |
Hi i have a datagrid in my c# windows form and i want to merge the row he can input data in w1, w2, w3 and .., and save. weeks Item 1 | Forecast | w1 | w2 | w3 Item 1 | Stock on Hand | w1 | w2 … Software Development | |
/*Ok I have code that's behaving unexpectedly The following program is supposed to print prime numbers for n1=100,n2=1000,n3=10000 and n4=100000 except that for n1=100, it prints the squares of primes less than 10. I can implement this same program in c++ and wouldn't get such output. I need another pair … Software Development java | |
Hello, I am doing a school project and need assistance on validating raw input, this is very simple stuff, but can someone answer this for me? The statement is: ordertype = str(input("Is the order pickup or delivery?")) Only two values could be entered: P or D (or p or d), … Software Development python | |
My initial thoughts on the default constructor are that it was called automatically. From what I can see, it seems that this is so but a constructor called automatically doesn't initialize int or char variables for exampe, to Zero as I originally thought. It appears that they initialize the variable … | |
I am trying to find the minimum number when the user enters any 5 numbers I am not sure why this code is not working, every time I run this function I always get 0. Can someone please tell me what is wrong! int i; int num1 = 5; int … Software Development c++ | |
-->>Hi everyone,I'm having this problem with updating records in my application my code is: SQL = "UPDATE Ministers SET User_Name='" & txtUser_Name.Text & "',Password='" & txtRetype_Password.Text & "',Prefix='" & cmbPrefix.Text & "',Passport='" & NewPicture_Name & "';" Call dbConnect Conn.Execute SQL Conn.Close Set Conn = Nothing -->>The SQL and Conn variables … Software Development visual-basic | |
any one help me in completing my program on FLAMES game i am not getting how to complete it please help me Software Development java | |
I have this code: static String format(String number, int decimalLength) { char[] decimal; System.out.println(number); String[] formatA = number.split("."); System.out.println(formatA.length); StringBuilder cents = new StringBuilder(""); int dollars = 0; dollars = Integer.parseInt(formatA[0]); decimal = formatA[1].toCharArray(); for (int i = 0; i < decimal.length; i++) { if (i < decimalLength) { cents.append(decimal[i]); … Software Development java | |
[FONT=Comic Sans MS]Hi everyone, I'm shreya. I'm doing my bca (bachelor in computer applications)-4th sem. I'm required to do a mini project on dbms using msaccess and backend as vb. I'd be glad if you can suggest a project. I have 3 months to complete this project. I hope I'll … Software Development visual-basic | |
Hello, I am having trouble passing a file into parallel arrays. Based on the code below, I get a bunch of jumbled numbers on my cout screen that don't even show up in the input file. I have attached a PNG of the console output. I am at a loss … Software Development c++ | |
I need some help with the following. I have a form called frmMain that has a couple of icons, one of the icons when clicked loads frmNotes within a Panel, frmNotes has a ListView and i want to load data from a Microsoft Access Database Table into the ListView I've … Software Development listview microsoft-access visual-basic | |
Hi all, just wonder is there any way to have a constructor parameters that having another classes with parameter? for example like class Player { public: Player(char = 'X', char = 'O'); }; class Board { public: Board(int, Player); }; Software Development | |
Dear All, I have a question about array which let me confused and I think it needs deep understanding of arrays. I would like to know why it is possible to use array of char as pointer without a fixed size and also without dynamically allocating memory for it and … Software Development c | |
Hi there. I have a problem in randomly falling an object. I want my program to randomly fall an image and I only have 1 image fall. The code I've used for falling an object is here. `Inline Code Example Here` Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As … | |
I have written a program for the 8-Queens problem.It prints all possible solutions. queens() finds all the possible solutions. ok() tells whether the given column and row is safe or not. The very strange problem is: 'Count' won't increment. I have no idea why. #include<iostream.h> #include<stdlib.h> #include<conio.h> int arr[8][8]={0}; int … Software Development c++ | |
Hello, I've got a code (modified but not written by me) which uses a timer to find the idle time, and I added the code to make the computer go to sleep mode if the timer matches the time value set. However, when I resume the computer, it goes back … Software Development | |
Hi, I'm making a program using Visual Studio 2010. I'm strugging with how to correctly use classes and their instances. For example; What is the difference between using the following ways to call function from one class within another... Example 1: Dialog.h #include OtherClass.h MyOtherClass myClass; Dialog.cpp myClass.MyFunction(); Example 2: … Software Development c++ visual-studio |
The End.