132,726 Archived Topics
Remove Filter ![]() | |
Hi, i'm trying to creating a program on c++ which relates to weight this is my problem so far [CODE] cout << "Enter weight between 1 to 60KG" << endl; cin >> weight; if (weight >= 1 && weight <= 60) cout << "Your weight is accepted" << endl; if … Software Development c++ | |
hey guys/gals im havin a problem in my test.cpp file in line 65 where i have cout << date.print(); the compiler says: test.cpp: In member function âvoid Test::print() constâ: test.cpp:67: error: no match for âoperator<<â in âstd::cout << ((const Test*)this)->Test::date.Date::print()â where am i making a mistake because i have <iostream> … Software Development c++ | |
I've got this applet to build with no errors but then I try to run it and when I click the button in the applet, nothing happens...at least, not in the applet. Instead, jGRASP gives me all this stuff and I don't understand a bit of it: ----jGRASP exec: appletviewer … Software Development java java-swing | |
How can we [B]shift the Origin [/B]from the Top-Left corner to the Center of screen in [TEX]Turbo C Graphics Programming[/TEX]? Software Development c | |
My program complies fine but whenever I run it the applet loads but its blank and at the bottom it gives me Applet Not Initialized. I have no idea whats causing this if someone could help me out would be greatly appreciated. The Errors im getting are: [QUOTE] at javax.swing.ImageIcon.(init)(ImageIcon.java:167) … Software Development java java-swing | |
Hi guys.Can you write a program that reads data through a com1 serial port that communicates with a plc using c++ and inline asm instead of the ladder logic interface? I work at a cinema as a projectionist and the whole booth is automated with a bunch of these monsters … Software Development c++ | |
Hi... i have a little problem on my code... HI open a txt that have this: LEI;7671;Maria Albertina da silva;xxxx@gmail.com; 9;8;12;9;12;11;6;15;7;11; LTCGM;6567;Artur Pereira Ribeiro;fdsdfsd@gmail.com; 6;13;14;12;11;16;14; LEI;7701;Ana Maria Carvalho;asasssas@gmail.com; 8;13;11;7;14;12;11;16;14; -------------------------------------------------------------------------------- LEI, LTCGM are the college; 7671, 6567, 7701 is student number; Maria, Artur e Ana are the students name; [email]xxxx@gmail.com[/email], … | |
Hey guys, I have a homework assignment to which this form connects to a database via a gridview and the windows form at the bottom has a place at the bottom to enter a last name to which it should do a LINQ to SQL query based on the last … Software Development sql visual-studio | |
I followed a tutorial and built my own little program but get this message: Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at Gui.<init>(Gui.java:27) at appls.main(appls.java:6) What to do? Here is my code btw [CODE]import java.awt.FlowLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JOptionPane; … Software Development gui java java-swing | |
Hi Guys, I'm a beginner programming with Python. This is my first program. The purpose of this program is to add two numbers and then give me the result. However, after that I want for it to ask me if I want to continue (y) or (n). I came with … Software Development python | |
Ok i am trying to have the user give a directory via the command line (./a.out /usr/bin) and then output all the files in that directory. I don't really know how to approach this but here is what i have tried. [CODE]#include <iostream> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include … Software Development c++ | |
i am facing problem while taking input via...JOptionPane.showInputDialog()....plz tell me what package i have to import for it.....:rolleyes: Software Development java | |
Ok so im having some trouble trying to figure out how to read a line from a txt file which ive incorporated my C knowledge about reading a txt file into this main file. apparently im getting it wrong and Im almost confused. any help would be nice. posting my … Software Development c++ engineering file-system visual-studio | |
Hey all, I'm as new as it gets. My goal is to extract and store NTFS permissions (files/directories), for the purpose of restoring them on-demand (using Windows XP SP3). I read all around the subject, (specially over MSDN), and I managed to make a working code via the SDDL format. … Software Development c file-system windows-vista | |
we started classes, i need some pointers on my code if you can help please. Define a class called Month. Your class will have one attribute of type int to represent a month (1 for January, 2 for February, and so forth). Include all the following methods in this class: … Software Development c++ | |
Hi Folks -- I'm an old Borland C++ 4.52 guy who used to rock at OWL and BDE in the 90's, but I'm not a programmer anymore. I still keep my fingers in it -- I've been maintaining a hobby app using my old BC++ 4.52 compiler from '95, and … | |
Hello, I am making a program that calculates factorial and summation. I ask the user what they would like to do, then ask them to enter a whole number. The program I wrote has loops, so if the user wants to do this again, they can. When I do the … Software Development java | |
ok, so i have a problem to do in java that i just can't seem to figure out. here is the problem: Write a Java program that prompts the user for how many individuals they will be entering. Then program will then prompts for each individuals name and account balance. … Software Development java | |
Hello everyone I want to run a .jar file, but the only way to run in my computer is with the "java -jar file.jar ", but the problem is that the application conects to a mysqldatabase, when I want to add something in the program appear a message that say … Software Development java java-swing mysql open-source session xml | |
[CODE]File tempFile = new File(fw.getAbsolutePath() + ".tmp"); BufferedReader br = new BufferedReader(new FileReader(fw)); PrintWriter p = new PrintWriter(new FileWriter(tempFile)); String serData=(String)loadService().elementAt(i); StringTokenizer st = new StringTokenizer(serData, ":"); String code=st.nextToken(); String name=st.nextToken(); if (!name.trim().equals(deleteString)) { p.println(st); p.flush(); } p.close(); br.close(); if (!fw.delete()) { System.out.println("Could not delete file"); return; } //Rename the … Software Development file-system java | |
Hi I am doing a lab where I have to print out all of the locales when the JButton is pressed but when I run the program all it does is show the Vietnamese locale anyone any suggestions how to show them ALL ? [CODE] import java.awt.*; import javax.swing.*; import … Software Development gui java java-swing | |
I need help creating a python function that makes concentric circles. I already have a function that makes a circle(from the Python Programming book), so I thought I'd use a for loop; however, I'm not sure how. Here's what I have so far: (where 'number' is the number of circles, … Software Development python | |
[B] I have this method:[/B] [code] static int countLeaves(BinaryNode node) { if (node == null) { return 0; } else if (node.left == null && node.right == null) { return 1; } return countLeaves(node.left) + countLeaves(node.right); } [/code] and i want to Write a client program that constructs a binary … Software Development java | |
hey guys. i'm working on this project and i can't seem to get it figured out. there's a lot of steps involved, but i can't get any further right now because i cannot seem to figure out how to place values in an array. the program should ask the user … Software Development c++ file-system | |
Hi, I am writing a program for my C++ class that must create a struct(Hero) and make an array of it. My class is using the lvp library and i was wondering if anybody could help me make a vector of hero objects. This is what i have so far: … Software Development c++ | |
Hi, I want to make a game that I saw in internet but via applet code (and with move counter). The game is [URL="http://leepoint.net/notes-java/examples/games/slidepuzzle/slidepuzzle.html"]http://leepoint.net/notes-java/examples/games/slidepuzzle/slidepuzzle.html[/URL] Could someone help me please ??? Software Development java | |
//Program checks employment status, if part time, NO VACATION, if full time, program goes into if/else nest and asks for number of years working at company. More than five years,full time employee granted 3weeks of vacation. Five years or less, full time employee is granted 2weeks of vacation. [CODE]#include <iostream> … Software Development c++ | |
i am writing a small script and part of it requires comparing two version strings in the form V[1-9].[0-9].[0-9].[0-9] The script will perform some action if the two strings have different subversions (STRING1=V1.1.0.2 and STRING2=V2.1.0.4 for example). So far the script is [CODE]for i in {1..4} do if [ $STRING1[(ws:.:)$i] … Software Development shell-scripting | |
can i make a program open another program after a user selects it such as i am making a menu and i want if the user enters 1 it opens the program accociated with 1 or will i have to paste all the files from the external program to the … Software Development c++ | |
I'm trying to convert from some Java code, and I've got one massively complicated headache. Bear with me while I see if I can provide a comprehensible explanation. Let's suppose I have an abstract class called BaseDatatype. Other classes will inherit from this, e.g. StringDatatype, NumericDatatype and so on. Now, … Software Development java | |
i have this piece of code and i want it to be implemented in vb.net [CODE]Sub DrawScreen() If Picture1.Point(1 + x + (i * 4), y + (j * 4)) = RGB(c1, c2, c3) Then v(&HF) = 1 Picture1.Line (1 + x + (i * 4), y + (j * … Software Development vb.net | |
Hi i'm a student and have problem with moving bitmap. I must load it in the center of client area and after there moving using keys but it doesn't work :( Can you help me this is the code:[CODE] CKursovaView::CKursovaView() { size=CSize(50,50); // TODO: add construction code here } CKursovaView::~CKursovaView() … Software Development c++ | |
--Homework-- Write a C program that codes a string which is given by keyboard so that the coded string includes characters with their number of sequential occurrences. For example, if the string to be coded is AAABBFFFRRRRZTT then the coded string must be A3B2F3R4Z1T2. You can assume that there is … Software Development c | |
I'm trying to make quiz GUI. The GUI has one button and an entry box. The user presses the button and it asks a random question from using the world database. After 10 questions, it tells you the number correct and incorrect. I'm having a lot of trouble with the … | |
I am trying to read a csv file and store it into a 2D array, However it give me "segmentation fault" each time I run it. Here is my code [CODE] #include <stdlib.h> int main(void) { const char filename[] = "a.txt"; FILE *file = fopen(filename, "r"); if ( file != … Software Development c | |
hi i'm currently in need of a quit option i have something like for example click 2 for quit but i don't know how to make a command for it, could someone please help me Software Development c++ | |
Hey all I have a problem in my code I can't seem to find a solution for.. One combobox is being filled up with a datatable like this: [CODE]CbUsers.Datasource = usersDAO.getUsers()[/CODE] The getUsers() returns a datatable from my acces database. Users have a name and id, I want to use … Software Development vb.net | |
hi, i am a newbie in C#. I am having a variable named stone inside a private function named rock. a variable stone is defined in a structure called sand and is accessed only as sand.stone inside the function rock. Now, I must access this variable called stone in another … Software Development | |
Hey everyone, I got bored and decided I wanted to make a 'pitch' cards game in c++, however I came across the problem of generating all 52 cards in a deck without duplicating the same card. So basically, I just want to print out every single card in the deck … Software Development c++ ![]() | |
Hi, I am trying to cobble together a couple of snippets that I have found on the net to read and write to an ini file. The reading and writing part works fine but what I am trying to do now is to check if the ini file actually exists … Software Development assembly | |
int a; is Definition and Declaration both ? or declaration only ? Software Development c | |
Hi, I am trying to find a solution to read the packet destination for an internet connection through wifi. I am able to do the same for a lan connection using packet sniffer example. But the same is not working for wifi connection. [CODE] mainSocket = new Socket(AddressFamily.InterNetwork, SocketType.Raw, ProtocolType.IP); … Software Development | |
I've gotten this applet to do some of what it should but I'm having trouble getting it to do the rest. It's a multiplication applet that asks the user a question such as "What is 6 times 7?", has a JTextField for the user's answer, and a JButton to check … Software Development java java-swing | |
i have to write a program for a palindrome on vb that uses a loop and a decision and i don't think i need any arrays or any other real big complications. this particular program when i tried it cause i cant actually use this one due to plagiarism didn't … Software Development visual-basic | |
hello, i want write a simple programe wich count the number of the chrechtar this is my code [CODE] #include <iostream> using namespace std; int main() { int count = 0; char str[30]; cout << "enter a word: " << endl; cin >> str; for (int x = 0; x … Software Development c++ | |
Hi guys, i really need help in VB 6, the problem is that i have an old project that i make as a setup file, and now i need to re construct my project from that setup file, so i can make some modification because unfortunately i don't have the … Software Development visual-basic | |
Hi All, Im Thiyagu, a junior software developer(Java/J2ee). I have assigned to access Webservice (sending request and receiving response from a WSDL). can any tell me the steps involved to convert Java code from a WSDL file using Axis(with ant build script). please very urgent. Note : I already tried … | |
Hello, I'm using a process to compile java source code from within my program. I am then attempting to read the output ( errors , if it compiled ok etc) . But for some reason it isn't working. It works fine when using other shell commands ( ping etc ) … Software Development | |
[COLOR=#555555][B][I]hi guys, I am a Beginer Programmer.[/I][/B] :confused: [/COLOR] [COLOR=#555555][B][I]I Like to Learn about C# and i started from a week ago.[/I][/B][/COLOR] [COLOR=#555555][B][I]I Searched in google to find a froum to get some help about C#.[/I][/B][/COLOR] [COLOR=#555555][B][I]and i found this website.i hope i can find some friend to get help.[/I][/B][/COLOR] … |
The End.