199,114 Archived Topics
Remove Filter ![]() | |
Hello, I want to write to a file in a particular format. There should be 2 columns, the first column should allocate 5 spaces to store digits and the next column should allocate 30 spaces to store characters. Ex:- [code] 1 Dave 234 Einstein 100000 Bob . . . [/code] … | |
i am making a program that will get the area of a rectangle and tell whether the answer is a prime no. or not. which i failed plz. help me | |
hello guys.. can you help me on how to make 45 angle shoot or 45 angle movement of bullet in vb.net | |
Hi I want to store query result in single variable like if query is "select count(*) from tablename" , and it return suppose 21 records (integer value) then I want to save this value in my database during insertion of record what should i write in place of question mark … | |
I'm creating a library that easily adds a bunch of debugging features to c++ programms. At the moment I have these features: - A more useful assert dialouge. - Pointer validation using IsBadReadPtr/IsBadWritePtr. - Memory leak tracking. I'm trying to think of other features I could add to this. What … | |
Hello guys, Firstly I want to apologize If I ask something silly, but I have just started learning C++, and I really don't know much. As a practice I have a challenge of writing a matrix in a file, and then reading the information (numbers) from it, and in the … | |
i have a simple question: I want to define a hex character array in C, but I don't want to have to define the elements one at a time. my programme needs an hexadecimal array as input of 128 bits. for example, [code=c]unsigned char temp2[32]= {0x00 ,0x11 ,0x22 ,0x33 ,0x44 … | |
Recently I have been learning about the socket module and how you can create networking applications using it. I was curious if it would be possible using the socket module to either: Set the port as a USB port to trick the computer into thinking a USB is plugged in … | |
How would you go about extracting part of a key from a dictionary. I have a text file that lists about 1000 birthdays Ex. 1/2/1980 I want to extract just the year portion from the dictionary and then run a count against each year. I have no problems with any … | |
My code tries to solve an optimization problem constrained to hyperbolic PDE by matching a numerical solution to a desired one. The basic idea is that: I've initial condition "U" as input which is being updated by this line: U = Initialize(Update_Design_Parameter(U)). I expect that updated U will affect all … | |
Hi guys, i am going on with a vigorous practice with PHP and MYsQL. currently i am doing a simple project which has a form, input box which takes the users name, then selects a random image and place it on the image with a random selection of fonts, with … | |
Could someone help me. I don't know why i get a stack corruption . Here is my program: [CODE]#include<iostream> #include <fstream> #include<conio.h> #include <string> #include "aes.h" using namespace std; int main(int argc, char **argv) { unsigned char key32[32]; unsigned char iv[16]; unsigned char* inbuf=new unsigned char[128]; unsigned char** intext=new unsigned … | |
Hi, I've build an application with Mdiparentform. I want to load login form on start up of the application and on succesful login load the mdiparent form and close the login form. Please help me with the code. Thanks | |
I have two textbox that corresponds to the my two combobox. [CODE]if (purposecb.Text == "-Select One-") { MessageBox.Show("Please select the purpose of the visitor's visit.", "message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); purposecb.Focus(); } else if (placevisitcb.Text == "-Select One-") { MessageBox.Show("Please select the place where the visitor would visit.", "message", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); placevisitcb.Focus(); … | |
i want to write a function to which i need to pass two matrices and get the sum and product of them as output. but how can i return more than one matrix from a function? (i want to pass and return using pointers) | |
Hi there I need to know how to select multiple list items from a list box. My code below only selects one email address when there's found that more than one ID's is behind schedule... [CODE]Private Sub Form_Load() folder = Dir("c:\LogBook\*.txt") 'variable folder conatins names of files in folder c:\LogBook\ … | |
Hi All, I can connect C# to SQL and read SQL table but i am having problem in writing the outcome to text file. I really appreciate if you could assist me. this is the code. [CODE]//====================================== using System; using System.Data; using System.Data.SqlClient; using System.IO; namespace Chapter07 { class OrdinalIndexer … | |
Hi, Need some help here again. If you guys take a look at: [url]http://83.233.5.191/crurre/index.php[/url] There is a field called "Personnummer". Fill this with: 440611-1890 Then press "Hämta personuppgifter" It will then fetch/recieve some personal data and fill the correct fields. But.. as you can see. The number disappear when the … | |
Hi, I need the name of the XML tabs. I'll use an example to explain what i want. XML- <?xml version="1.0" encoding="ISO-8859-1"?> [CODE] <catalog> <cd> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <country>USA</country> <company>Columbia</company> <price>10.90</price> <year>1985</year> </cd> <cd> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <country>UK</country> <company>CBS Records</company> <price>9.90</price> <year>1988</year> </cd> <cd> <title>Greatest Hits</title> <artist>Dolly … | |
Hi folks! My friend just asked me to code a program which detects ellipses of an image. The images he will use with this program have 2 different kinds of pixel values - black (0) & white (255). So I researched a bit and found an algorithm for ellipse detection … | |
I have an XLS file. Let's assume that it has 1000 rows in all, with 10 columns. I would like to import rows 5 through 995 (say), and columns 1 though 7 and 10. How can I do this using an SQL query, either though OPENROWSET or BULK INSERT? I … | |
Imports System.Data.OleDb Public Class updateharvesting Dim co As OleDbConnection Dim cm As OleDbCommand Dim dr As OleDbDataReader Private Sub updateharvesting_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load GroupBox1.Visible = False End Sub Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged Label2.Text = "enter no" … | |
Im just learning how to do triggers in mysql with php I have two versions of the trigger i would like to use but i keep getting errors saying the syntax is wrong. the first one is: [CODE=mysql] CREATE TRIGGER credits_earned AFTER UPDATE ON takes on (grade) REFERENCING NEW ROW … | |
Hi, I am creating an login page connected to a database. I am using access ODB. the problem is, if the user makes an wrong input, and the invalid data message box appeared, when typing the data again, and press ok, the following exeption occured: Not allowed to change the … | |
Validation whether a string can be parsed to a valid date according to a supplied formatting string (which should conform to the formatting rules as supplied in DateFormat). This version can also flag dates in the past as error (we need that because many of our applications should accept only … | |
Hello, I have this code that sorts strings but it does not sort them at all. I've been working on it for 2 hours already. Any help will be appreciated. Thanks in advance :)[code]public void SelectionSort() { for (int i = 0; i < myList.length - 1; i++) { int … | |
Hi All I don't actually know how to explain my problem, but here goes.. I have a small form. It has a listbox with a submit button. In the list box there are ID's displayed, i.a 10027, 10028, etc. Those ID's are the names of text files that have logbook … | |
i have a database in sql server2000... i have some of them tables, that i want to connect with visual basic.. the connection is tested, its connected.. now first tell me which data control should i use?? And then the code for updating, editing, adding a record in my database … | |
sir/madam i need a help.......how to search a string from oracle to vb.......my codings are not working properly so please correct it........i attach my codings below... [COLOR="Red"] accse.Open "Provider=MSDASQL.1;Password=tiger;Persist Security Info=True;User ID=scott;Data Source=facultydetails" rsfdcse.Open "select * from csefacultydetails where name= " & "'&name1.Text '", accse, adOpenDynamic, adLockOptimistic If Not rsfdcse.RecordCount … | |
[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; // Functions int instructions(); int game(); //Types and Arrays string word[] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDS", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; char guess[50]; char inst[50]; int main() { cout … | |
i dont know aany thing about adodb.. please help me.. please tell me the step by step way to connect the database with adodb in vb6, and to add and update.. | |
I am having troube getting this program to compile. I have been on it for the past 5 days and starting to feel burn out. maybe an extra set of eyes can point me in the right direction of what i'm doing wrong. The error messages i'm getting are: expected … | |
What's wrong with this code.... //templates #include<iostream> using namespace std; template <class t> t max (t w,t x) [B][COLOR="Red"]--->here i get no error if I use &w and &x in place of w and x...[/COLOR][/B]{ if(w>x) return w; else if(w!=x) return x; } int main() { int a=10,b=343,c; c=max(a,b); cout<<"Max="<<c; … | |
Hello All, Can some one help me how to write query for finding the profi per unit using SQL server 2005/2008. I have got a unit table which contains UnitId and Quantity and the other table which contains cost price, selling price and the Unit Id. Thank you | |
hi Friend i have a problem to create user through Membership provider I Wrote [CODE] try { Membership.CreateUser(txtbox1.Text, txtbox2.Text); Response.Redirect("AHome.aspx"); } catch (Exception ex) { Response.Write(ex.Message); } [/CODE] and I got "The password-answer supplied is invalid. Exception" Please Help Me...... | |
Hi guys The just of what i whant to do is read lines of text from a file until it reaches a delimiter and then execute that text in a query and repeat the process till there is no more text. I am using Delphi 6(don't have a choice) and … | |
I have a jsp page which is showing data in that page from DB.there is also a facility to show data in excel file.So there is a link to import the data in excel file. I have noted down that url by pointing the cursor to that link that is … | |
I am stuck in program which need to build a hash of unknown number of keys which we will enter or give. If there would be a push function we can make loop and increase its size.But how will be it possible with hash. | |
Hi all, I was making a program as one of our activities. The output should be something like this: [IMG]http://img10.imageshack.us/i/ss1qh.jpg/[/IMG] When I press on Display Output, it should look like this: [IMG]http://img29.imageshack.us/i/ss2pa.jpg/[/IMG] However, when I have to Insert a record, the added record should be added on the record when … | |
Hello, I am fairly new to SQL and PLSQL and am having a problem debugging some code for triggers, the compiler keeps saying that the trigger is not initialized properly. Here is a posting of the code. This is for a homework assignment, but I am lost so I would … | |
I want a loop that can count back and forth from 0 to 3. At first it counts up 1 each time and then when it reaches 3, it will count backwards to 0, then back up to 3 and so on. I already have a runnable that makes it … | |
Below is my code [code] string strpos2 = System.Configuration.ConfigurationManager.AppSettings["arraycolumn"]; char[] sep2 = { ',' }; string[] number = strpos2.Split(sep2); [/code] number contain array of string how can i assign this array of string to int[] | |
Hi everyone, I need some help with identifying real world entities and their attributes for a hospital scenario. I have listed below the entities and attributes that I could think of. Please comment or give suggestions on how I can improve it. [CODE]EMPLOYEE ([U][B]Employee_SSN[/B][/U], Address_ID, Contact_ID, Employee_Name, Designation, Salary) PATIENT … | |
Guys I was just wondering if I could do something like this in my report; There would be more than 8 table controls in the report(.rdlc) and each would hold records that has specific values on specific fields. The fields in my database table are; 1. Year 2. Semester 3. … | |
My class recently switched from python to java. I feel like they just threw us in and said " oh they know python so they must know java" My first assignment is quite simple but having no prior knowledge of java i'm lost. basicly "PizzaRun is a simple program that … | |
I have an assignment where I really have no idea how to even begin. It is as follows: •Create a destructor that prints a message before exiting. •Create a new function called void incrementMinutes( Time &, const int ); That increments the minutes by count. • create a member function … | |
I have three forms. All forms are shown and I have a button on the third form. The button should close all the forms including the form where the button was created. Application.Exit() is not suitable for this because I don't want the application to exit including the forms that … | |
for example.. in one column it has "test1, test2, test3, test4" .... when i search for test1... i only want rows the word 'test1' in them specifically. $search = test1 i've tried LIKE %$search% but it get's all rows with the word 'test' in it... i want only rows with … | |
I already had the data of output current and voltage..I need to train all the data to get maximum power point using Back Propagation Neural Network..How can I do that?thank you for your answer..really appreciate it.. | |
Hello, I made the following code based on the following physics problem: "A sphere of metal has a radius of 6.7 cm and a density of 9.27 g/cm^3. What's the mass of the sphere?". The program runs error-free, except that it gives me a result (mass) of 8758.99 grams. The … |
The End.