199,114 Archived Topics
Remove Filter ![]() | |
#include<iostream.h> #include<conio.h> #include<string.h> int main() { clrscr(); char string1[20],string2[15]; int i,j; string1="AMITABH BACHCHAN"; string2="RAJNIKANTH"; int n1=strlen(string1); int n2=strlen(string2); cout<<"common alphabets in AMITABH BACHCHAN AND RAJNIKANTH are-"; for(i=0;i<n1;i++) { for(j=0;j<n2;j++) { if(string1[i]==string2[j]) cout<<string[i]; } } } | |
I am trying to make a program where when I click an arrow key, the object moves constantly until I click another arrow key; or, when my object reaches a wall and crashes. For my code, I have made arrow key movements, I have assigned them in the program, and … | |
Can any one suggest me the best and free Reporting Tool which supports java Thankx in advance | |
Hi all ive some ajax posting to the same php file to submit the post data to the database, the form data is posting, it just isnt following on to the database :/ way it currently works is that ive a form that submits the form to the PHP then … | |
Through using Visual Studio to learn more about ASP.net and VB.net I would like to connect to a database. I create an .mdf database file but I've no idea how to connect to it (well, I have some code below...) that's not my only problem but I'll ask the next … | |
I am trying to figure out how to increase array size... let say i created string array that can hold 7 names but the user wanted to enter more than 7... so i am trying to write a program that double my array size with out me changing it manualy … | |
still on adding controls at run time mr admin, i want to write a code that will add textboxes(TBs) at run such that the user have to enter the number of textboxes needed in an already existing TB and when a button is clicked, TBs will be added to the … | |
Not sure if this can be done. There are word files in a directory with all familiar names. i.e. fr001, fr002, fr003, etc... all with the extension .doc. I would like to know is there a code that will link an excel file to a directory and then be able … | |
Hi. I have some trouble understanding the linking process and hence this related question. Lets say I need a global variable that is needed by every single source file in my project. I would create a `constants.h` header and put `extern const int var;` in it. In corresponding source, `constants.cpp`, … | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Page</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <h2>Student Clearance Information</h2> <form action="students_clearance.php" method="post" name="form1"> <table> <tr> <td> Department Id:</td> <td> <select id="Select1" name="department" > <option>Select Department</option> <option value="IIT"> IIT </option> <option "IMS"> IMS </option> <option "BSChe"> BSChe </option> … | |
Keep saying The variable 'width' is being used without being initialized. #include <iostream> #include <cmath> using namespace std; int main() { float length; float width; float area; cout << "Enter The Length Of The Rectangle: "; cin >> length; area=length*width; cout <<"The area of the rectangle is : "<< area … | |
Good day, Is it possible to create a simple entity framework system withou using DAL? or maybe context? direct connection? let say, i want to extract all my record in gridview. //assume that this is my formload protected form_load() { if(!isPOstBack) { getAllRecord(); //mymethod to call the data taht will … | |
I have just started learning java and made an first mathematical interactive program which I wanted to distribute with my friends . But I am unable to run the .jar file . I do the following , I click on export - Runnable.jar - Main.class and select the other options … | |
Im getting double free error's from this? Why? 2d array standard implementation. any clues? int **m = malloc(5 * sizeof(int)); int i,j; for(i = 0; i < 5; i++) m[i] = malloc(5 * sizeof(int)); for(i = 0; i< 5; i++) free(m[i]); free(m); | |
Hello I'm not new to C++ programming, but I have a question for you guys and gals :) So the code below compiles fine (due to that ugly workaround in main func), but that makes d_copy.field2 unitialized (0xCC bytes in MSVC). How would you change the code to make d … | |
i have a problem. i have a table that has one column that should accept one of a set of defined values. i know in MySQL i use the following command to create the table: CREATE TABLE tblstudents ( studentID int( 8 ) UNSIGNED NOT NULL AUTO_INCREMENT, lastName VARCHAR( 20 … | |
So, we are making a card game for class using a deck of cards valued 1 to 52, using lists and stacks. It deals each player a card, compares the value, then awards a point to the winner and restarts. I am using stacks to keep track of points, and … | |
Good morning. I'm not sure if this is the correct forum to post this question, and if its not, please direct me. I have a script that lists the last logons for all users on all domain controllers in my domain. I've been asked to modify the script to exclude … | |
i have a file.txt like this : 2X^2 + 5X+3=0 i want to save 2 to variable a, 5 to variable b, and 3 to variable c . . how i can do that . . ? tanks for your help . . | |
i have two table in db: table1: id(pk) int,firstname varchar(20),lastname varchar(20),username varchar(30),passwrod varchar(15) table2:fscmarks int,metricmarks int,id(fk) int stored procedure for table2: create proc academic ( @fscmarks int, @metricmarks int as begin declare @id int select @id=CURRENT_IDENT('table1'); insert into table2 values(@fscmarks,@metricmarks,@id); ) and behind login click is set session variable like … | |
I am trying to write a program that converts a string of numerals to integers. The program I have written gives me an invalid output. Any ideas what I have done wrong ? //Defining what libraries should be included. #include <stdio.h> #include<math.h> int strIntegerTmp(char *string, int collect); int strInteger(char *string); … | |
'm trying to pass a String from one class to another class but the result I'm getting is 'null'. I want to pass the String username from LoginFrame to HomeworkFrame; HomeworkFrame: public void loadSubjects (){ String item; try{ System.out.println(username); Scanner f = new Scanner (new FileReader (username + " " … | |
Hello im planning to make Barcoded ID in my system. I just dont know where to start. im also planning to buy a GENERIC Barcode reader but i dont know where to start coding. Note: Im still a student this is not for profit or anything :) Just exploring new … | |
I am not sure how to explain this so I will give an example. If I were to have two arrayList like the one listed below: ArrayList<String> java = new ArrayList<String>(); java.add("1"); java.add("2"); java.add("2"); java.add("4"); ArrayList<String> lava = new ArrayList<String>(); lava.add("0"); lava.add("2"); lava.add("5"); lava.add("4"); how would i remove the duplicates, … | |
Good evening all, Currently I am working on a program that will automate the backup/restore jobs at the place I work. The rough work has been done, but I am somewhat concerned about the possibility of massive IO operations due to the way my program works. Here is the scenario: … | |
I want to merge 2 XMLs based on a particular condition. e.g: Sample1.xml: <rootNode> <header> <title agg="sum">1</title> <records agg="sum">10</records> <number agg="min">5</number> <header> </rootNode> Sample2.xml <rootNode> <header> <title agg="sum">2</title> <records agg="sum">20</records> <number agg="min">15</number> <header> </rootNode> I want that these two xml files should be merged based on the attribute specified within … | |
import java.awt.*; 02 import javax.swing.*; 03 import java.util.Random; 04 import java.awt.event.*; 05 import java.awt.Color; 06 import java.awt.Graphics; 07 public class actualstuff extends JFrame 08 { 09 private JTextField textField1; 10 public static int index=0; 11 public static Graphics gx; 12 public actualstuff() 13 { 14 Container container=getContentPane(); 15 container.setLayout(new FlowLayout()); … | |
How do i read a txt file into a char array. what i have so far only give me blank lines String fname = "c:\\game.txt"; char data; int row = 2; int col = 4; char[] matrix = new char[row]; private void openFile() { try { FileReader reader = new … | |
Greetings, Id like to know what the actual differences is between WPF and Windows Forms.. When i compare those two it just seems like WPF has way more functions, such as using xaml aswell as the standard functions from Windows Forms, also seems to have many more feutures ? So … | |
Hello Guys, We need your recommendation for a good java reporting tool(open source or commercial) which meets the following requirements: 1. Embeddable in java web application(via reporting tool API calls) 2. Low run-time cost 3. Output to pdf/html 4. Has report designer/drag and drop etc. 5. iPad/iPhone friendly(if possible) Thanks | |
HI , I have a basic question to ask. how do i open a .txt file in C ? i am using the code shown below which is always telling that "file not found". #include <stdio.h> main() { FILE*fp ; fp = fopen ( "PR1.txt","r" ) ; if( fp == … | |
i have a datetimepicker with format dd.MM.yyyy.. when i have, for example, date 14.02.2011, save it and then want to enter 31.12.2011 then datetimepicker validator doesnt allow me to enter 31 because of month 02 inside, so it set automatically 29 in the datetimepicker. in this case, i have to … | |
/* For this program you will be working with strings. You are to ask the user to input a string. Then, make (and print out) the "pig latin like" version of this string by using the following rule: 1) words beginning with a vowel (A, E, I, O, U) , … | |
So this is what I want to be able to acomplish. I have a form where you can give permission to network folders to users in a Active Directory. I want to be able to make the app revert those permissions based on a date. I was thinking of adding … | |
Server Error in '/' Application. The connection name 'ConnectionString' was not found in the applications configuration or the connection string is empty. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated … | |
Hi, I have a problem in making a query to make virtual columns in my query. I want to make a query that makes virtual column. for example I have a table with columns a,b and c and I want to make a query something like this SELECT a as … | |
# include<stdio.h> # include<conio.h> void main() { int s1[10],s2[10],s3[10],total[10],per[10],i; char name[20],pid[10]; clrscr(); printf("==================== Marksheet ======================"); printf("\n\n\n"); for(i=0;i<3;i++) { printf("\n Enter your name:"); scanf("%s",name[i]); printf("\n Enter your PID:"); scanf("%s",pid[i]); printf("\n Enter your Subject1:"); scanf("%d",&s1[i]); printf("\n Enter your Subject2:"); scanf("%d",&s2[i]); printf("\n Enter your Subject3:"); scanf("%d",&s3[i]); } printf(" \n ===================== RESULT OF MARKSHEET … | |
Ok guys, I'm back with new code. I got help from my professor on the problem, but the USB drive I'm using deleted all of his work and I can't remember what he did to get it all to work. I need to get the file (titled lab2.dat): This is … | |
I have a gridview connected to a database and I added a checkbox next to each row. This is my code so far. <asp:TemplateField HeaderText="Assign" ShowHeader="True"> <ItemTemplate> <asp:CheckBox ID="assignCheck" runat="server" CausesValidation="false" CommandName="Assign"/> </ItemTemplate> </asp:TemplateField> Each row in my table holds a different user. My project is to assign a user … | |
Option Strict On Public Class Form1 Private Sub btnCalculate_Click(sender As System.Object, e As System.EventArgs) Handles btnCalculate.Click Dim strType As String Dim intYellow As Integer Dim intBlue As Integer Dim Price As Double strType = txtType.Text Integer.TryParse(txtYellow.Text, intYellow) Integer.TryParse(txtBlue.Text, intBlue) If strType.ToUpper = "R" Then If intYellow >= 1 AndAlso intYellow … | |
Hi, I wonder if anybody can set me straight as I am having a hard time understanding what is going on with INotifyPropertyChanged. My understanding of the events are: 1> Have a window with 2 textfields and a button 2> Create an instance of the Employee object 5> Bind both … | |
Here is a picture of a form. http://postimage.org/image/a813nony5/ Please help: I have a form with: - 4 textboxes (textbox 11,21,311 & 41) - 4 buttons (add, delete, save, refresh) - 1 DataGridView (MS Access database connected) - 1 filter to filter the data through DatagridView Here is the story: When … | |
Hi guys, Could somebody help me in decrimenting the letters cause code like below exists $let = 'A'; for($x=1;$x<256;$x++){ echo $let++.'-'; } //output: A-B-C-D-E....... i just wonder how about decrimenting it like $let--; but it didnt work does anayone has the idea on how to generate $let-- thanks, | |
Hi, I am looking for a PHP script that can take an ip address and return the country where that ip address belongs to. If you know or have been using such a script, please let me know. Thanks | |
i m trying to do a music cd databse. i done most of it bt i dont kno how to do the search methord..can any 1 help this is my program import javax.swing.*; import java.util.ArrayList; import java.io.*; import java.io.IOException; public class Cd { public String ArtistName; public String CdName; public … | |
need help to create an array of CDs, where the data comes from a text file, and then sorts the array content by artist name, then title,releaseyear,length in ascending order of artists name.(2 classes main and Cd ) When sorting is done is written a new fill to disk, with … | |
Good Afternoon... I have an email function that I have been using for a long time to send mail to our membership. But now I need to be able to send a .pdf as an attachment to them. I expect that it should be a pretty simple process, but no … | |
Hello, I'm making a application to use in college to retrieve my calendar and other things in VB.NET. But my college uses a proxy so when I connect my laptop I need to change the internet settings in my web browser to view web pages. Can anyone help me by … | |
Hi all, I am learning to code in c++ on Linux Mint 13. I am going through an exercise drill in a book called "Programming Principles and Practice using c++ by Bjarne Strustrup". I have a couple of questions. - I am having trouble with the calling the error function … | |
Hi, I want to create a log file so when someone logs in or when someone gets their password wrong or someone tries to log in to the admin account and gets it wrong, like ip address. date|Time etc The script I am using is this one http://angry-frog.com/downloads-page/ PHP Login … |
The End.