132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for arcticman452

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++
Member Avatar for Ancient Dragon
0
2K
Member Avatar for ilian.bonov

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++
Member Avatar for ilian.bonov
0
141
Member Avatar for Lonerli

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
Member Avatar for JamesCherrill
0
220
Member Avatar for fafa70

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
Member Avatar for fafa70
0
342
Member Avatar for cool_zephyr

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
Member Avatar for JamesCherrill
0
401
Member Avatar for Adi92

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
Member Avatar for JamesCherrill
0
244
Member Avatar for Elmo_loves_you

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
Member Avatar for B2.Aashu
0
4K
Member Avatar for rhaylee

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for rhaylee

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
Member Avatar for JamesCherrill
0
438
Member Avatar for kirtee2209

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
Member Avatar for kirtee2209
0
419
Member Avatar for gamaliel
Member Avatar for matcooper
0
116
Member Avatar for dp121307

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
Member Avatar for dp121307
0
382
Member Avatar for ronnelayson

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
Member Avatar for ronnelayson
0
110
Member Avatar for kortneycoles

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++
Member Avatar for kortneycoles
0
174
Member Avatar for clouds_n_things

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
Member Avatar for chriswelborn
0
2K
Member Avatar for redshanks

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
Member Avatar for shahebazqz
0
120
Member Avatar for shanki himanshu

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
Member Avatar for shanki himanshu
0
163
Member Avatar for UKnod

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
Member Avatar for UKnod
0
385
Member Avatar for sana.f.qureshi

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
Member Avatar for ddanbe
0
230
Member Avatar for rpcob

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++
Member Avatar for Captain119
0
4K
Member Avatar for 404notfound

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
Member Avatar for G_Waddell
0
119
Member Avatar for jarduz

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 …

Software Development app-store vb.net
Member Avatar for schroaus
0
248
Member Avatar for christinetom

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++
Member Avatar for Tumlee
0
262
Member Avatar for krystosan
Member Avatar for vegaseat
0
138
Member Avatar for moha_1990

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
Member Avatar for stultuske
0
207
Member Avatar for prathiyus

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
Member Avatar for prathiyus
0
5K
Member Avatar for Sarama2030

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
Member Avatar for Sarama2030
0
166
Member Avatar for Anonymous3

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

Software Development c c# c++
Member Avatar for Anonymous3
0
228
Member Avatar for vishalonne

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
Member Avatar for tinstaafl
0
206
Member Avatar for jarduz

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
Member Avatar for tinstaafl
0
149
Member Avatar for yuugib

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++
Member Avatar for meggy12
0
332
Member Avatar for cvanithakpm

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
Member Avatar for jwenting
0
192
Member Avatar for sherjaan

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
Member Avatar for JamesCherrill
0
824
Member Avatar for leghorn

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
Member Avatar for chriswelborn
0
150
Member Avatar for taekiewzz

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
Member Avatar for FenrirMX
0
3K
Member Avatar for gbhs

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
Member Avatar for jelly04
0
169
Member Avatar for irtza

// 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++
Member Avatar for samiz4j
0
295
Member Avatar for ChemE_Programma

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
Member Avatar for ChemE_Programma
0
712
Member Avatar for kcys.wong

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

Software Development c++ ios
Member Avatar for Ancient Dragon
0
255
Member Avatar for paa.klose2

i wanna know wheather programming needs any software to operate

Software Development
Member Avatar for Schol-R-LEA
0
121
Member Avatar for Aarowaim

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
Member Avatar for Reverend Jim
0
711
Member Avatar for Ali Musa

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 …

Software Development delphi pascal
Member Avatar for House_of_Dexter
0
202
Member Avatar for Accouter

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
Member Avatar for Accouter
0
226
Member Avatar for HelpWanted2115

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
Member Avatar for House_of_Dexter
0
274
Member Avatar for terataki

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 …

Software Development delphi listview pascal
Member Avatar for House_of_Dexter
0
1K
Member Avatar for siss

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
Member Avatar for TrustyTony
0
176
Member Avatar for rexdon

i want to type the path manually in folder browser dialog, like file browser dialog.

Software Development web-browser
Member Avatar for tinstaafl
0
290
Member Avatar for breezett93

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++
Member Avatar for tinstaafl
0
226
Member Avatar for mohammad.alsheyab

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 …

Software Development c c# c++
Member Avatar for Ezzaral
0
216
Member Avatar for HelpWanted2115

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
Member Avatar for zurichy
0
164

The End.