199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for etc123

[CODE]//function void function(int a[5][])[/CODE] in passing or even declaring a multidimensional array why is it necessary to specify the row while it's ok not to specify the column?

Member Avatar for stultuske
0
101
Member Avatar for vjp08

Hi, i want to run a python script from another python sript as a new process. i have tried with spawn functions of os module but it didnt work. i guess these functions work on only Linux. how to create a new process on windows platform..

Member Avatar for vjp08
0
177
Member Avatar for rayda

this is my java coding: [code] import java.util.Scanner; import java.io.*; public class readNumbers { public static void main(String[]args) throws IOException { int num; String filename; Scanner keyboard = new Scanner(System.in); System.out.print("Enter the filename: "); filename=keyboard.nextLine(); FileWriter fwriter=new FileWriter(filename); PrintWriter outputFile=new PrintWriter(fwriter); for(int i=1; i<=5; i++) { System.out.print("Enter a number: "); …

Member Avatar for stultuske
0
358
Member Avatar for soroushc

how to get a string using array? and how can I get input in this format string|12.3 12.23 | example;with no space between the lines and when user enter 0 it will exit david|12.3 24.2| Peter|12.4 24.2|

Member Avatar for VernonDozier
0
111
Member Avatar for ryan311

all i want is if the value of my product stock is 0 then the message box show for example theres no more product stock and also i want is if the user inputted higher value in my text2.text for example my product stock left is 5 if he/she inputted …

Member Avatar for Ole Raptor
0
104
Member Avatar for firoz.raj

can anybody tell me why Bold statement is not working. [code] Private Sub Command2_Click() Dim a As String a = MsgBox("You want to Modify....?", vbQuestion + vbOKCancel, " MODIFY") If a = vbOK Then Set rs = New ADODB.Recordset rs.CursorLocation = adUseClient [B]rs.Open "select mr.srno,mr.productname,mr.qty, mr.unit from mrtemp as mr …

Member Avatar for Ole Raptor
0
126
Member Avatar for drbaz

Example Database id master_id ref_id 1 p1 c1 2 p2 c1 3 c1 c3 4 c3 c1 5 p3 c4 6 p3 c5 Starting with "p1" I wish to return the recursive list of master_id:ref_id Here's the problem: p1:c1 c1:c3 c3:c1 (circular reference) c1:c3 ..... ..... etc How do I …

Member Avatar for drbaz
0
81
Member Avatar for k2k

hi, I used to program in C++ and constructed a linkedlist class (not a very fancy one but just enough to use the head and reference to simply add, and remove data in the list. now i am learning java and realize that java.util.*; has a class called the linkedList …

Member Avatar for javaAddict
0
115
Member Avatar for desiguru

I have a column "ID" in a table, and I need to move that to another table in the same database. How do I do this?

Member Avatar for nav33n
0
265
Member Avatar for emhmk1

Hi Guys, Ok here is the deal, i'm looking for a script that will allow a site admin to upload an image then add a description to it then click on save / upload/ send.... (whatever) Then the image and text is displayed on the webpage. I'm thinking of including …

Member Avatar for emhmk1
0
116
Member Avatar for emilio

hi i have an existing table . i'm working with sql management studio. how can i change columns properties ? set column as idenity true. set column as indexable.

Member Avatar for emilio
0
99
Member Avatar for swaransoft

We are working on a project & finding an issue while accessing the data from SQL Server. Problem: Display of record in search console of application on number of times it has been processed. Consider we have a record which needs to be displayed 5 times a day in search …

Member Avatar for Ole Raptor
0
111
Member Avatar for shadowfire36

i was giving an assignemnt to show stacks with out using the STL . my question is is my code a correct example or not ? and if so can some some one guide or explain to me what i did wrong or what i need to change [code] #include …

Member Avatar for Salem
0
149
Member Avatar for sganandhsg

hi Friends Iam using Vb6.0 for one msgbox using this message box title need change plz help me.... Thanks

Member Avatar for Comatose
0
108
Member Avatar for skatamatic

I'm making an asteroids clone game, using GDI+ in C#. I don't understand why the asteroids wont move. They are supposed to rotate based on a member indicating rotation angle, and move in a direction based off of a member that indicates movement angle. But they don't do anything at …

Member Avatar for skatamatic
0
163
Member Avatar for shadowfire36

im doing this example project, but i cant seem to figure out why visual studio 2008 keeps giving me error C2075-'Target of operator new()' : array initialization needs curly braces. it says the error is on line 47 [code="cpp"] #include <stdio.h> #include <string> #include <vector> class Foo { std::string _str; …

Member Avatar for kbshibukumar
0
624
Member Avatar for shasha821110

Hi, all. i installed the XAMPP and run the [url]http://localhost[/url]. It seems fine for me and it show some welcome and "it works" information. But when i click SQL Admin, it couldn't run correctly. It always have some error information show up. the problem is like the attachment show up. …

Member Avatar for shasha821110
0
69
Member Avatar for shinnxennosagga

I got a problem in designing (may be not design, more like code one) UI for my chat application. here's the problem : I want to make a chat box on mobile device using C#, and I want to be able insert smiley. The problem is, by using textbox or …

0
76
Member Avatar for jencinas69

Hello I need to do a php survey, I have php questionare but it does not support images. What I need to do is have users upload car pictures and then people to be able to vote on the cars to determine a winner. any advice from someone???? Than kyou

Member Avatar for almostbob
0
103
Member Avatar for MrMellow

Hi im new to the site and my question is why wont my php files display in my browser? I have 10 years exp with html but i turned my site over to a developer he put in php. Now when i go to upload my site to a different …

Member Avatar for almostbob
0
242
Member Avatar for chunalt787

I am just starting off in a haskell course and I am trying to write a program that takes a list representing an int such as [1,4,3] would mean 143, and convert it to binary and return it as a list in the same fashion. I have written the following …

Member Avatar for chunalt787
0
153
Member Avatar for christiangirl

Hey, I am having trouble with the file I/O part of this program. It seems to start at the end of the files contents and not go into the while loop. [code] #include "queue.cpp" #include <iostream> #include <fstream> #include <iomanip> /******************************************* * class Priority * * Takes input from file …

Member Avatar for cikara21
0
156
Member Avatar for moonw3ll

I'm new in programming, i really really want to learn and i think i can learn faster if someone will give me problems so that i can answer them without asking for help from others. Now, i learned loop last week so i think i'm on for making programs. I …

Member Avatar for moonw3ll
0
259
Member Avatar for Rein Valdez

Hello Daniweb Forum People, I have this problem of getting the decimal of a number? How can I get it and copy to a variable? ex.... 1234.59 I used a for loop in order to get the index value of 59, my problem was with the value? how can I …

Member Avatar for Aia
0
162
Member Avatar for shanir13

I Have been working on this for a few days now, and I seem to be missing something. What I have to do is: > Design a C# solution with a Main ( ) method that holds an integer variable named seconds to which you will assign a value. Create …

Member Avatar for slap1914
0
330
Member Avatar for Scottmandoo

in the following piece of code the else part of my if/else statements doent seem to work it just adds nothing, thanks. btw genre is a dropbox (and yes i have added the values) and genre2 is a text box, same with the filehost and filehost2. [CODE=php]$name = $_POST['song']; $artist …

Member Avatar for Scottmandoo
0
107
Member Avatar for RexxX

This is a little program I'm writing to refresh my knowledge of C and I know it's wrong, but everything I've tried in order to fix it isn't working. [code] #include <stdio.h> #include <string.h> int main() { int const STR_LENGTH = 255; char str[STR_LENGTH]; int n=0,i=0; printf("Please enter a word: …

Member Avatar for death_oclock
0
115
Member Avatar for mumblejum

I need to write a C++ program. I'm usually pretty decent with C++ but with this one I'm lost. I have to write a program that basically checks to make sure that the braces creating a block in a cpp file are balanced. I'm not looking for anyone to write …

Member Avatar for StuXYZ
0
441
Member Avatar for chadlong41

Is there object persistence in PHP 5? I ask because it seems that with all the associated memory overhead with OOP, I am wondering if there is another reason for PHP to go OOP besides maintainability.

Member Avatar for death_oclock
0
114
Member Avatar for chadlong41

I have got my database driven web site I m using Code : [code=php]$query = "SELECT * FROM $sTableName WHERE ID=$inPageID LIMIT 1"; $_CONTENT = mysql_fetch_array(mysql_query($query)); <?= $_CONTENT['PAGE_CONTENT'] ?>[/code] to insert the content, into the page. Now if I wanted to add a php command into the page (the part …

Member Avatar for death_oclock
0
80
Member Avatar for kacumbo

Ok i have been working on this for a few days and can not get my main right. I have tried so many diffrent things and couldnt get it any help is appreciated. Design, write, and test a program that simulates some aspects of a simple savings account in a …

Member Avatar for Ancient Dragon
0
594
Member Avatar for Joonas

001 BITS 16 002 segment myStack stack 003 resb 0100h 004 005 segment myData data 006 somedata db 10101100b 007 008 segment myCode code 009 00A dothingstobx: 00B push ax 00C mov ax, 56h 00D add word ax, bx 00E or bx, ax 00F ret 010 011 ..start: 012 mov …

Member Avatar for Joonas
0
121
Member Avatar for peacerosetx

Greeting All, Peace. New to this forum and am confused about how to approach data analysis of variables with C++. My question I is am simply going to do simple descriptive statistics (mean, mode, variance), and a little more complicated chi square / correlation (Pearson). The approach that I am …

Member Avatar for Lerner
0
186
Member Avatar for Clockowl

Hey guys, I was wondering if the stringstream class copied the string to itself or just keeps a pointer. Because if it copies I can free or clear the string without fearing for the data in stringstream. EDIT: Like this: [code=cpp] string stringz0r("Chickenz"); stringstream streamz0r(stringz0r); //will this not affect the …

Member Avatar for Clockowl
0
123
Member Avatar for rickster11

Ok, new to C++, I bet this is a real easy question. Every time I input a char, it enters the same char twice to variable. So when I enter "r", and then output it..it outputs "rr" [code=c++] #include <iostream> #include <fstream> using namespace std; #define errorMsg1 "You must enter …

Member Avatar for ShawnCplus
0
185
Member Avatar for skitzo315

I'm new to C++ and I can't seem to find the problem with my code. I have a function that opens an input file. It asks you to input a file and if it can’t open the file it asks you if you want to try again. If you answer …

Member Avatar for VernonDozier
0
149
Member Avatar for jedimatt

Hello, How can i produce the following output from a query: <group1> <value="100"> <-- This value is in a table <value=""> <--The null ones are not in a table <value=""> <value=""> <group2> <value=""> <value="230"> <value=""> <value=""> <group3> <value=""> <value=""> <value="154"> <value=""> <group4> <value=""> <value=""> <value=""> <value="300"> We always no how …

Member Avatar for arrgh
0
198
Member Avatar for bulkhin

In my program I did the following: begin if not OpenDialog1.Execute then Exit; Memo1.Clear; AssignFile(MyFile,OpenDialog1.FileName); Reset(MyFile); while not EOLN(MyFile) do begin Read(MyFile,Text1); Memo1.Lines.Add(Text1); end; closeFile(MyFile); end; Can any one help me to write each word from the text file word by word in the memo. Regards, NOna

Member Avatar for LizR
0
751
Member Avatar for david.1982

Hi all, I'm a PHP programmer and I'm just now getting into C#. Here's the problem I'm having: I have a table, 'categories', with 'catID', 'parentID' and 'name' fields. CatID is the primary key, and parentID is either 0 (no parent, top level) or an existing CatID. With this setup, …

Member Avatar for david.1982
0
140
Member Avatar for mruane

I am trying to use binascii to convert this: [code=python] town1 = """ ++++++++++++++++++++++++++++++++++++ +-------------------------------------------------------------+ +----------H-----------H----------H---------H--------------+ +----------&---------------&---------------------------------+ +------------------------------------------------------------>+ +----------------@-------------------------------------------+ ++++++++++++++++++++++++++++++++++++ """ [/code] into the type of graphics used in PyMike's PixelMan 3, found at pygame.org. I looked at the document on python.org telling about binascii and a little bit about …

0
143
Member Avatar for bajanpoet

Now that I can see the data in the datagrid, I realize that the size of the fields is too small - the customerid and customer name fields both could use expanding so that I can see all of the text. Is there a way to programmatically extend the length …

Member Avatar for bajanpoet
0
166
Member Avatar for mruane

I would like to use pickle() to save the stats, progress, and location of a player in my text adventure. I know that pickle() write an object to a text file, and that file can be later recalled to load the information. My curiosity is, would I be able to …

Member Avatar for mruane
0
297
Member Avatar for crow_w

I am trying to insert data from my VB 2008 program into an MS Access Database. My code is as follows: insertSQL = "INSERT INTO ExamInstance (SiteLocation, SiteTime, Student_SEmail, Proctor_PEmail, Exam_CourseNumber, Username, Password) VALUES ('" & SiteLocation & "','" & SiteTime & "','" & SEmail & "','" & PEmail & …

Member Avatar for crow_w
0
135
Member Avatar for Liszt

I am trying to set up an emailprogram, the first code that I try to compile is this where I set an emailTo and emailFrom in the arguments of MailMessage. When I compile this code, I have an errormessage that says. [I]'System::Net::Mail::MailMessage' : class does not have a copy-constructor[/I] What …

Member Avatar for Liszt
0
574
Member Avatar for swetharvss

hi everyone....i have to convert decimal numbers starting from 1 to 1024 into binary and i need access to all the bits. i have done an example which generates a random number and converts it into a 10-bit binary number. this one worked fine for me... [code=c] for(i=0;i<10;i++) { sec[i]= …

Member Avatar for swetharvss
0
283
Member Avatar for regina99

hello all. :) my assignment is to write a program that accepts a charge account number and then determines whether the number is valid by comparing it to the numbers (listed in the array.) most of my program is correct, except for the last part where it displays whether the …

Member Avatar for regina99
0
115
Member Avatar for lllllIllIlllI

Hi For one of my programs i want to be able to graph the performance of things in a graph. The thing is that this graph constantly made a little bit longer with every second that passes. So i was wondering what paintDC to use. And how to use it. …

Member Avatar for lllllIllIlllI
0
83
Member Avatar for Jigs_ff

Hi All, I am new to programming world, i wanted to make a script which will create folder when counting of files breaks. for Example- 1) I have 1000 no of jpg files in a single folder.(but ) 2) but these files has a number break in between. (like it …

Member Avatar for jlm699
0
128
Member Avatar for aruna.belludi

can any one please tell me how to install vb.net & what are the software required to download.

Member Avatar for rapture
0
58
Member Avatar for l_w

Python 2.3.7 has the following functions as number converters: float(num), int(num), long(num). But what happened to double(num)? If my number is a=3.33333 and do round(_,2), the output I get is 3.3300000000000001. I was expecting to see 3.33. What’s happening to here? Thank you. liliya

Member Avatar for l_w
0
143

The End.