199,114 Archived Topics
Remove Filter ![]() | |
Hello, I've been having a problem with my arrays. The error that I am receiving says "[my array] undeclared (first use this function)" and "invalid types 'bool[int]' for array subscripts". My code has the following setup: [code=cplusplus] int array1[some size][some size]; int main(){ int array2[somesize];int array3[somesize][somesize]; int NUM; /*This number … | |
I have this data ROW 1: 3 15 36 56 71 83 97 106 118 135 138 ROW 2: 3 10 31 51 71 78 97 105 113 135 138 How to count when 3 meet 15 is 1 3 meet 36 is 1 3 56 is 1 3 meet … | |
Hi all, I already convert a C++ project to C# project. It's fine and working ok. On C++ I use DWORD data type. But in C# for that I used just a int value. Is that ok. Is there compatible data type which I can use for my project. Thanks. | |
do you know where i can get the conversion table? only the table for my project... and for those who already done with this thing can u please help me? im a noob here T_T | |
Hello, I had ran into a very difficult problem in my CS110 class in University. The problem asks us to use if statements to take 5 random inputted float numbers: ie. 5.63, 10.5, 16.7, 20.6 & 10.9 and take the median value, Ie the value that is in the middle. … | |
![]() | Hi folks, Can you help me try to figure this one out? I am trying to create a program that will accept a string from a user input ( cin) in the HH:MM:SS format, and then convert this into seconds. However, I also want to avoid "fat-fingered"input by creating an … |
I have a need to pull the header informatilon form about a thousand email messages that have been saved in a file folder as text messages. I want to get this information into a database. I have no skills in coding or scripts. Example: The source IP, To: From: Date; … | |
Dear friends Im new in IT and i want to ask you about boundary values check in a program. I have the following exercise that I want to check and i don't know how... [code=c] #include <stdio.h> #include <string.h> struct st { int i; char n[4]; char g; }; struct … | |
I was using my old C++ assignments to teach myself Python and ran into issues every other line of code. In my attempt to find another way to ease into the lang I found what I think is an awesome tool "How to Think Like a (Python) Programmer" I understand … | |
How to set font style color and bg color; the online examples are very tough ; can ayone give me a easy and understandable code ?? | |
I'm trying to access a dll located on a web server. Anyone know if this is possible? and if so how to do it or how difficult it would be do? Any help would be appreciated. Thank you. | |
I am trying to work on a database with 3 tables. To make it easier I have created a couple of temp tables to work out the syntax. CREATE TABLE #owner ( [NameId] tinyint IDENTITY(1,1) NOT NULL, [Name] varchar(50) NOT NULL ) INSERT INTO #owner VALUES ('Thanatoid'); INSERT INTO #owner … | |
Well, I've been programming for all of about 5 hours in Python now. From first opening my browser and googling the term to making this post here. I've written something up too! It's a short script that accepts input from the user about their date of birth and just prints … | |
I am wondering if it is possible to accomplish following in VB.NET: I would like to automate files move and sorting from "C:\uploaded_files" (files contain any extensions e.g. .pdf, .tif, .eml, .jpg, etc) to directory under different subdirectories as shown below. F:\Files\Oregon\Sold\Victoria Kraus\2008\OSVK082036PI\ F:\Files\Oregon\Leased\Victoria Kraus\2008\OLVK082036PI\ F:\Files\Washington\Sold\Victoria Kraus\2008\WSVK082036PI\ F:\Files\Washington\Leased\Victoria Kraus\2008\WLVK082036PI\ F:\Files\Oregon\Sold\Dan … | |
Hi guys! I was wondering if there is any way that I can get Visual Basic 6 to run in Windows Vista? If not, will it work in SP1? I have done so many research but I can't find any answers.. Any help will be greatly appreciated.. Thank you.. | |
I'm a new in programming. Recently, I began to learm the language C++. One of my good program to make is connecting PC's by telephone lines. Please, inform me about how to use the device modem by the C++. Write some examples, if possible. | |
hello friends :) well can anybody tell me why does this code [code=c] for (i = 0; i < 10; i++){ childpid = fork(); if (0 == childpid){ /* This is the line that is different in parts A and B. */ execlp("some_prog", "some_prog", (char *)0); exit(2); } else if … | |
Hi, I have written a Solitaire game program and have made a history of moves so the user may either go back on moves and make another choice or go forward after having gone back. Now I am using a vector to store the moves. When the user has made … | |
I'm doing an assignment for C++. I'm to write a program that will help elementary school students learn multiplication. Use rand() to produce two integers between +10 and -10 inclusive. The program should then use those numbers to output the question. So far I haven't put the functions in, i'm … | |
In my application i use adodc to connect with access database and have command button to show a report consisting of datas from that database. I also have command button to add datas in runtime. But in runtime when i call for show report firsttime it show what is in … | |
hey guys and gals, newb back again with a little request from the Java Gods. in line 31 i've got an error saying "cannot find symbol" [code]NextRecord record = new NextRecord();[/code] [B]i've got 2![/B] count 'em 2 Java books and i'm still stuck...Help? [code] import java.io.File; import java.io.FileNotFoundException; import java.lang.IllegalStateException; … | |
hiii,,i m a new member of daniweb and new to programming also.. well i have a simple login page in my website,, currently i am using standard username and password,,,but i would like to have the username and password checked from a table in the database,, i am using asp.net … | |
I need one more help Say suppose I have 3 records from database when i did a select query I need three values to be popualted in the three different text box . If I have four then i need four text box in the form How can I do … | |
so far I ask user for number of terms : [code=c++] cout<<"Enter the number of therms in the array \n\n"; cin>>x; for(i=0; i<x; i++) { cin>>arr[i]; } [/code] But It looks preety non-user friendly, I wanna input it just like we enter a string. We the user should hit shift … | |
Hello, I am working in VS.NET 2003 with the original datagrid control. There does not appear to be a published technique for displaying alt text on the grid headers (e.g. mouseover causes a pop-up explaining what the column represents). Has anyone successfully accomplished this with the Microsoft datagrid or a … | |
Hi all, I'm having the problem while using the [URL="http://24ways.org/2005/edit-in-place-with-ajax"]edit-in-place scripts [/URL] from internet. It's ok when i just used for one text id, but after i added a while loop because of multiple items and it become only the 1st text id content works. So below here i post … | |
I having troubles with the different seperators in this one and just picking out the lines I want keyed from the .dat filename. I basically have an autogenerated flat file that is an export of a directory structure. I want to parse through the flat file and pull values from … | |
i want do this pro that looks like phone index but i have problems and i dunno how to fix this its console application - c++ source file plz help me quikly [CODE]#include<iostream.h> void main() { char names[10],n; double tel[10],tel1; int x,i,f=0,f1=0; cout<<"1 - add new rec"<<endl; cout<<"2 - search … | |
hi guys, i am using vb6 as front end and oracle as back end for my project. i am using ADO to connect to oracle database. can u please help me with the code. my code is [B]Dim con As New ADODB.Connection Dim str As String Private Sub Command1_Click() str … | |
Hi im a student programmer and I was writing a program... and I need to beable to load a form from string variable like Private Sub cmdLoad_Click() dim strFormLink(99) as string strFormLink(1).Show End Sub That will not work... Have Any ideas(If you do I'd be really greatful I tried code … | |
I am working on a program that implements a complex number class. I will include the main part of the code. I am getting the following error and can't figure out why. [code] error C2143: syntax error : missing ';' before 'namespace' [/code] Here is the beginning of the program. … | |
[code=php] <?php // connect to database include("inc/connect.php"); // include auth and nav include("inc/auth.php"); // begin content //include("inc/nav.php"); // close mysql connection //mysql_close(); // Check if the form has been submitted. if (isset($_POST['Submit'])) { //require_once ('mysql_connect.php'); // Connect to the db. $errors = array(); // Initialize error array. // Check for … | |
Hello All: I want to make a simple login to a program created in C#, I want when I entered the program I must asked about the password, another thing is how can I by another form confirm the password(change the password), nest time when I entered the new password … | |
Hi all. have just dragged a datagridview control onto a form. this loads up a sql d/b fine and appropriately. the grid is editable (new rows can be added/changed etc)Now i need those changes to be thrown back to the d/b - how do i do that ? many thanks … | |
i have one text box with required field validator and two button like one submit and other reset button when i click submit button then it show text box is blank when i do not type any value it is OK not a problem . if i click reset button … | |
hii,,i am using asp.net 2005 and sql server 2005.i hav a insert page thr which i can insert details to a table in the database,,thrs a column called sme_id in the table.....what i want is when a user inserts the sme_id from the webpage,it should check from the table whether … | |
This snippet while(<>) { for my $word ( split(/\s+/) ) { $idx{$word}{$page_number} = 1; } $page_number++ if ( /\014/ ); } is part of a perl script which indexes words by page (I'm trying to rewrite it in python). I do not understand it, or rather, I can guess a … | |
When there are several cout statements, if the first cout statement has, say, << fixed << showpoint << setprecision(4), then all the subsequent cout statements *without* these settings will also have that effect. For example, in the following program, [CODE]cout << "sin(" << angle << ") = " << fixed … | |
iam new to ajax i did some examples in jsp using Ajax really its very nice now i want to put Pop-up ballon i think using this without put view button in my screen, to view the particular item details within page plzz provide me its urgen for me | |
Hi i am making a table where i have different currency fields showing the salary of different staff and then a total field where i can calculate each staff's salary on rent, transport etc... now how do i make the total field show the total i.e. addition of rent+transport+education | |
Hello to everybody. I'm trying to solve an ACM task #755 called [URL="http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=696"]487-3279[/URL]. It's about telephone numbers, quite straightforward. But still something is wrong in my code, because the automatic control says "Wrong answer" and I can't find on which input it fails. I tested it on Windows using MinGw. … | |
Hello friends.... I an unknown to XML. Is XML is used for Page formatting or as a stylesheet creater etc..... What this code is doing.................. [Code] var screenDocPath = Server.MapPath("screens/"+call+".xslt")//***APP VARIABLE var screenDoc = Server.CreateObject("Msxml2.DOMDocument") screenDoc.async = false screenDoc.load(screenDocPath) <%=dataDoc.transformNode(screenDoc)%> [/code] | |
Dear all,, As i used to display pagination along with searching the script work first time correctly and When i try to see the first or previous page this error message is occuring... What is the error in this ... Second Query= SELECT SQL_CALC_FOUND_ROWS * FROM reg_personal inner join reg_english_level … | |
Hi I have a asp page for Update. i need to update it look only. I formated it. But not getting look. In that page XML data is used. I have no knowledge about XML. Is this line making any design changes? <%=dataDoc.transformNode(screenDoc)%> Please tell me..... :( | |
how would i write this programme to calculate the average monthly sales figure for a single user like in one calendar year. A user will be asked to enter 12 sales figures (pounds & pence), one for each month of the year, and then the average monthly figure will be … | |
Say you have 3 tables A (Key, a) B (Key, b) C (Key, c) How would you select say 10 from A ordered by a, from 50 from B ordered by b, from 100 from C ordered by c? All the keys represents the same thing. Thanks! | |
Hello there, how can I [COLOR="red"]SendKeys[/COLOR] to the same window with out having to run a new instance of it every time I click on the command button on my form ? [COLOR="Green"]Private Sub [/COLOR]Command1_Click() Shell "notepad", vbNormalFocus SendKeys "This is a test string" [COLOR="green"]End Sub[/COLOR] The code above keeps … | |
am trying to write a simple server program that prompts the user for an ISBN number or an author. it should check if the number is a valid number i.e if the number is 4 digits...it should also check if the user has entered a number or characters..it should then … | |
[code=html] <select name="test1" style="width: 200px"> <option></option> </select> [/code] This is typical drop-down box in html forms. My question is, hot to make the option to capture current date. Or Must I use any other function than drop-down box. Please advise. | |
Just wanted to ask you guys how to properly call HTML tags into php. e.g. [code=php] echo "You are not authenticated. Please login.<br><br> <form method=POST action=admin.php bgcolor=\"C0C0C0\"> username: <input type=text name=\"username\"> password: <input type=password name=\"password\"> <input type=submit> </form>"; [/code] As you can see above, the developer has design a form … |
The End.