132,726 Archived Topics
Remove Filter ![]() | |
Hi im trying to get this to compile im try to make a menu this is my code but it wont work [code] //main.cpp #include <iostream> #include "Menu.h" using namespace std; int main(){ { SportsClothingMenu(); } system("pause"); return 0; } [/code] [code] //Menu.h #ifndef H_MENU #define H_MENU #include <iostream> #include … Software Development c++ | |
I'm trying to develop a program that will factor a trinomial with a single variable. I'm using a string array and substrings to get the terms, however I'm having trouble with getting the factors of the AC Method. For those who don't know how to factor polynomials using the AC … Software Development | |
I am stuck doing this assignment given for monday ...i am at the do while coding (already did the interface ...) anw here it is : Candidates for employment by a security organization have to undergo a medical test in which sight, hearing and mobility are tested. In each of … Software Development vb.net visual-basic visual-studio | |
I figured this would be easy but ultimately I can't seem to get past the " " in a char array. i.e. [CODE] const int ARRAY_SIZE = 80; char charArray[ARRAY_SIZE]; cout << "input a sentence"; cin >> charArray; [/CODE] "This is a test string" returns only "This" as the space … Software Development c++ | |
hi there, im a beginner really and have just tried to finish a new computer based booking system for my work, im using sql and a database to store the customers and then store bookings too, but im having problems with the customer form, when i run it it kind … Software Development sql vb.net visual-studio | |
hello. i make a program for bus ticket reservation and i want to put a seat number in there. so if want to loop the program, and if i pick the same seat number, the program will tell me the seat is taken. is it possible to save information before … Software Development c | |
Hi, I am using WinSock library for sending data over network, and I have a problem. I know how to send data in one struct and receive it on the other side, because there is constant size of structure. But what if I have more structures, each one with different … Software Development c++ data-structure | |
I'm trying to reverse a string in pairs Example: input - heaven output - ne va eh My code seems to be right until the last for loop... That's where I need help Here's my code: [CODE]#include <iostream> #include <string> using namespace std; string revString(string user); int main() { string … Software Development c++ | |
Hey guys, I'm drawing a grid using the nested for loop with draw line method. Any tips on getting this in the center of my screen? I am currently using the getWidth and getHeight methods of my center panel but it is still drawing in the top left corner. It's … Software Development java | |
I am developing a form that calculates a Business Travel Expense for a business trip. Everything is fine and dandy but I have to display the information in a listbox using zone ouput. There is nothing in my book about zone output...the teacher provided us with this Dim fmtStr As … Software Development vb.net | |
[CODE]public class Card { public Card(String cardValue) { input = cardValue; } public String getDescription() { if (input.length() == 2) { if(input.substring(0,1).equals("A")) first = "Ace of "; else if(input.substring(0,1).equals("2")) first = "Two of "; else if(input.substring(0,1).equals("3")) first = "Three of "; else if(input.substring(0,1).equals("4")) first = "Four of "; else if(input.substring(0,1).equals("5")) … Software Development java | |
Is it really hard to find someone who know how to make a good use of stl and combined the power of GP and OOP?Like the way modern c++ design did? There are so many people say these kind of techniques are unrealistic because there are only a few of … | |
I compiled with py2exe and added the setup.py script because a few people have been having trouble with email.MEME.Text working with py2exe. The .PNG's are attached below save them to your c:/python26/ there isn't much security (passwords are temp stored in a .dat file) ________________________________________________ to: [email]john@email.com[/email] sendcount = 100 … | |
[CODE]public static void main(String [] args){ ArrayList<String> list1 = new ArrayList<String>(); list1.add("ABC"); list1.add("123"); ArrayList<String> list2 = method(list1); list2.add("ABC"); list1.add("123"); System.out.println(list1); System.out.println(list2); } private static ArrayList<String> method(ArrayList<String> list) { ArrayList<String> result = list; result.remove("123"); return result; }[/CODE] Could anyone explain this code to me? why it gives me the same result … Software Development java | |
Dear Friends, I am developing an application for multi user using vb.net with back end as ms-access. For the table name as employee_master, there is a column, name as student_profile having datatype as [B]Yes/No [/B]. If value of student_profile is "yes" then label1 will be shown and If value of … Software Development vb.net | |
Hi.. I need a java program to find out the bandwidth in LAN.. Please help me in solving out this problem soon... Thanks in advance.. Software Development java | |
I am still a newbie at programming in VB.NET but I am wondering if it is possible to write a program that allows for remote support, like Teamviewer, LogMeIn, etc., using VB.Net and what is the easiest way to go about it? Only reason I ask is because I do … Software Development vb.net | |
Hello guys, Sorry for the title, it should be Renting bicycle program XD Can't edit XD I've got a task from my school. I've to create a new computer system for Oslo City bikes. The Oslo City Cycle bike racks at various locations around Oslo where people with valid bike … Software Development java | |
I have a bunch of floats and I need to convert them to string to use Send command to send to a Receiver. However, I been trying to code like below where long1deg is a float. [ICODE] char long1degC = long1deg; [/ICODE] Or [ICODE] char* long1degC = new char[30]; float … Software Development c++ | |
hi. I'm trying to make a simple c# program using sqlserver. when i try to save something into database, it gives this error. here's the code. that 15(age value) is the default value on my numericupdown [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; … Software Development open-source | |
i have to find proper divisors of a positive integer.for instance,the proper divisor of 15 are 1,3,5. input 15 output 1 3 5 like that. Thank you for your helps. Software Development c | |
Please help. I ask the users to give me a char (either X or O), but when the users play the game, all they see are squares. Thanks!! [CODE]//game class import java.util.Scanner; public class Game { Player player1; Player player2; Board gameBoard; public Game() { player1 = new Player(); player2 … Software Development java | |
Hey guys! I've been working on two projects, one needs to have multiple forms, but when I open one form, it needs to close the sender. But, when I try it, the program exits! I don't want it, I just want to close the form, not the app. I tried … Software Development vb.net | |
I dont know wats wrong with my code but what am trying to do is for salary its an addition of DA and HRA. Here is my code.[CODE]#include <iostream.h> class teacher{ private: char name[20]; char subject[10]; float DA , HRA ; float salary; public: void getdata(); void display(); int payrol(); … Software Development c++ | |
hi. this is my program for bus ticket detail. at the bottom of my program, i want user to input yes or no for loop this program. but before i can input anything, it already told me that 'Please input the correct answer'. it is like i already input something. … Software Development c | |
Hello everyone, I am new to this java programming and wanted to know if anyone could solve this problem for me. I would greatly appreciate it. Thank you! "Write a program that asks the user for 2 integers a and b, the program displays their sum, difference, product, quotient a/b, … Software Development java | |
I have an assignment to create a class Input and have method public static int readInt(Scanner in, String prompt, String error, int min, int max) I was provided the main method but have no idea what I'm supposed to be putting in the class Input. This is what I have: … Software Development java | |
Write a program that computes the average and standard deviation of the text floating point numbers in a file. Use the following formulas for the average and the standard deviation of N values. The formulas compute the sum, the sum of squares, the average, the average square, the variance, and … Software Development java | |
The effectiveness of C++ and or Java Graphical User Interface (GUI) Design. Software Development c++ gui user-interface | |
The standard deviation of a list of numbers is a measure of how much the numbers deviate from the average. If the standard deviation is small, the numbers are clustered close to the average. If the standard deviation is large, the numbers are scattered far from the average. The standard … Software Development java | |
I have this program to write that Generate 100 lowercase letters randomly and assign to an array of characters (Chars[ ] ). Count the occurrence of each letter in the array and save them in counts[ ]. Write a main function to test the different count. What i don't know … Software Development c++ | |
Hello, I'm working on a small web app in C#, I have made the database and created a gridview to display and edit the data. I just want to know how can I turn a textbox field (in the update view) to textarea so I can see the whole text … Software Development | |
Hi All! I've got a weird problem here...It doesn't want to add my int values to a char array even though I static_cast the value to char. If you could just look at my code please! [CODE]void AltBoolean::print(){ perma = new char[arraySize]; int temp; int counter = 1; for(int i … Software Development c++ | |
i am working with g++ in linux ubuntu i am attaching input file for which error occurred. this file tries to insert 1000 numbers and then 250th smallest number. this code worked well when i inserted less numbers but it is not working for insertion of 1000 numbers. compiler shows … | |
What's wrong with this code because I'm getting errors but everything looks fine though. Software Development c++ | |
I tried to broadcast an object using object serialization and UDP connection. I am using netbeans IDE and i use a Java Desktop Application for both sending and receiving ends.Obect is broadcasted when a button is clicked. And i get the following exception... Oct 29, 2011 1:50:04 PM receive1.Receive1View jButton1ActionPerformed … Software Development ide java java-netbeans java-swing | |
I have a server to which clients are connected using TCP connection. All the clients broadcast to each other using UDP braodcasting.I want to disconnect one of the client from the UDP connections from server. what can be the possible ways to do this? please suggest. Software Development client-server java tcp-udp | |
Hi there, Im new to vb and i am using visual basic express 2010. i have put together a database and can do quite a lot with the app i have created. i am not very familiar with detailed programming so i have created my update query thru the dataset … Software Development dataset vb.net visual-basic | |
i need to Pass in three integers corresponding to an RGB value and use the appropriate Color constructor to set the background color. [CODE]import java.applet.*; import java.awt.*; public class AnAppletSubclass2b extends Applet { int r; int g; int b; //Color color = new Color (r,g,b); public void init() { String … Software Development java | |
I need help in creating a RPN calculator! I'm currently stuck in making a stack. here is my codes so for.This is my first time I am using stack. [code] import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; public class JavaCalculator extends JFrame{ Stack s = new Stack(); … Software Development java java-swing | |
Can any body tell me the difference between file descriptor and filepointer in C on linux? and when to use what? Software Development c | |
[CODE]#include<stdio.h> #include<conio.h> struct bnode{ struct bnode *child[5]; int count; int value[5]; }; typedef struct bnode node; node * root=NULL; void insert(int val); int put(int,node*,int *,node**); void fillnode(int ,node *,node*,int); int search(int,node *,int *); void insert(int val) { int i,flag; node * c,*n; flag=put(val,root,&i,&c); if(flag) { n=(node*)malloc(sizeof(node)); n->count=1;//setting count 1 n->value[1]=i;//setting … Software Development c | |
I am relatively new to python and am having a hard time with an assignment. We just started using dictionaries and I can't quite grasp what is going on. I am just having trouble figuring out where to even start exactly. This is the code my teacher gave me and … Software Development python | |
What is the equivalent of the "setw" stream manipulator for C++ in Java? I've been messing with the java.util.formatter class, but haven't figured this out yet? [url]http://www.cplusplus.com/reference/iostream/manipulators/setw/[/url] Software Development java | |
Hi how do you delete the input on the textfield after a button is pressed. Thanks Software Development java | |
I need help in creating a RPN calculator! I'm currently stuck in making a stack. here is my codes so for. [CODE]/** * * * */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; public class JavaCalculator extends JFrame{ private JFrame f; private JPanel p1,p2; private JTextField jtfMain; private JButton … Software Development java java-swing | |
So I wrote C for newtons version of critical point calculator and then needed to turn it into mips for my lab.. I really could use some help on getting the stack ptr in the correct sport.. The debugger.. also is confusing me.. Any help please? .data msg1: .asciiz "Please … Software Development assembly | |
I wrote a program called Geometry that finds the volume and surface area of a sphere, cone and cylinder. I have to use JUnit 4 Testing to test the separate classes. I have written the following code but when I run the test it says it fails even though my … Software Development java |
The End.