132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for volscolts16

Ok, I am tryin to use the proper coded way that a few of you have asked, so don't yell if I screw up the first time, please. I was able to debug and run, but had many errors, I have fixed several already, biggest problems are that if I …

Software Development c++
Member Avatar for Ancient Dragon
0
145
Member Avatar for emilio

hello i would like to perform a method overloading with inheritance my code is : [CODE]public abstract class Shape { protected Point position ; public Shape(int x, int y) { position = new Point(x , y); } public void show() { position.show(); } } public class Rectangle : Shape { …

Software Development
Member Avatar for Ramy Mahrous
0
122
Member Avatar for cosmos22

Hello, I would like to pose a very simple question, does anyone know how to clear the command window of text, and give it a name(Eg. Cosmos's Program) I would like to make room for different lines of text in my program, and also give it a name, for obvious …

Software Development c++
Member Avatar for cosmos22
0
149
Member Avatar for ankitbullu

What enables C to support variable number of function arguments (varargs), while other languages (like Java) do not support this feature? What is special in C which is not there in Java to support this?

Software Development c
Member Avatar for Narue
0
84
Member Avatar for Oxiegen

Hi, all! I'm trying to send a HttpWebRequest to an url that, other than %20, does not take escaped characters. But for some reason, when I do: [ICODE]_HttpWebRequest = DirectCast(System.Net.HttpWebRequest.Create(New Uri("http://web_address")), System.Net.HttpWebRequest)[/ICODE] I end up with an escaped uri string. For example, a string containing the swedish letters å, ä …

Software Development vb.net
0
301
Member Avatar for Techboy52

//I am passing a hex as a string into a decimal integer and I know Integer.parseInt() is easier but i can not use it. //Look below two areas have illegal start of expression and one with not a statement. public class HexToDecimal { public static void main (String [] args) …

Software Development java
Member Avatar for Techboy52
0
477
Member Avatar for wollacott

[CODE] #include<stdio.h> main() { static int n=0, number=1; int fibi (int n, int number); printf ("Following are the first 40 Numbers of the Fibonacci Series:\n"); printf ("1 "); fib (n,number); } fib (int n, int number) { static int i=1; int fibo; if (i==40) { printf ("\ndone"); } else { …

Software Development c
Member Avatar for pokiri
0
96
Member Avatar for gerard4143

My questions is a simple/hard one, whats a stack on an intel machine? I don't a need lesson on how to use one for I already know how, its just that I really don't know very much about them. Like how come you can automatically allocate memory on them by …

Software Development assembly
Member Avatar for sanzilla
0
89
Member Avatar for aminit

Hello all: I wrote an post ,(how to write to txt file), and this is the link [URL="http://www.daniweb.com/forums/thread107440.html"]http://www.daniweb.com/forums/thread107440.html[/URL] but I wonder how can I write [B]some[/B] of controls of my form to txt file.... Thanks in advance.....

Software Development
Member Avatar for aminit
0
89
Member Avatar for ihtraa

we are currently workin on a RFID project and we need to generate the RFID serial numbers which is in a specific format (eg: 0101i0010001). in this the 1st 4 numbers are constant (0101) the next 4 digit numbers are item id which is got from the JSP textbox(i001) the …

Software Development java java-jsp
Member Avatar for Acidburn
0
106
Member Avatar for sachinkumar75
Member Avatar for Nick Evan
0
57
Member Avatar for ankitbullu

What enables C to support variable function arguments (varargs), while other languages (like Java) do not support this feature? What is special in C which is not there in Java to support this?

Software Development c++
Member Avatar for ankitbullu
0
89
Member Avatar for Ankita B

Hi,I have a login page which accepts user id and password.On successful entry user navigates to next page.I wish to display a welcome message with user name like "welcome xyz!"..how can i get user name from user id and password (entered in the login jsp file) be displayed in next(successful-login …

Software Development display java
Member Avatar for stultuske
0
132
Member Avatar for thud

I would like to use nested tokens. For example entering the following into textbox1: {red | green | blue | yellow} and pressing a command button could randomly place one of the above colors into textbox2 each time it is pressed. I would like to do the above as an …

Software Development vb.net
Member Avatar for Nick Evan
0
233
Member Avatar for vs49688

Hi. I am trying to make a program that will launch restricted user-specified programs at my school. How would I make the system() function below make use of the two variables in it. I've tried && and ||, but the bugger wont work. [code] #define runasc "runas /profile /user:tsc\\staffuser" system( …

Software Development c++
Member Avatar for Nick Evan
0
106
Member Avatar for afro007

Anyone know how to convert real e.g. 105.6 to string e.g. 105.6?

Software Development pascal
Member Avatar for ebi1
0
2K
Member Avatar for az_master

i need a code for adodb which can link my form in vb to a table in ms access which contains name and id as the fields.help please!! thanx

Software Development visual-basic
Member Avatar for Jx_Man
0
83
Member Avatar for bashir matovu

[B][B]hi brothers i need to know how to save and delete records i adodb[/B].

Software Development visual-basic
Member Avatar for choudhuryshouvi
0
163
Member Avatar for cnoob3610

Hello all. Sorry to be a bother but I cannot figure out what is wrong with my homework program that's due before midnight. The assignment is to create a program with a two-dimensional array that generates a random walking path. I'll list the assignment as it is probably clearer. [I]Write …

Software Development c legal
Member Avatar for cnoob3610
0
114
Member Avatar for campbm39

Hi, I am pretty new to C++ and would really appreciate some help. I'm trying to write a program that will click on a particular color pixel on my screen. For instance, the program would click on a blue dot on my desktop. I play a mmorpg and I have …

Software Development c++
Member Avatar for codeaa
0
130
Member Avatar for Exo1337

So My input document has the following data 56 38 A 7 8 My program: #include <iostream> #include <fstream> using namespace std; int main() { ifstream inData; ofstream outData; int num1, num2, num3, num4; char ch1; inData.open("c:\\inDatat.txt"); outData.open("c:\\outData.txt"); inData >> num1 >> num2; outData << "Sum of " << num1 …

Software Development c++
Member Avatar for vmanes
0
109
Member Avatar for deifyme

Hi all, m having this java.io.FileNotFoundException: The system cannot find the specified file, although the file is there in the folder. waiting for some replies, thanks

Software Development java
Member Avatar for deifyme
0
174
Member Avatar for Jennifer84

I am trying to use ifstream to read from a file. When you use ifstream you have to specify the path like this. [code] ifstream Symb("Folder1\\Folder2\\File1.txt"); [/code] Instead of specifying like that, I will find a variable Text from a comboBox like the code below. Path has the string: "Folder1\\Folder2\\File1.txt" …

Software Development c++
Member Avatar for codeaa
0
839
Member Avatar for Jboy05

I need help fixing this I help getting errors #include <cstdlib> using namespace std; void show_word (string); int main () { show_word ("hello"); system ("PAUSE"); return 0; } void show_word (char); { char InName; cout << "Enter your name " << endl; cin >> InName >> endl; show_word ("hello"); show_word …

Software Development c++
Member Avatar for Jboy05
0
111
Member Avatar for knewc

Hello! I was wondering how to generate random numbers within a given range X and Y using rand. Thanks!! I was thinking that it may be along the lines of [code] rand() & x+y [/code] however this does not work. Any help would be amazing! Thanks guys and gals!

Software Development c++
Member Avatar for Dave Sinkula
0
55
Member Avatar for kerek2

Hi, Just want to know how to make the item in list box and textbox appear together - sync? Tq

Software Development visual-basic
Member Avatar for Jx_Man
0
183
Member Avatar for leroi green

hey all, the noob is back. and with more questions that you guys will probably make fun of me for but...whatever. I am creating a GUI design where there are four labels (it doesn't need functionality) with an OK, HELP and CANCEL button on the right side. i haven't started …

Software Development gui java java-swing
Member Avatar for leroi green
0
102
Member Avatar for Exo1337

Soooo I essentially need to make a program to evaluate any exspression that is plugged in to it, how would I go about starting a program like that ? I know how to evaluate normal exspressions including + - * / but what if a user wants to do a …

Software Development c++
Member Avatar for codeaa
0
2K
Member Avatar for Jennifer84

I am trying to get the text that is choosen in a comboBox. I have tried these codes but no of them are working. What am I doing wrong here ? [code] std::string Text; // I have tested all 4 of these and this will not compile. //I belevie it …

Software Development c++
Member Avatar for Jennifer84
0
193
Member Avatar for Techboy1523

Write code to prompt the user to input a character and a number. Then print out the character that number of times. This is one of many questions I must answer, but it will help me get started on my code.

Software Development c++
Member Avatar for totem mouse
0
81
Member Avatar for Jboy05

Consider the following user-defined function: [code]void Quick_Change (int x, int & y) { if (x == 0) y = 10; else if (y == 0) x = 10; } [/code] Assume the values in variable A and B are both of int type. How do I find what the values …

Software Development c++
Member Avatar for Jboy05
0
97
Member Avatar for hallinan

Need help I wont to get a system date as integers such as(22/02/2008) rather than string cause I need this to compare two dates any ideas?

Software Development c
Member Avatar for Dave Sinkula
0
86
Member Avatar for mark192

Is there a way to assign the ASCII values from a text box to a label on a form? Say the text box had the character "a" inputed, how would i translate that into its ASCII value? Also is it possible to do this with a string of characters? Say …

Software Development vb.net
Member Avatar for SolTec
0
131
Member Avatar for Texpert

Hi, I have two drop down lists boxes, upon page load first DDL gets populated and depending on user's selection on first DDL second DDL (child DDL) gets populated, works fine. My problem is when user goes back and makes another selection on first (parent) DDL (note that it's not …

Software Development dataset session vb.net
Member Avatar for SolTec
0
137
Member Avatar for buffe

Hi, I'm a new one for c++. I want to call a function in time intervals. (as an example lets say for every 100ms ). How can I do that. Please help:S Thank you

Software Development c c# c++
Member Avatar for Nemoticchigga
0
114
Member Avatar for Proton

Hi, first off I'd like to say that this is my first post here. I just finished typing up a long explanation of my problem. And when I submitted it, I wasn't logged in anymore, so I logged in, but then subsequently lost my entire post. All I can say …

Software Development first-post vb.net
Member Avatar for SolTec
0
182
Member Avatar for vesper967

no idea what to do about this error =/ [code]#include <stack> #include <string> #include <iostream> #include <fstream> using namespace std; int main () { stack<string> stack; ifstream inFile; string consoleStr = "Enter Filename>> "; string fileName; string word = ""; char c; cout << "Welcome! Enter filename or quit to …

Software Development c++
Member Avatar for prushik
0
1K
Member Avatar for soa24434

Hi. I have just recently bought Microsoft Visual Studio Professional 2005. It came with 14 CD's, which are SQL server 2005 Developer Edition 64-bit (2 cd's) SQL server 2005 Developer Edition IA 64-bit (2 cd's) Microsoft Visual Studio 2005 Pro Ed Academic (2 cd's) MSDN library for Visual Studio System …

Software Development vb.net visual-basic visual-studio
Member Avatar for SolTec
0
148
Member Avatar for mrjoli021

I wrote a class in vs2008. I am creating a new project and I need to incoporate that class into it. How do I do that. I added the .h to the header section and the .cpp to the source file. In the new program i did #include "firstclass" but …

Software Development c++
Member Avatar for Nemoticchigga
0
125
Member Avatar for micah1983

help with c++ problem. a software company sells a package that retails for $99 . Quantity discounts are given according to this table. Quantity Discount 10-19 20% 20-49 30% 50-99 40% 100 or more 50% Write a program that asks for the number of units sold and computes the total …

Software Development c++
Member Avatar for carnage
0
598
Member Avatar for cbattagler

At this point I am trying to get data from a std::list or std::vector. I push_back the object from a pointer into the list and go on my merry way, I do this until I get to the point I want (which is working at the moment) but then when …

Software Development c++
Member Avatar for cbattagler
0
106
Member Avatar for nirmalarasu

Hi All, Currently Iam writing python ftp script to upload a file to FTP Server. The server where iam going to download a file expects the upload command in this format "put <filename> flash" I dont know how to send this same command in ftp session after login. I have …

Software Development flash python session
Member Avatar for nirmalarasu
0
499
Member Avatar for Jboy05

how do I wrtie a function that takes one argument of type double. The function returns the character value ‘P’ if its argument is positive and return ‘N’ if its argument is zero or negative. [code=c++] double Letter ( double P, double N) if (P = +); return P; else …

Software Development c++
Member Avatar for kjc367
0
117
Member Avatar for plgriffith

Ok, I know C/C++ really well, but just started Java today and am having an issue. I have an assignment where I have to ask the user how many names he wants to enter, and then have him enter all of the names. After all of the names have been …

Software Development java
Member Avatar for Ezzaral
0
110
Member Avatar for Swati_bansal

When I try accesing private members of a class using friend functions after including the concept of templates in visual basic c++, the compiler shows me an error message that friend functions cannot access the private members declared in class. Please help.....

Software Development c++ visual-basic
Member Avatar for farag
0
276
Member Avatar for Techboy1523

Write a program that will prompt the user to input the following: length and width of a rectangle , a character, and a choice for either filled or unfilled. If the choice is filled, print out a filled rectangle with the indicated length and width using the input character. If …

Software Development c++
Member Avatar for kjc367
0
209
Member Avatar for nsm_madhavi

HAI! CAN ANYONE HELP ME TO RETREIVE DATA BETWEEN TWO DATES FROM MS-ACCESS USING VB.NET. I HAVE TAKEN DATETIMEPICKER CONTROLS. THIS IS THE CODE . ITS RETURS ERROR. PLEASE SOLVE THIS PROBLEM. Imports System.Data.OleDb Public Class Form7 Dim con As OleDbConnection Dim cmd As OleDbCommand Dim dr As OleDbDataReader Private …

Member Avatar for SolTec
0
645
Member Avatar for petzoldt01

I have recently been trying to work with OpenGL in Java and decided to go with JOGL to start. I am using SWT for my visuals and I am programming inside the Eclipse IDE. I have found plenty of interesting uses for OpenGL, but once I have more than one …

Software Development ide java java-swing opengl
Member Avatar for Ezzaral
0
175
Member Avatar for farag

First: We know that it is better to write the declarations of a class in header file And it's definition in another source file BUT if the class is template I have a problem to link the two files header and source it will appear two errors about linking Second: …

Software Development c++
Member Avatar for farag
0
158
Member Avatar for wolverine_ramir

please help me compute for the time.. i have extracted different time values from a database, i stored it in a String since i don't know which data type to use. this values came from a DataList in a variable named jamTime.. then i extracted the time using: String startTime …

Software Development java
Member Avatar for piers
0
86

The End.