132,726 Archived Topics
Remove Filter ![]() | |
i badly need a hand on this. i have an assignment on my subject, it says that i have to put an MP3 on my C++, so how is it possible?? Software Development c++ | |
All was good and properly aligned until I changed the variable type from int to double for GrossPay, GrP and totGrP. After the Hours column (from Gross Pay on), in all the rows where there are fewer digits, the Gross Pay, Tax, and Net Pay columns are left aligned, totally … | |
at - arrival time bt - burst time I - idle for example the user input 3 process process 1 - at = 5 bt - 5 process 2 - at - 2 bt - 2 process 3 - at - 12 bt - 3 I P2 P1 P3 0 … Software Development vb.net | |
Hi !!!!! I have to filter the input for a geniric string with some operations. for example : [CODE] char buf [] ="25+2;44+1;8-2." char op1[20]; char op2[20]; char operazione[20]; char en[20];//in this varible i put ";" for the next operation , I put "." becouse the operations are end sscanf(buf,"%[0-9] … Software Development c | |
If p1at.Text = 0 Then p1ts = p1at.Text p1tc = p1bt.Text t1.Text = p1ts t2.Text = p1tc If p1tc > p2at.Text Then p2tc = Val(p1tc) + Val(p2bt.Text) t3.Text = p2tc Else p2tc = Val(p1tc - p2bt.Text) + Val(p2bt.Text) t3.Text = p2tc If p2tc > p2at.Text Then p3tc = Val(p2tc) + … Software Development vb.net | |
hey, i am using the value returned from the accelerometer. it returns me the "roll" value which is between -180 to 180 that adds up to 360. what i want to do is just simply produce this on the screen by drawing a line (g1.drawLine();) that would rotate in the … Software Development java | |
This is a fragment of a program for finding palindrome numbers.Every checked number is a string which is reversed...and I'm using array of strings which isn't done right. Any help will be greatly appreciated. [CODE]#include <stdio.h> #include <string.h> void isPalindrome(char *str1[],int l){ int str1size = strlen(str1[l]); int n; int misMatch … Software Development c mathematics | |
![]() | I would like to modify this program so that it also prints out the location of the element in the array that contains the maximum, so in System.out.println("The maximum is " + maximum ); it will be more like -- System.out.println("The maximum is " + maximum + "its location is … Software Development java ![]() |
Hey guys! There is some way to open a file and fill it with randon information until it reach a determined value? Like a dumb file (; Thanks! Software Development file-system vb.net | |
hey my topic name is sanitaryware and pipefitting system... i dntknw how to make system diagrams and how to connect............ i have 1 module wich is purchase....nw when customer will come definately he will buy more than 1 parts.than i kept list box...nw how to store that information of parts … Software Development | |
Hello everyone. I'm a bit new to c++. I'm trying to write a game loop (see the code below) and I'm getting some weird behavior with the GetSystemTime(). I ran through it with the debugger and I get things like this: startTime = 452 endTime = 210 And nothing seems … Software Development c++ | |
int c; while ((c = getchar()) != EOF) In the above code, why it is prefereble to use variable 'c' as integer datatype rather than character datatype eventhough we are assigning characters to 'c' ? Can any one explain clearly?? Software Development c | |
So I need to program a code which will display the values of all my objects which currently are "Monday and Tuesday." I am getting two errors under my printDay function. Error c2275 'DayOFTheWeek': illegal use of this type as an expression Error c2228: left of '.printDay' must have class/struct/union … Software Development c++ | |
hello guys.... I have time in char[] format but I need to convert it to CString. Here is what I have but it does not work [CODE] GetSystemTime(&t); char time[60] = ""; char y[20],mon[20],d[20],h[20],min[20],s[20]; sprintf(y, "%d", t.wYear); sprintf(d, "%d", t.wDay); sprintf(mon, "%d", t.wMonth); sprintf(h, "%d", t.wHour+5); sprintf(min, "%d", t.wMinute); sprintf(s, … Software Development c++ | |
My book asked me to create a simple version of a list that held strings. Here's what I did. [CODE]class String_list{ public: typedef std::string* iterator; typedef std::string* const_iterator; typedef size_t size_type; String_list(){ data = limit = 0; }; String_list(size_type, std::string); size_type size() const{return limit - data;}; bool empty() {return data … Software Development c++ | |
Hello Seniors, I am trying to extract an element from a string using the delimiter ';' in case it is in the middle of the string or nothing if it is the only element in the string..i am coding a generalized code that can extract the element from any such … Software Development xml | |
Hey I need some help to program a little begginner project. So I want to create a program that displays an image when you press the start button. When you press the "Next button" it will display a new image. My problem is, I want the image to change EVERY … Software Development vb.net | |
first i create 1 form, 1 picture box and 1 button.. i name button like upload...when i click upload button, i can browse picture..so after i click a picture,automaticly picture will set in picture box and 1 folder like mypicture will be create on C:// and that picture will be … Software Development vb.net | |
our assignment is we are going to create a calculator(console based) in JAVA but my problem is how could I make equal sign as a terminator.. for example i'll add 5+10. if i press equal.. the answer will come out instead of pressing enter key.. Software Development java | |
I have a question about programming Java into HTML using the latest version of Tomcat. I'm trying to get the option values from the HTML to go inside the Java program and print out said values. A friend of mine suggested that I create an array of strings and then … | |
C:\My Documents\sprayproject.java:100: <identifier> expected JOptionPane.showMessageDialog("\nTotal fees charged: R"+total+"\nCost exceeding R3000: "+count); ^ 1 error Guys please assist me in rectifying the above error? Following below is my coding... import javax.swing.*; public class sprayproject { public static void main(String[]args) { String name, temp, temp2; int option, acres, farmno, count=0; double cost, … Software Development java java-swing | |
I am making a program to calculate the distance between 2 location by inputting the latitude and longitude of the locations using DMS, then convert the given DMS to angular measurement. I have made the program using functions but when it finally calculate for the distance, it always goes to … Software Development c++ | |
Hy, I have a JPanel within a JFrame. In the menu bar of the frame I have a check button that would show/hide a toolbar within the JPanel. The toolbar is a JToolBar type and is added in the NORTH region of the layout. It occupies the whole region but … Software Development java | |
can i chnge all button font color on every form that i hve create. .i just want to click 1 button and it show menu choose color.. Software Development vb.net | |
Guys is it possible to create new tables in my database at runtime. What components will I have to use? And how will the code look like? Software Development vb.net | |
hey, i receive one value from an accelerometer that shows the roll of the accelerometer the value ranges from-180 to 180 which is 360 degree angel. what i want is to represent this value on the screen by drawing a line that would rotate accordingly to my accelerometer. this video … Software Development java | |
i make a string array and want to show in message box,but it does not working properly [COLOR="Red"]Help Me what is wrong [/COLOR] [CODE] private void btnarray_Click(object sender, EventArgs e) { string[] myname = new string[2]; myname[0] = "Shahid"; myname[1] = "Hussain"; MessageBox.Show(myname.ToString()); }[/CODE] when message box show error show … Software Development | |
I want to search data from combo box here is the code : [CODE]SqlConnection cn = new SqlConnection(s); cn.Open(); SqlCommand cmd = new SqlCommand(); SqlDataReader rdr; string cd =comboBox1.Text.ToString(); string CommandText = "select * from rto where cd =@cd"; cmd = new SqlCommand(CommandText, cn); cmd.Parameters.Add(new SqlParameter("@cd", System.Data.SqlDbType.VarChar, 20, "cd")); cmd.Parameters["@cd"].Value … Software Development | |
Hello, I'm really confused.. If I have a string in Java, let's say "Phillip" and I wanted to store this in an array... e.g. [code] name[] = { "P", "H", "I", "L", "L", "I", "P } [/code] would I use a for loop for the string? Helo? Software Development java | |
this is the code for my class assignment [code=c] import java.util.Calendar; class ClockThread implements Runnable,KeyListner{ int sec,min,hour; Thread thr; ClockThread(){ Calendar rightNow = Calendar.getInstance(); hour=rightNow.get(Calendar.HOUR); min=rightNow.get(Calendar.MINUTE); sec=rightNow.get(Calendar.SECOND); thr=new Thread(this); thr.start(); } public void run(){ while(true){ try{ Thread.sleep(1000); sec++; } catch(InterruptedException ie){ System.out.println(ie); } if(sec>=59){ sec=0; min++; } if(min>=59){ min=0; hour++; … Software Development java | |
hi~ i am a beginner of using Javascript.I am doing a project. The project needs: 1.creat a textbox to let the user input their mark. 2.creat a second textbox and a button 3.after enter a mark in the first box and click the button,the second textbox show the grade That … Software Development java | |
[CODE] import java.io.*; import java.util.Date; public abstract class Customer { //super class customer String customerName; String customerID; String customerAdd; String customerPhone; String dateOfMembership; public Customer(String name, String id, String add, String phone, String date) { //constructor this.customerName = name; this.customerID = id; this.customerAdd = add; this.customerPhone = phone; this.dateOfMembership = … Software Development java | |
Hi, now i do the sorted list for the combination i did. I want to read the data to the sorted list. But my foreach loop always had error. i fix it many times already but still can not solve it successfully. I will attach my coding. Hope someone can … Software Development | |
Hello friends, I need some help with my c++ hangman code.The code is below. [code] /*Game of Hangman Author - Chirag Mittal */ #include<iostream.h> // For input/output #include<fstream.h> // For file input/output #include<string.h> // For strcpy #include<time.h> // For time #include<stdlib.h> #include<ctype.h> //for toupper & tolower #define MAX_WORD_SIZE 15 // … Software Development c++ | |
Hello, I am need of urgent help.I've made a program to generate bills (using goto statements) but my teacher has asked me to remove those and use something else in place of it.The problem is that I have tried using separate functions for that (It's not working properly) and I'm … | |
I want to create checkbox inside drop down list box using swings pls some one help me Software Development java | |
Still learning in programming and this problem is course related. Although I am not asking for the answer I would appreciate some help and if anyone can point out what I might be doing wrong that would be awesome. I was able to find other articles addressing the matter although … Software Development c++ | |
Is there an instruction that I can add to a button click to exit a program Software Development visual-basic | |
Hello! I want to split a mathematical expression 3 + 4 ( 5 * 8 ) into tokens by using space as a splitting mode. e.g 3 + 4 ( 5 and so on. But when I write string exp; char space[]=" "; result=strtok(exp,space); the compiler gives the error at … Software Development c++ | |
Hello, i have a question. I m using a Tabcontrol having 3 TabPages. on the Third TabPage i have some textboxes. Some Textboxes are used for inputs and some are for the calculated values. i.e I Take input for yarn cost per meter and by multiplying its value with total … Software Development | |
![]() | I am troubled by my very long code for a movie reservation program. A friend of mine told me that I can shorten my very long code using functions. What made my code very long is the switch statement that I used which is composed of 200 cases. Sorry because … |
Hello, I have decided to make a timer program on my computer to limit the amount of time that I game. Anyways, I have it working fine with a small borderless window in the top left of the screen that ticks down and when it gets to 0 it sounds … | |
I have been working on this for a while not finding anything. I have a form that needs to send a ketstroke, but I used: [CODE] SendKeys.Send("{Ctrl}" + "{SHIFT}" + "{]}") [/CODE] But that Did not work. Y? IDK. can someone please help Software Development vb.net | |
I am supposed to create a class patient that will sort the patients according to their condition that is Serious(S), Routine(R), Critical(C), and Expectant (E). Use a heap based Priority Queue. The data type stored should be objects of class Patient. Class Patient will require a compare method that takes … Software Development queue | |
Hi, All: I am getting crazy about this error. I tried everything but no help at all. Here is the simple task I want to do: adding a chart. The code is as below: Charts.Add ActiveChart.ChartType = xlXYScatterLines Set myrange = Worksheets("Sheet1").Range("B16:B18") ActiveChart.SetSourceData Source:=myrange, PlotBy:=xlColumns ActiveChart.Location where:=xlLocationAsObject, Name:="Rates" It always … Software Development visual-basic | |
so the user enters a string of coordinates like "(1,2) (3,4) (5,6) etc..." and I'm trying to use istringstream to pull out each number and put it into an integer value. This is what I've got so far: [CODE] string S1, temp; int num1=0, tempX, tempY; cin.ignore(15,'\n'); getline(cin,S1); num1=S1.find("("); S1.erase(S1.begin(),S1.begin()+num1+1); … Software Development c++ | |
The exception is: Unhandled exception at 0x6474f269 in Loliboll.exe: 0xC0000005: Access violation reading location 0x0000000c. I think it's a memory leak. I tried to solve it obviously, but to no prevail. This is the code: [CODE]#include "stdafx.h" using namespace std; int main() { // FreeConsole(); int a; // INTRO = … Software Development c++ gui motherboards-cpu-ram | |
I am supposed to make a palindrome program using stacks, but my function keeps returning false. Here's the code: Main: [CODE]int main() { char word[50]; cin >> word; cout << strlen(word); if (checkIfPalindrome(word) == true) { cout << endl << "Is a palindrome."; } else { cout << endl << … Software Development c++ | |
I'm practice to make a program that calculate total value of five products. I want the user can keep input the quantities of one of the five product without return the main menu. So I create a while loop to solve the problems. But the problem I have now, how … Software Development java |
The End.