199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Barbarrosa

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 …

Member Avatar for Ancient Dragon
0
132
Member Avatar for nurulshidanoni

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 …

Member Avatar for nurulshidanoni
0
231
Member Avatar for eranga262154

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.

Member Avatar for eranga262154
0
91
Member Avatar for zmnaiaj30

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

Member Avatar for Ancient Dragon
0
124
Member Avatar for hockeyplayer051

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. …

Member Avatar for Ancient Dragon
0
97
Member Avatar for allmusic76

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 …

Member Avatar for Ancient Dragon
0
104
Member Avatar for cybarkop2007

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; …

Member Avatar for cybarkop2007
0
102
Member Avatar for Nektarios

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 …

Member Avatar for Nektarios
0
103
Member Avatar for LanierWexford

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 …

Member Avatar for LanierWexford
0
118
Member Avatar for atish00

How to set font style color and bg color; the online examples are very tough ; can ayone give me a easy and understandable code ??

Member Avatar for hammerhead
0
126
Member Avatar for mxb7642

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.

Member Avatar for mxb7642
0
85
Member Avatar for Thanatoid

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 …

Member Avatar for Thanatoid
0
271
Member Avatar for GreyInTheLaw

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 …

Member Avatar for ZZucker
0
174
Member Avatar for leokuz

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 …

Member Avatar for leokuz
0
233
Member Avatar for XZodia

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..

Member Avatar for jbennet
0
105
Member Avatar for Sardor

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.

Member Avatar for Ancient Dragon
0
103
Member Avatar for peaceful_soul

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 …

Member Avatar for peaceful_soul
0
114
Member Avatar for Grub

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 …

Member Avatar for Jim Larkin
0
158
Member Avatar for Penguin506

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 …

Member Avatar for Jim Larkin
0
249
Member Avatar for shahriar2403

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 …

Member Avatar for shahriar2403
0
104
Member Avatar for leroi green

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; …

Member Avatar for leroi green
0
108
Member Avatar for johnny.g

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 …

Member Avatar for SheSaidImaPregy
0
197
Member Avatar for priyala

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 …

Member Avatar for choudhuryshouvi
0
263
Member Avatar for atish00

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 …

Member Avatar for atish00
0
112
Member Avatar for kingflux

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 …

Member Avatar for kingflux
0
163
Member Avatar for littlegreen

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 …

Member Avatar for littlegreen
0
213
Member Avatar for batcater98

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 …

Member Avatar for tuxboy
0
153
Member Avatar for Mido â„¢

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 …

Member Avatar for hammerhead
0
225
Member Avatar for bugmenot

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 …

Member Avatar for bugmenot
0
283
Member Avatar for CzechRock3

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 …

Member Avatar for CzechRock3
0
105
Member Avatar for chocl8drop

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. …

Member Avatar for chocl8drop
0
739
Member Avatar for lordx78

[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 …

Member Avatar for lordx78
0
79
Member Avatar for aminit

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 …

Member Avatar for aminit
0
81
Member Avatar for majestic0110

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 …

Member Avatar for majestic0110
0
135
Member Avatar for arunsolanki31

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 …

Member Avatar for SheSaidImaPregy
0
116
Member Avatar for johnny.g

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 …

Member Avatar for johnny.g
0
172
Member Avatar for gawain_

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 …

Member Avatar for gawain_
0
91
Member Avatar for sgw

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 …

Member Avatar for sgw
0
13K
Member Avatar for brr

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

Member Avatar for aravelli
0
145
Member Avatar for djnzak

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

Member Avatar for djnzak
0
71
Member Avatar for Infeligo

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. …

Member Avatar for Ancient Dragon
0
195
Member Avatar for sbv

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]

Member Avatar for sbv
0
157
Member Avatar for jino

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 …

Member Avatar for jino
0
73
Member Avatar for sbv

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..... :(

Member Avatar for sbv
0
72
Member Avatar for sofian786

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 …

Member Avatar for sofian786
0
91
Member Avatar for jglw

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!

Member Avatar for jglw
0
72
Member Avatar for MagicBytes

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 …

Member Avatar for djjaries
0
143
Member Avatar for joshmo

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 …

Member Avatar for joshmo
0
96
Member Avatar for lordx78

[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.

Member Avatar for lordx78
0
164
Member Avatar for lordx78

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 …

Member Avatar for lordx78
0
114

The End.