199,114 Archived Topics
Remove Filter ![]() | |
[CODE]#include <iostream.h> #include <math.h> void main () { int n,j,q,d,h,t,i,m,f,b; cout<<" num of eng"; cin >> j; q=0; d=0; h=0; t=0; for (i=1;i<=j;i++) {cout<< "insert Salary "; cin>> m; m /(22) =d; d/(8) = h; cout<<"\n Leave "; cin>>f; cout<< "\n Attend "; cin >> b; f - b = … | |
the code takes each character and stores where and how many times a roman numeral appears and the assess the integer. this is my first code im posting. anything to make the code better is most welcome. roman numeral refers to M=1000 D=500 C=100 L=50 X=10 V=5 I=1 and uses … | |
i want print this image out... 10 11 ___ / ()\ _|_____|_ | | === | | |_| o |_| || o || ||__*__|| |~ \___/ ~| /=\ /=\ /=\ [_] [_] [_] [CODE] #include <iostream> #include<fstream> #include<string> using namespace std; int main() { string filename; int number; cout<<"enter the … | |
Hi, I have been searching for a few days now for a solution to my problem. Please excuse any programming faux pas as I am very new to programming. I have created a textbox array based on the number of 'Channels' on another form. This number dictates how many textboxes … | |
I was just hoping to get some advice before I start writing my program, I need to put two columns of data into some sort of data structure, and each number has about 25 decimal places. Can anyone recommend the best one? Would storing them as a vector work? Thanks … | |
Hi All, I'm a student who really need help in this problem...what I need to do is to call/run/execute a subroutine using a varaible name from a subroutine. [code] Public Sub Main(ByVal subName as String) Call subName ' subName may be contain the value AAA or BBB End Sub '=========================== … | |
Hello could someone please help me as my program is generating some weird error" java.lang.IllegalArgumentException: adding a window to a container" Could someone please look at it and tell me what I'm doing wrong. Im trying to add an object of fan to the panel it creates that error. whenever … | |
Hello, While compiling my code, I'm receiving a "Data access misaligned address violation" error. I tried to find the reason for the error, but am unable to pin point the location. I am trying to manipulate the amplitude envelope of an audio file, but this error occurs when i'm trying … | |
hi all, i am really stuck with c++ pointer issues. what my program is supposed to do is to take input from user and recognize whether the entered string is a valid word from the grammer S::= a|(S) hence grammer should accept words like... a, (a), ((a)),(((a))).... i have done … | |
Hey all I'm trying to create a program that takes a predetermined number (monthly salary in this case) and rather than printing as a number it prints it as text. However when I input a number all I get is random stuff that makes no sence. I will include the … | |
Hi All, Help if you can, The following script wont insert a row into my table. There is an auto increment field at the start of the table called "ID". [code] <?php // this is processed when the form is submitted // back on to this page (POST METHOD) if … | |
I have a homework assignment to instructs me to play around with functions and exceptions, but one seciton I'm stuck with is a certain condition it tells me to write o if x is not "So sue me!", but x is still not convertible to an int (by calling int(x)), … | |
hi i need a program that set the clock to 00:00:00 if the user not enter the clock then the program should count the time and print it on the screen until reach the user input for example: the time is 12:44:6 a.m. and the user enter 4:3:50 a.m. to … | |
Hi. I'm new to ASP.net and I'm having a bit of trouble with loading information in from web.config. I've stored my database connection in the web.config and the rest of the code is in my code behind file. Here is the code behind file followed by the web.config extract. The … | |
Hey, I was just wondering, but what code do you need to be able to press a few buttons on your keyboard. Like, if I want to type "Cheese is yellow on the moon!" I'll just run the program. Or if i want to do ctrl+alt+del to go to task … | |
I am writing a tic-tac-toe program and whenever my game gets to here it generates the following error: [CODE]# Display board function def display_board(board): """Display game board on screen.""" print "\n\t", board[0], "|", board[1], "|", board[2] print "\t", "------" print "\t", board[3], "|", board[4], "|", board[5] print "\t", "------" print … | |
Hello, I have this problem that's been bothering me on the back of my head for so long now. I don't know how to pursue or even break it down, I've tried reading the book, look at notes, nothing helps. Problem is, I have this file which contains /* Nitrite … | |
I have created a function that is supposed to go through a text file (csv) and read the information in it and then add it do a dataobject (which just holds the info in textfields and a combobox) which when filled adds itself to the jpanel. The issue I am … | |
Hey guys, I recently wrote a C++ program for a company I'm doing an internship with that asks the user for the location of .txt files and then the program opens each .txt file, gets the necessary information from each files, then outputs the information to a .txt file that … | |
hello can you help me on this i have gel compiler then i want to debug my program but the debug button is not highlighted then it can't be click...ahm can you help me on this or please suggest me if what is the best compiler for java?...thanks in advance … | |
hello all, can anyone tell, how can i make an mdi form borderless. i don't want the user to click on the close button present in the title bar. i want them to exit the way i directed them. thanks in advance. Sayen | |
Hey people, I am doing a project in web development and I wanted to make a system where users can sign up and login to their profiles and have custom URLs like facebook or twitter ([url]www.mysite.com/UserName[/url]). I dont wanna create a folder for every user on the system cuz that's … | |
[CODE=c] #include<stdio.h> #include<math.h> main() { int i=0,j,c,s[100]; double t=0; while((c=getchar())!='\n') { s[i]=c; ++i; } for(j=i;j>0;--j) { t=t+(s[i-1]*(pow(16,(4-((double)i))))); --i; } printf("%d",(int)t); return 0; } [/CODE] HI, i need to write a program that converts an hexadecimal number into integer form (for convenience i'm only considering hexadecimal no. without alphabets from a … | |
Hai,I am trying to connection using web.confing in connectionstring element and i have written below code in connectionstring element in [CODE] <connectionStrings> <add name="DB1" connectionString="Data Source=DEV5\\SQLEXPRESS;Initial Catalog=icondatabase;Integrated Security=True" /> </connectionStrings>[/CODE] And in the .aspx.cs file (in Load_page)i have written below code [CODE] string connection= ConfigurationManager.ConnectionStrings["DB1"].ToString(); SqlConnection cn = new SqlConnection("connection");[/CODE] … | |
Hi, I'm just wondering if there is a good place where I can find some tree implementations for c++ (Splay trees and Heaps, in particular). Any input on resources where there is source code for different tree implementations would be appreciated, as I don't have the time to write one … | |
I am trying to find the sum of a column( cal) between two dates and then assign or display the result (sum) in a textbox or label in C#. Please help me. [CODE] MySqlConnection mycon = new MySqlConnection("datasource=localhost;username=root;database=church"); mycon.Open(); MySqlCommand get = new MySqlCommand("SELECT sum(cal) from tithes where transdate between … | |
Guys,this code couldn't run very well..Is there anyone who will recode this? [B]search.php[/B] [CODE] <?php mysql_connect ("localhost", "root") or die (mysql_error()); mysql_select_db ("records"); $criteria = (int)$_POST['criteria']; $sql = "SELECT * FROM students WHERE "; switch($criteria) case 1: $sql .= "course"; break case 2: $sql .= "surname"; break; case 3: $sql … | |
Hi I have a ASP.Net code below that need to query with MS SQL database. [code] "select SUM(ShopCartItem.Price-OfferedPrice) As Discount from ShopCartItem " & _ "Inner Join Product " & _ "On ShopCartItem.ProductID = Product.ProductID " & _ "Where(ShopCartItem.ShopCartID = @ShopCartID) And ShopCartItem.ProductID != @ProductID" [/code] The MS SQL query … | |
Hello, Everybody ...!! I have query regarding ASP.NET. i want make one aspx page in which can upload an image. and want to use different types of tools which is supported by asp.net for upload an image and store in database which provide some validation like not 2 MB photo … | |
Hello everyone, I am using the code below. It is working when I used this in Eclipse. What I did is to place the generated keystore from the InstallCert.class ([url]http://blogs.sun.com/andreas/resource/InstallCert.java[/url]) to the latest JRE in the Program Files>Java But when I deployed this class in the Tomcat/Bea its searching I … | |
Please help me. Now i'm using VB.NET to update my project. I have webcame but i don't code for capture Image from Webcam Please help me. | |
I've worked on it for a few days. It works great when I comment out the erase function. But it doesn't work when I include the erase function, which I use to remove an element in the playlist vector of type Songs. Here's the else if statement. The problem is … | |
can you kindly help me load my gridview with data from appsetings.xml . the gridview must have the following three columns(key,value and description) here is my appsettings.xml. [code] <?xml version="1.0"?> <configuration> <Global> <FromEmail value="test@uiplay.com" description="From Email Address Name" /> <AdminEmail value="cmckowen@gmail.com" description="Admin Email Used for Admin Test and Unsubscribe Comments" … | |
I was writing a function to dump the contents of a 'matrix' in a vector-of-vectors to cout when I ran across conceptual difficulties. Here's the code of the working function: [code=c++] #include <iostream> #include <vector> using namespace std; void output_string_matrix(const vector<vector<string> >& matrix) { vector<vector<string> >::const_iterator rows_itr; vector<string>::const_iterator cols_itr; for … | |
Hi Friends, I just want to send [COLOR="Red"]Sms [/COLOR]to mobile through application.. Can any one help me on this? Please i need it in urgence. If you know please post the code and the steps to my mail id.. My id is <<Snipped>> | |
Hi all, The problem here is, is there a way in which i call the output of 1 stored procedure inside another and display that in the 2nd procedure results..? Should we call a stored procedure inside a stored procedure for for this..? If so, wats the way..? | |
iam currently on a program that reads two integers values, with the second has to be a non-zero integer. here is my codes so far: Does it look ok ? PLEASE HELP !:( [CODE]public class Lab2App { public static void main(String[] args) { // Calculate 5 and 3 with relation … | |
Hey, I have, what I think is an easy situation to solve. I am trying to have variables dynamically written to html depending whether a checkbox is ticked. This is what I have right now - if someone might also know the proper way to write this it would be … | |
Hey all, I am having trouble converting a string value to a text box name. The text boxes are created at runtime and I need to get the text value out so I can store them. I keep getting the error Error 24 Value of type 'String' cannot be converted … | |
I have a size_changed event in my Form that did cause a MessageBox with the below message. It says that can enable "just-in-time (JIT) debugging" but are not sure how to do this. I cant find: machine.config... [B][U]MessageBox Error:[/U][/B] To enable just-in-time (JIT) debugging, the .config file for this application … | |
I need help with this problem. I have tried writting the program, i just can not get it to run properly. Problem is: Create a function named 'circle_area' that will find the area of a circle. This function should have the following prototype: float circle_area(float radius) circle_area should return PI*r^2. … | |
Dear Experts Is there an easy way to move into datagridview columns with ENTER key instead of TAB key. In other words: how to move in next column with enter key? Please help | |
the application below is what i did so far, please give me feedback the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within … | |
are there any simple softwares, ways or techniques on how to make a graph??? simple only.,just plot the x and y axis, then draw a line to connect them..that easy only./.please could you help me, thanks..^_^ | |
The following lab was originally assigned but skipped over because we were off for MLK day. I would still like to do it but am just not following what I should be doing. Help? In this lab you are going to extend the code you wrote in you first lab. … | |
Hello, I have a web app that on a buttonClick event it goes and checks a database for a particular field. if that field = a certain value, the app does something. is there a way to make this app run every x seconds rather than on a buttonClick? do … | |
I am having some problems with my java code, i am trying to write a C compiler and am currently working on developing a string tokenizer for the C programming language using java regex. my problem is first my program wont recognize multiline comments and second i cant figure out … | |
Dear Experts I use following codes to retrieve data from table, but get error Conversion from type 'DBNull' to type 'String' is not valid. [CODE] str = "Select * from gpass where vou_no= " & Val(Me.txtGat.Text) & " And Date = '" & Me.txtDat.Text & "'" dt = GetTable(str) If … | |
Dears [CODE] Private Sub DataGridView1_CellLeave(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellLeave If e.ColumnIndex = 0 And e.RowIndex = 0 Then MsgBox("this is first coulmn") End IfEnd Sub [/CODE] IF cursor leaves column 0 and row 0 then it displays msgbox but I want to check where column … |
The End.