132,726 Archived Topics
Remove Filter ![]() | |
I am building a game similar to the tron game. I want to use the arrow keys to control the movement of the player. I do not have all the code completed but attached what I have so far. #include<iostream> #include<string> #include<conio.h> #include<Windows.h> #include<cstdlib> #include<ctime> using namespace std; //Declarations bool … Software Development c++ | |
My program is working perfectly but when I want to initialize the default constructor which is all zero's it prints -9.25596e+061 . Hier is the code : class Sales { private: static const int QUARTERS = 4; public: double sales[QUARTERS]; double average; double max; double min; Sales(); Sales( double ar[]); … Software Development c++ | |
Hey Guys, please I need help badly. Thank You I read a text file from my hard disk which contains as follows.... void main() { int A = 5; int B = 5; int C ; C = A + B; cout << C ; } So, what I need … Software Development java java-netbeans | |
hi. i have problem with following code: when i give address directly it works correct but when i get address from command line, it does n't work. int main(int argc, char** argv) { int size; int fd,fd2; char buf[10000],buf2[10000],FileAdd[10000]; size = read(fd2,buf2,10000); //char *FileAdd = malloc(size); strcpy(FileAdd,buf2); if ((fd= open(FileAdd, … Software Development c | |
how do I put hexadecimal values into a byte array?? I did the following private byte[] buffer=new byte[] { (byte)0xC8, 00, 0x09, 0x4A, 32, 0x4D, 45, 76, 33, 0x2E, 30, 32, 00, 05, 00, 00 }; but when i print them using System.out.print(...), the output is -56 0 9 74 … Software Development java | |
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { DefaultListModel list = (DefaultListModel) jList1.getModel(); String sql = "Select * from salesorder"; try { Class.forName("com.mysql.jdbc.Driver"); Connection con = (Connection) DriverManager.getConnection("jdbc:mysql://localhost/userauthentication", "root", ""); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(sql); while (rs.next()) { Integer id = rs.getInt("id"); list.addElement(id); } jList1.setModel(list); } catch (Exception e) { … Software Development java | |
Hey Everyone Is it possible to disable the dates that appear before todays date in a dateTimePicker control? I want to put in some validation so that my users can only select days in the future...ie a future appointment date Any ideas ? Thanks Software Development vb.net | |
My professor gave us an assignment that I am not entirely sure how to start correctly. She gave us 2 java classes as well to use. Any assistance would be greatly appreciated... So basically, two things need to be done. I need to create two more classes, ExternalHashing and IndexHashTable...and … Software Development algorithm data-structure file-system java storage | |
I have to do a second assigment on doubly linked lists. Problem description: Create a class to implement a doubly linked list to store student records. Besides the basic operations, the class should include a sorting method that allow the user to sort the records in the list. Programming Requirements: … Software Development java linked-list seo | |
Hello. Is there any way that a tester, who does not have visual studio installed on his/her machine, can determine the .net framework version of an application he/she is testing? Thanks for your help Software Development asp.net visual-studio | |
how can i convert an integer into a barcode? Software Development vb.net | |
I'm not sure if its my computer or what. For some reason when I run programs in class they go through fine but after running the same program at home it doesnt seem to work. Basically, what I'm trying to do is create an event handler that draws a circle … Software Development python | |
Please help me with this code. when i tried to run it, it doesn't continue to this part "printf("\n\n Money: ");" but when i tried to change the data type of money to integer it does continue, but i need a float data type. please help, thank you. #include<stdio.h> #include<conio.h> … Software Development c | |
I'm making an address book for class and i'm stuck. The teacher helped with some of the code I already have. Sorry for the lack of comments. I need help with the function to add records and then save them. Thanks #include <iostream> #include <fstream> #include <iomanip> #include <string.h> using … Software Development c++ | |
For those of you who have worked with NMMAP before, Im raising an error each time I run my script. I'm using <python3 nmap_scanner.py -H 10.50.60.125 -p 21, 1720> at the command line to execute the script, and im running into the error: Traceback (most recent call last): File "nmap_scanner.py", … Software Development python | |
I wrote this matlab code: [CODE] function [ n ] = SumTest( a, b ) n = a + b; end [/CODE] and deployed with MATLAB Builder NE. That create a class named MatLabTest with a method named SumTest. When I try to create a MatLabTest instance: [CODE] MatLabTest mt … Software Development | |
the formula for naive bayes is P(A/B1,B2,B3...Bn) = [ P(A) * P(B1/A) * P(B2/A) * . . . P(Bn/A) ] / [ P(B1) * P(B2) *....P(Bn) ] i am working on a project to classify email as spam or not. i have a large data set. i am using nltk … Software Development python | |
I am using system.net.mail for my email application and it works fine, untill I try to send multiple BCC address's. I can't work out why it is failing I get a long message from my try trap which basically says the server response was repeat limit reached. However I don't … Software Development vb.net | |
Telling you before hand, i am just starting to learn, so please refrain from making fun of me i k i am real weak in this. ok here is what i need to do, i have been trying for ages but i am having huge problem creating dynamic checkboxes. This … Software Development | |
![]() | Hey, we just started learning functions in class. We were given a project to complete. I'm trying to work out the errors, but I'm stuck with error C2084: function 'void bubblesort(int [],int)' already has a body error C2084: function 'void print(int [],int)' already has a body error C2084: function 'void … Software Development c++ |
Work has informed me that I need to run reports a certain way. I need to pull data out of the system database, and compile a report. I have a database with 3 tables. Personel (contains employee data), Q1 (1st quarter data) and Q2 (second quarter data). I'm trying to … Software Development dataset open-source vb.net | |
Hi everyone, how can I send data from one application to another. Something like a chat. I have 2 applications opened and then I want to send some data, for example label1.text, to the other opened application and then for example show it with a MSGBOX. Do I nees a … | |
Hello again everybody. I have a question which may be very basic for allot of you, so here it goes. I want to understand the process of creating makefiles. I've I realise there's some books out there like 'Mastering Cmake' and 'GNU Make' which describe the insides of these things, … Software Development c++ | |
when are we supposed to use StubOutWithMock() ? Software Development python | |
![]() | hey guys, this is my code so far, it genarate 10 numbers between 100-1000 what I want to ask how I can let the program ask how many numbers I need to genarate , and whats the lowers bound, instead of 10, the i can choose any number ? also … Software Development java |
im trying to send image from one system to another(client server model),it works fine when i use loopback ip address(same machine as both client and server) but when trying to send to another system,the gimp doesnt recognize the image and displays an error after receiving the image... here is the … Software Development c client-server image | |
Hi guys, Have been developing C# desktop apps for a while now and when it comes to packaging(not clickonce),deployment with cd/dvd, I publish using visual studio's Build->publish option.The application installs well but all the paths to resources like images are broken.Where I'm I supposed to place the resources or which … Software Development c# visual-studio | |
private void update() Int64 sum = 0; sum = (!string.IsNullOrEmpty(Request.QueryString["Id"])) ? Int64.Parse(Request.QueryString["Id"]) : 0; if (sum != 0) - Here in Debug mode, i get this condition is false and equals 0 { var context = new myDatabase(); var s = context.myTableName.FirstOrDefault(c => c.Id == sum); if (s!= null && … | |
Hello Every body I am standing on a cross road with a doubt which way is the correct way. As you all are seeing the image Groupbox and CheckBoxes all are dynamically created. What I am confused about If user select Sun Tue and Fri from XII2013SIF01 and Mon Tue … Software Development | |
hi everyone, how can I read the html code from a certain web page opened with some browser. For example I have firefox with 2 opened tabs and then I want to read both html code until I can find some tags inside those opened web pages. thanks. Software Development html-css vb.net web-browser | |
Hey guys, I have been reading the forum for a while, but I couldn't find anything that could help to figure out my current assignment. Its a very simple program, but somehow just doesn't work for me. I'm a beginner and I hope that somebody can explain what am I … Software Development c++ | |
HI all, please any one help,its very urgent.I need to store one table in an object (collection) then want to retrieve. so i have confusion which is the best method to use whether list,map,set........ etc and my table values are upto 11 records. Software Development java | |
I am beginner on java and i am having trouble while compiling below given code on CMD. **This code is taken from a book.** > E:\sher\SkyDrive\Exercise Files\L04>javac Student.java > > E:\sher\SkyDrive\Exercise Files\L04>java Student > Exception in thread "main" java.lang.NoSuchMethodError: main > // Student.java /* Demostrates the most basic features of … Software Development java | |
hi,a question .. why does my script work as sh script.sh and not as ./script.sh ?? also,i was trying to write a script that would filter out a pattern in a .txt file and display the count of the same. Say my pattern is king, and there are 4 "king"s … Software Development shell-scripting | |
I want to filter my datagrid view in my winform with a date range. I have 2 label with StartingDate(lblStart) and EndingDate(lblEnd) which is called from the datepicker on another form. Filter = "(DATE >= '" + Convert.ToDateTime(lblStart.Text).ToString("dd/MM/yyyy") + "' and DATE <= '" + Convert.ToDateTime(lblEnd.Text).ToString("dd/MM/yyyy") + "')"; And this … Software Development vb.net | |
Hi folks Im a newbie. I have a combobox cboTeachersName that is bound to deptTeachers table. At runtime, it contains teachers of given subject (Course). I then select a teacher and save in a field in another table called Summaries. PROBLEM IS When I load the form and load the … Software Development vb.net | |
// In this program: when i compile this program, the complier shows error in the main section(I have mention this error in main section) that is "can not convert sample to sample in assignment". this error is occuring only when i try to access private members of class through pointer … Software Development c++ | |
I can not for the life of me figure out how to solve for a cubic equation using visual basic. I have tried multiple codes found on the internet, but they do not work or there is code I do not understand (such as root.root). Here is the equation I … Software Development visual-basic | |
#include <iostream> #include <fstream> #include <windows.h> #include <ctime> #include <string> #include <iomanip> using namespace std; enum ConsoleColor {Black, Blue, Green, Cyan, Red, Magenta, Brown, LightGray, DarkGray, LightBlue, LightGreen, LightCyan, LightRed, LightMagenta, Yellow, White }; void line(void); const int Start=1900; void write_Data(); void Read_Data(); void SetColor(int text, int background=Black) { HANDLE … | |
| |
I have two questions here. First of all, how do I enable selection of multiple listbox items and select them via code? Secondly, how do I prevent the user from selecting multiple lines? Now, for some background and my thoughts. I'm working on a project for computer science in which … Software Development data-science vb.net visual-basic | |
I have, what I thought, was a trivial question however I am not quite sure of an answer yet. I'd like a two dimensional array of strings and integers. The first "column" will be string and the second "column" will be integer. later i want the first value of array … | |
Part of a program I did. I don't understand why it doesn't work. import java.util.Scanner; public class Reports { public static void main(String args[]) { int[][] sales = new int[6][4]; String [] company = {"Dallas","Chicago","Boston","New York","Seattle","Washington"}; EnterData(sales,company); Highest(sales,company); } public static void EnterData(int sales[][],String company[]) { Scanner input = new … Software Development java | |
Ok, I know you guys don't really just give away the answer to the whole problem like that. But I really can't figure this one out.... The question states: The following represents some sample scores obtained by students in a test: 5,4,7,10,0,6,0,1,9,6,8,999. 999 is the dummy value which terminates the … Software Development pascal | |
Hello, I want to make something like windows explorer. So the easy part first. I added these: [CODE] ShellTreeView1: TShellTreeView; ShellListView1: TShellListView; ShellComboBox1: TShellComboBox;[/CODE] I connected them and everything is good. I can see files and I can navigate folders, drivers, e.t.c. I changed the ViewStyle attribute of ShellListView1 to … | |
I need to convert python code to javascript. do anyone here know javascript? please give your mail id i will sent the python code to your mail! thanks in advance :) Software Development java javascript python | |
i want to type the path manually in folder browser dialog, like file browser dialog. Software Development web-browser | |
Hi everyone, I am writing a program that converts numbers to words and vice-versa, like typing on a older cellphone. The user enters as many messages as he wants in numbers and/or text. The first character of the messages indicates what the remaining string is: numbers or letters. I can't … Software Development c++ | |
Huffman Code In this assigment, you need some text files. Click HERE to download some. In this assignment, you are to implement the Fixed-length Huffman coding that we learn in the class. You should perform the following: 1- Huffman Encoder. a. This is a C++ program that reads as input … | |
Hey guys, I'm making a program to count the number of zeros and tens in a list of numbers in the format: 5,10,5,0,4,6,7,3,0,10,2..... Yeah like in that format, how do I make it read the data like that without a set number of values to be entered and count the … Software Development pascal |
The End.