43,549 Solved Topics
Remove Filter ![]() | |
Hello, I have a file which I need to read which contains some unusual characters (EG: '╠') and I need to be able to read it and convert those characters to numbers. As an example of what I am looking for would be code that reads a file and prints … Software Development c++ | |
So i'm in ap computer science right now and ArrayList are confusing the **** out of me. We're working on a program in which we have to create a method that adds an "ap exam class" to an ArrayList heres what it looks like: private ArrayList<APExam> myExams; myExams = new … Software Development java | |
Hi guys im a beginner at programming i started a book for beginners im only on lopps now but as uasuall i googled and wondered off into classes i keep getting this error, i initialized the float variables in the class by using the constructor. I'm not sure if this … Software Development c++ | |
If I want to multiple 2d arrays as 1d how should I do it? I mean ,I have a 2d array and I map it as 1d: for(int i=0;i<rows*cols;i++) A[i]=... I know how to multiply 2 arrays as 2d ,but representing them as 1d? Software Development c++ | |
How can i code a program in visual basic.net that when a control for color or font is clicked the appearance of the text in the text boxes is altered according to the following rules 1. If the check box text box 1 is checked the appearance of the text … Software Development vb.net visual-basic | |
I want to put the path and name of a spreadsheet, the page and number of pages and the date and time into the footer(s) and display it in Times New Roman 6 pts. I made the following macro: Range("A1").Select ActiveWindow.View = xlPageLayoutView` Application.PrintCommunication = False With ActiveSheet.PageSetup .LeftFooter = … Software Development perl visual-basic | |
![]() | In the application i'm working on, information will be saved to a database file which is located in the same directory as the executable application. In order for this file to be accessable for the executable while in a visual studio project, i would usually place it in the debug … Software Development visual-studio ![]() |
"DELETE FROM tbl_status where id "= & selecteditem Hi .. i have a problem here.. the query i have for delete button is wrong.. i raelly don't know what is wrong with this code.. someone help please.. this what i've gone so far.. Software Development vb.net | |
![]() | Public Function analyzeTotalFilesSize(Path) As Integer Dim lookInDirectory As New DirectoryInfo(Path) For Each Directory As DirectoryInfo In lookInDirectory.GetDirectories analyzeTotalFilesSize(Directory.FullName) Next For Each File As FileInfo In lookInDirectory.GetFiles If _ListOfFiles.Exists(Function(x) x.ToString = File.Extension.ToLower) Then _SizeOfFilesToCopy += File.Length / 1024 End If Next If _SizeOfFilesToCopy < 1024 Then errorhere -------->> Return _SizeOfFilesToCopy.ToString("#,##0.00") & … Software Development vb.net |
My program is almost done, but when i try to convert a number into cents, it does not calculate the cents properly. So if i enter 325, it says i have 3 dollars and 325 cents and my running total is not working. Each time NormalizeMoney is called it should … Software Development c++ | |
i can't find the error converting data type varchar to numeric pls help.. i already wasted a lot of hours to identify this error. conn = New SqlConnection("Server=GEN-PC;Data Source=GEN-PC\SQLEXPRESS;Initial Catalog=Brgy;Integrated Security=True;") If ResidentialComboBox.Text = "" Or LNameTextBox.Text = "" Or FNameTextBox.Text = "" Or MNameTextBox.Text = "" Or GenderComboBox.Text = … Software Development open-source vb.net | |
A blue passenger train moves southwards at a speed of 120km/hr. Unfortunately as it enters a junction it collides with a brown goods train moving northwards. The collision happened 50 minutes after the goods train takes off. Using a Java program illustrate the answer. Software Development java | |
Hi, Could someone please help me to optimize the attached code file. as i'm new to c# world. Thanks in advance cheers | |
When I format the date so that a field gets the value as year-month-day-hour-minute-second, I omly see the date-portion, the rest is filled with zeros. I use: strDT = Format(Date, "yyyymmddhhmmss") I get '20140226000000' What goes wrong, or how can I get the desired result? Software Development visual-basic | |
Hi All, I have got one scenario here in which I need to bind a DataGrid to a collection (array, ObservableCollection etc.). My Collection name is "WarningList" and the code is as follows :- **ViewModel :-** WarningList = {({result.WarningMsgCode, result.WarningColor})} **xaml :-** <data:DataGrid x:Name="gridSystemWarnings" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="2" DataContext="{Binding}" IsReadOnly="True" … | |
I have 2 forms , form one has a datagrid with 10 columns form 2 has a listview box with 4 columns i want to populate the listview columns with 4 of the values from a row in the datagrid when the row is selected and the 'add ' button … | |
am trying to read file in java but i have an issue bufferReader are stating from number 2 `public static String lineLengths() { try { String file = "C:\\\\Users\\\\isslam\\\\Documents\\\\NetBeansProjects\\\\AnimeAid\\\\tra.srt"; BufferedReader br = null; try { br = new BufferedReader(new FileReader(file)); } catch (FileNotFoundException e) { System.out.println(e); } String line; while((line … Software Development file-system java | |
I getting an error when I try to run this function here: def get_char_out(prompt=None): while True: try: return str(raw_input(prompt + ' ')) break except ValueError: print '\nInvaild input' print get_char_out('String, please') I keep getting this error here: String, please Traceback (most recent call last): File "main.py", line 11, in get_char_out('String, … Software Development python | |
Hello everyone! I am posting this code for anyone who may be having issues with connecting to a database. Feel free to use this code as you wish. This will be using the OLEDB library. [CODE] 'Imports Imports System.Data.OleDb Public Class Form1 'Declarations Dim con As OleDbConnection Dim cmd As … Software Development vb.net | |
So I have a button which adds a "Miner" then removes the cost of the Miner. The problem is that it is taking away too much, double the cost, and also will not buy if the current gold is equal to the cost. I have no idea why it is … Software Development gaming java mathematics | |
I have some errors LNK2019 with my homework, but I can't solve it. My error Error 7 error LNK2019: unresolved external symbol "void __cdecl input(int * &,int &,class std::basic_ifstream<char,struct std::char_traits<char> > &)" (?input@@YAXAAPAHAAHAAV?$basic_ifstream@DU?$char_traits@D@std@@@std@@@Z) referenced in function _main E:\Ex\Bai_1_No_File\main.obj Bai_1_No_File This is my code. main.cpp #include "function.h" #include <conio.h> #include <fstream> … Software Development c++ | |
Hi all, need some suggestions. This code looks like a jumbled mess to me. I am missing something and am not sure what. -Main should determain the letter grade of an average based on a 10-point scale and print out this grade. 90–100 A 80–89 B 70–79 C 60–69 D … Software Development c++ | |
Hi, I am very new to programming and I am unsure of how to start coding in c++. I need to create a currency conversion program. I need the code. I do have VS but have no idea of how to start the process of the coding. Software Development c++ | |
//I am writing a program that converts from one unit like mm to another e.g cm. The program should prompt invalid unit when something other than mm, cm, m or km is entered as the unit to be converted from or unit to be converted to. The problem is how … Software Development c++ | |
How do you pass the data in a field on one form to a field in another form? Software Development visual-basic | |
Hello! I have a silly blog that uses images emailed to me which I'm not frequently updating because the manual method is cumbersome. I'd like to create a program or script or something that will allow me to search my inbox for messages from a particular account or with a … Software Development | |
I am studying vb.net through the help received through this forum. While I was making a small programme Out of curiosity/error I created a module.later I thought it is not necesssary.So I wanted to remove it.I searched in the project Tab But I could not see the Delete command.So I … Software Development vb.net | |
I have this code:: name_list=[] name1=print(input("what is your name: ")) name_list.append(name1) print(name_list) it returns Jon [NONE] If i input a name jon. Why does it not append to list please? Software Development python | |
Could someone give me a few reasons why an Application isn't terminating on close? `*THIS IS FOR A JavaFX APPLICATION*` | |
I need to find a digit at a specific postion in a number. Example number 652796, user inputs a 4, "2" is displayed. I have the basis for it, but most of the time, the output is incorrect. Not sure what's wrong. #include <iostream> #include <cmath> using std::cout; using std::cin; … Software Development c++ programming-construct | |
This is PART of my GoldMiner class where the problem is occuring. I am getting a null pointer. I assume it is because of the way I declared my sceneController class. private static Game game; private static sceneController controller; public static void main(String[] args) { Application.launch(GoldMiner.class, (java.lang.String[])null); game = new … | |
Hi, i am new to groovy language. I was wondering if there will be anyone who will be able to help me understand the below code. static analyzeAPI(pkgname) { def refs = Yaml.load(new File(output_base + "/${pkgname}_PackageRefs.yml").text) refs.Classes.each { analyzeClassRef(pkgname, it.name) } } static analyzeClassRef(pkgname, name) { println "=== Analyze class … | |
Hello, I am new to C++ and have been writing a server program to help me learn. I am currently stuck on how to get a couple of classes passed by reference. I have been searching on forums for hours now and I just can't figure this out. I would … Software Development c++ | |
I'm parsing a date into three ints, then manipulating them. I then want to convert them back into strings so I can concactenate them with the slashes so I can search an array of dates saved in string format. I looked around and this code seems like it should work, … Software Development c++ | |
I need to read these numbers from a file: 2 10.5 5 20 10 30.2 It is not working. It skips over numbers. The first row (2,5,10) is supposed to be Hours and the second row (10.5, 20, 30.2) is supposed to be Pay.Any help is appreciated.Thank you. Note: This … Software Development c++ file-system | |
for save I write this........ With rs .Open "Select * from Dad", con, adOpenDynamic, adLockOptimistic .AddNew !SrNo = cmbbillno '!SrNo = GetNewNo("Dad") !DadItems = cmbIName !DadSize = cmbISize !Dad = txtDadIQty !Dadby = cmbOrTkBy.Text !DadDate = DadDate !deliverydate = deldate !partyname = cmbPartyName !amount = txtamount.Text !due = txtdue.Text !Receive … Software Development visual-basic | |
I am having a little trouble with my class Person program. It runs and builds without error...Yay....except I am getting 0 output. Anyone have any advice? #include <iostream> #include <string> #include <vector> #include <stdlib.h> using namespace std; class Person{ private: string name; int age; public: Person (string n, int a); … Software Development c++ | |
![]() | Can anyone tell me how to get rid of the white boxes around the buttons? I want the boxes to be blue so the buttons appear on an entirely blue panel at the bottom of the ffame. I'm using OSX 10.6.8 and Python 2.7. Thanks in advance. from Tkinter import … ![]() |
Hello, I'm a beginner using Python 3.3.3. I'm working on a little text-based rpg using the skills I've learned thus far, but am wondering what the problem is with my code. When I enter the first input response, like 1, everything seems to be fine, but when I enter 2, … Software Development python | |
I try copy a string to another string, but it has error with "_ps->copy(_pt,_beg,_end);". This is my code( but it is not full code): string* find_The_Longest_Word(string* _ps, int _beg, int_end) { string* _pt; _pt =new string(); _ps->copy(_pt,_beg,_end); return _pt; } Software Development c++ | |
Write a class that accepts a user's hourly rate of pay and the number of hours worked. Display the user's gross pay (gross pay = hours worked * hourly rate), the tax withheld (tax withheld = gross pay * tax rate) and the net pay (net pay = gross pay … Software Development java | |
Hi all! I have a USB Modem (dongle) made by ZTE. I normally use it for connecting to the interent. It also came with a dashboard/software that I can use to send & receive SMS and even make a call. I want to make an application with VB.NET that will … Software Development pc-peripheral vb.net | |
Hi to all! I decided to make project about cars and their makes. Can anyone suggest some interesting functions that it might have,to make it interesting Thank you,i opned for ideas 24/7 Software Development c++ | |
import random guessesTaken = 0 my_name = input("Hello, What is your name? ") difficulty = input("Well, "+ my_name + ". What dificulty would you like ? easy medium or hard? " if difficulty == easy number = random.randint (1,20) print ("Okay, " + my_name + ". I am thinking of … Software Development python | |
I am working on a homework assignment and have been hashing it out for days. Hopefully my novice status with this wears off soon. I am supposed to create an ISP calculator with checked radio buttons and the user enters the hours. Package A = $9.95 for 10 hours each … Software Development visual-basic | |
I think i went somewhat over my head with a little tool i wanted to make. The idea was to bind certain keys(users choice) to countdown timers and progressbars. But since the keys are never the same i have to save the chosen key for the selected progressbar. So when … Software Development | |
![]() | When we create an object how much memory will be allocated to it ? Is memory allocated for methods too ? If Yes, How ? Software Development java |
Need some help with the code below. Getting and error at ExecuteNonQuery() Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnRoomSave.Click Dim con As New OleDbConnection Dim cmd As New OleDb.OleDbCommand cmd = New OleDbCommand(Command, con) con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source='C:\PATIENT_O\PATIENT_O\Patient-O.accdb'" cmd.CommandType = System.Data.CommandType.Text cmd.Connection = con con.Open() cmd.CommandText = … Software Development open-source vb.net |
The End.