199,114 Archived Topics
Remove Filter ![]() | |
Hi Guys, I have some confusing part in the sql command the question is i have 2 different query : a)[code=sql] Select SUM(T1.Amount+T2.Amount) as Total From TABLE1 T1 INNER TABLE2 T2 ON T1.ID = T2.ID[/code] b) [code=sql]Select Sum(Amount) as Total FROM TABLE3 [/code] the result if a) query is 100 … | |
I have been looking for a way to evaluate if a column in a database has a null value in it. So far, every method suggested have failed and I would like to know anyone else have successfully evaluate a null value in C# Visual Studio 2005. | |
Hello everybody, I'm back, started my 2nd year at Uni now and started programming in the wonder that is C++ and enjoying it tremendously. but I've hit a slight problem, not with code but with design. I'm not sure where to put the input/output, sounds weird but I'll elaborate. i … | |
Need help with a java project I need to do. Here is the project specifications : """Create a console calculator applicaion that: * Takes one command line argument: your name and surname. When the program starts, display the date and time with a welcome message for the user. * Display … | |
Here is the code: [CODE]// All this has to do is take the "names.txt" file, and send it to "backwards.txt" // in reverse order, as an array. No idea why its not working, sent all necessary files with it. #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using … | |
I'm trying to do a program involving a base class and subclasses, whose subclasses use each other. In terms of code: [ICODE] Class Space { ... }; Class Room : public Space { Link* l; ... }; Class Link : public Space { Room* r; ... }; [/ICODE] Now I'm … | |
Here's the code: [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using namespace std; string getData(ifstream &fin, string array[]); //string getData(ifstream &fin, string array[]); This is what it SHOULD look like. void outputData(ofstream &fout, string array[], int numNames); //void outputData(ofstream &fout, string array[], int numNames) int main() { … | |
can you help me assign sql query to gridview..i am trying like this but it doesnt work. [CODE] Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim con As New SqlConnection("Data Source=SPERANZA\SQLEXPRESS;initial catalog=master;integrated security=true") Dim cmd As New SqlCommand Dim dr As SqlDataReader cmd.Connection = con con.Open() cmd.CommandText … | |
How do I write a C++ class program to convert temperatures from Celsius to Fahrenheit and vice versa? | |
I'm new to vb.net[COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR] though I've done a fair bit of work in vb6. My problem is this. I have a form with two tab[COLOR=#000000][COLOR=#000000]controls[/COLOR][/COLOR] and on the tab pages are text boxes, group boxes, check boxes, etc. for entering parameters. While I'm developing using [COLOR=#000000][COLOR=#000000]debug[/COLOR][/COLOR]gging in vb.net 2005, each … | |
hi all... i want to know if using simlpe combo with dropdown style 2 (where you cant type ur own data) im not able to retrieve data coz its showing that its has read only property... is it possible that i can change the syle property of my combo box... … | |
im designing a program where it calls a function that uses the linear search algorithm to locate one of the values. function must keep a count of the comparisons it makes until it finds the value. the program then calls the binary search (a sep. function) to locate the same … | |
I got my program to work but it seems it cannot: 1.cant read a file if its only one archive (needs two to be able to read) 2.can only read the first line in a FILE 3.delete function deletes more than one than intended. help are appreciated :) I have … | |
hi all, glad I found this site. I hope you all can help me out with this little problem. First, my environment: Mac OSX 10.5.5 Python 2.6 (compiled from source, not using macports) basedir: /usr/local/bin/python; /usr/local/lib/python2.6 Following the proper directions on how to install setuptools (from here [url]http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other[/url]) [code] bash-3.2# … | |
Hello, I know how to create a hash_map and use my hash function with it, but I don't know how to handle collisions. Specifically, how would I implement a chain/buckets with a linked list... it seems like it's built in but I can't find how to do it. [code] #include … | |
hello friend z!! give me some idea about : [B]write a program that takes two characters and two integers by using two command program[/B] | |
Hi, can anyone help me with building a script that submits a URL over and over again? im pretty new at php and im just starting to learn how to use codes and stuff. basically the whole idea is i use a urlsubmitter.php script then open command prompt and use … | |
How can I declarate a matrix of strings? if I write something like the line below, my code do not compile string a[MAX][MAX]; someone can give me a solution? thanks | |
Hello everyone, I know there is a build in real time clock inside the computer and I know it's possible to use this clock when you write a program on Assembler(using an interupt that I don't remember at the moment),is there a way to use the real time clock while … | |
I'm having some problems with a program that invovles arrays. I have a program that is suppose to read data from a file fish.txt about fisherman. The a function is suppose to print the number of fish that need to be thrown back because their is a maximum of 14 … | |
I'm working on an assignment and when I run the application I get the message Build Successful, but the Form doesn't show up on my screen. How do I make the Form appear? | |
I have rebuilt numerous navigational buttons into CSS (.button {backgroung-image ETC) to reduce the number of http requests. It works fine (better loading time and so forth) except that the images are "seen" as unsecured. My thought: Possibly move or copy the images in question from http to https. [B]But … | |
getting value of return value of stored procedure to code behined,with MicroSoft Patterns and Practices. Hi all, I am using Microsoft Patterns and Practices to make a database connection to my application. I am able to get the value of the OUT parameter of the stored procedure to code behind. … | |
Here I am again with new problem. I want to do some calculation on each field row after row. The for loop which I tried is not giving me what I expected [ICODE]#sum each 5 fields over the raw: for step in range (6, N, 5): for i in range … | |
I'm trying to make a checkout system but i'm having trouble with one part and cannot think of a solution for the life of me. Basically when you enter the checkout form it displays the items for sale (because on another form you enter the details of an item for … | |
Hey guys, Im reading up on pointers and since i dont have a physical teacher, Its abit hard concept to grasp. Could anyone please explain in their own words shortly how they work, I understand that they carry the adress of another variable, and you'd assign this adress with an … | |
Hello, This is my first post on DaniWeb, so I hope I did it OK. Anyway, you'll notice that in the top of every window you have standard close button (the x in the red box). I was wondering if it was possible to remove at this runtime, using VB6, … | |
Hi guys I am working on a Lottery program to generate 6 unique numbers. So far I have the following: CLASS LOOKS LIKE THIS: [code=cplusplus] #include "stdafx.h" #include <string> #include <ctime> #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers class Lottery // Lottery class definition { public: … | |
Hi, Recently I came up with an idea of making my own program for tagging mp3 files. I realised I'm lacking in knowledge. For now I need the following information: 1. After typing a path to a main folder, I'd like to read the names of the folders inside. 2. … | |
Hi to all, im MJ a 4th year Computer Science student... well im new at using netbeans... can someone please help me to have a tutorial about the codes on Mobile Applications... cause im planning to make an applet that will server as a quick refresher about a certain subject … | |
everything works fine on my app until I add a menu. Every button every field, everything ends up stacked in the top left corner. as soon as I set the menubar to the main frame and run it collapses. I have like 5 sizers that get added to a final … | |
I need to make an array using the following info. Salesperson January February March 1 2400 3500 2000 2 1500 7000 1000 3 600 450 2100 4 790 240 500 5 1000 1000 1000 6 6300 7000 8000 7 1300 450 700 8 2700 5500 6000 9 4700 4800 4900 … | |
Hi everyone, I'm writting old "Battle ship" game. I know, that is very funny, but I want my own version, with one objects and inheretancy levels. Here is a plan what I'm reaching for: ---------------------------- object: A-level: - aship - keeps common parameters of floating things B-level - ship - … | |
[code] int numOfMonths = numOfYears * 12; float monthlyRepayments; float actualRate = (rate/100)/12; //monthlyRepayments = (borrowAmount*(pow((1+actualRate),numOfMonths))*actualRate)/((pow((1+actualRate),numOfMonths))-1); monthlyRepayments = (100000 * (pow((1+actualRate),180) * actualRate))/((pow((1+actualRate),180))-1); [/code] Ok this is the actual equation: (100000*(1+A1)^180*A1)/((1+A1)^180-1) btw A1 =0.06/12 So the commented line is original one I tried, didn't work. So I tried just putting … | |
I'm working on a project for school where we have to read from a voters database which is set up in the following manner: voternumber:voternama:havevoted Ex: 1253:Bill Simmons:false 3244:Steve Jobs:true I made this algorithm to search for a voter by ID number but for some reason it keeps coming up … | |
NEED HELP!!!! My teacher is horrible teaching intro to programming. I asked her several times to help me and she won't. I hope you can help me with this....we are learning about using arrays.... The city of Cary is holding a special census. The census takers collect one record for … | |
Hi. I made some headers I want to include in every project from the include directories. So I'll be able to do [I]#include <hello.h>[/I] instead of [I]"hello.h"[/I], and I won't need to place them in the same directory every time. So I did this: [IMG]http://i38.tinypic.com/2n1bdj8.jpg[/IMG] [IMG]http://i34.tinypic.com/33a4d1g.jpg[/IMG] but it doesn't work. … | |
How do I change the icon of the exe. in console mode? (as part of the exe itself) :?: | |
I got some newbies questions, i hope to hear from you... Feel free to answer any! I will appreciate it so much if you answer them all :-) 1. Do AV's generally (windows security specifically) trust application written under .NET more than the ones written written under MFC & Win32 … | |
Hey all, I apologize now for being a Noob. I'm using a Tutorial to learn VB6 (for starters) and everything was going great until just now... The assignment is to create a [URL="http://www.profsr.com/vb/vbless04.htm"]Weekly Payroll[/URL]. I have managed to figure out how to make the standard calc ( Hrs worked * … | |
hello everyone, I am working on an assignment for my cs class. It is basically a board game with 20 levels. i have a question about why this code in my program is not working...hopefully what I am posting makes any sense because what I am writing is already long...and … | |
Hi everyone!! First of all am quite new to cpp especially under linux. I am currently working on a small project under Linux and am having to deal with large number of data(larger than 1 GB). numerous number of operation is to be done with these data. for example: sorting, … | |
hi im a noob in C#. just learning by my self. need to know how to assign values to variables. which we input normally in C we use scanf ne. but in C#. how we gonna assign | |
Using Dev-C++ Im a newbie to c++ Is it possible to save files using a variable as the filename. What i want to do is setup a text based program like a mud and be able to go from room to room and have it display room discription and available … | |
Hi, I need help with implementing cyclic codes.Its much like crc.I've found a lot of software implementations for crc but havent understood them.I've looked at a crc guide which gave, [code] So to implement CRC division, we have to feed the message through a division register. At this point, we … | |
For some reason I'm getting a memory leak error. It's probably from the part where I start to copy the strings and allocate an array of characters, but I have no idea why. I'm using a text file for input data, which is found here: [url]http://puma.deanza.edu/distribute/DeliaG/Fall_2008/CIS15BG/BG_Labs/BG_Lab_6/countries.txt[/url] I appreciate anyone who … | |
Hey I have a problem that annoys me a lot.... i want to extract all titles and songnames within a file, a *.pls file to be exact. ive read the entire file from beginning to end and ive splitted the text like so.. string[] titles = readpls.Split(new string[] { @"\n", … | |
Hi! In the following code- [code=php] <?php header('Cache-Control:no-cache'); ?> <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form id="form1" name="form1" method="post" action="<?php echo($_SERVER['PHP_SELF']);?>"> <p> <label>Name: <input type="text" name="txt" id="txt" value="<?php $_POST['txt'];?>" /> </label></p> <p> <input type="submit" name="b1" id="b1" … | |
Here is my code what is my problem. I need a window to open up that says ok or cancel. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang = "en" dir="ltr"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859- 1" /> <title>Exit Row Requirements</title> </head> <body> <script type="text/javascript"> /* … | |
|
The End.