132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for phpangel

hi guyz, i want to write a program that will find the (sine, cosine and tangent) of adding and subtracting two variables using inheritance and polymorphism concepts. anybody plz help? appreciate the answer:)

Software Development c++
Member Avatar for phpangel
0
119
Member Avatar for raigs

I need to generate and reuse a 5 digit random number every time my program is executed. But the following generates random numbers every time the function is called. [CODE]#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <time.h> int RANDOM(void) { int RANDOMNUMBER = 0; srand((unsigned int)time(NULL)); …

Software Development c
Member Avatar for Ancient Dragon
0
119
Member Avatar for virus220

I have to display a picture in a picture box in vb.net form but i donot want to give full path of the pic i want just to specify a relative path how it could be done ?????

Software Development vb.net
Member Avatar for GeekByChoiCe
0
96
Member Avatar for JimD C++ Newb

Good evening, everyone! I'm currently writing a game for a class, and I'm attempting to add a few extra features that aren't required. The one that is giving me difficulty is the high scores. I am saving the score and the name as a string. When a game ends, it …

Software Development java
Member Avatar for JimD C++ Newb
0
132
Member Avatar for gehring

Hi All, I am extremely new to C++ and would greatly appreciate any advice regarding the following question: I am trying to create a 2D array of CStrings, however it needs to be declared dynamically for my application. I have read up on numerous forums but I just cant seem …

Software Development c++
Member Avatar for Clinton Portis
0
836
Member Avatar for Stefano Mtangoo

Hi all, please help me connecting exit menu to OnExit event handler Here is what I have coded so far! Also a coding question: What is the best method between these two: 1. Creating instance of JFrame and call its methods like set Size 2. create class that extends JFrame …

Software Development java java-swing
Member Avatar for masijade
0
123
Member Avatar for IT21

Hi i have created a search system at the moment i have connected to a MS database and have created select querys (select, from, where) the user enters a forname or searchname and the results show up in the appropriate textboxes and if there is more than one result the …

Software Development vb.net
Member Avatar for TomW
0
100
Member Avatar for J0kerman

So i want to define a variable with the index of a current step, and then print that variable. For example I have a loop with 10 steps, and i want to define 10 variable: x1, x2, x3....x10 and then print them out: x1=something, x2=something, ......, x10=something.Does anyone know how …

Software Development python
Member Avatar for J0kerman
0
23K
Member Avatar for sathya8819

Hi, I have a problem. I have this image with various regions detected and coloured differntly. What I now need to do is, to find the mathematical center of each of these regions. I have the code for this. [CODE] int labelnew = 2,centerx,centery; List<Point> l = new List<Point>(); Point …

Software Development
Member Avatar for sathya8819
0
73
Member Avatar for Behi Jon

Hi, What is the problem of this program ? It should print intertech systems, but it doesn't do . This program must convert all letters of the string to lowercase character . [code] Page 60 , 132 TITLE A08CASE (COM) Change uppercase to lowercase .MODEL SMALL .CODE ORG 100H BEGIN: …

Software Development assembly
Member Avatar for Behi Jon
0
212
Member Avatar for scorerecords

Hi Everybody, If someone could help me with this problem, I would really appreciate it. I'm a newbie and trying to finish an assignment. I've gotten stuck on one thing and can't seem to find a way out of it. I've already done the searches and spent at least 5-6 …

Software Development c++
Member Avatar for VernonDozier
0
2K
Member Avatar for Jaydenn
Member Avatar for Geekitygeek
0
84
Member Avatar for maliknouman

Hi please help me in this code, it gives always error on execution of command is comes. [code=vb.net] Try DBconnect() cmd.CommandText = "Designation_INSERT" cmd.Connection = con cmd.CommandType = CommandType.StoredProcedure 'Fill the Parameters of Store Procedure Param = cmd.Parameters.AddWithValue("@DesignationID", TxtDesigCode.Text) Param = cmd.Parameters.AddWithValue("@DesignationName", TxtDesigName.Text) Param = cmd.Parameters.AddWithValue("@ApprovedBy", TxtDesigApproved.Text) cmd.ExecuteNonQuery() 'Error Comes …

Software Development vb.net
Member Avatar for maliknouman
0
256
Member Avatar for Neela.V

Hi I need to download a file from a http server which askes for user id and password to login. can someone help me out in downloading the file and place that in a database table. Thanks in advance Neela.V

Software Development java
Member Avatar for masijade
0
139
Member Avatar for Peric

Hello, i have one more problem...here it is: In my application I have more then one form/dialogs, of course. My start up (main) form is called "StartForm" and when I want to access to some other dialogs, I open up dialog and I put StartForm on ".Enabled = False" so …

Software Development vb.net
Member Avatar for Peric
0
101
Member Avatar for grib

Old fart here, still a horrible newbie. Tonight, I've actually got a working solution for my problem, but the book I'm reading is unclear about something, and I'm having trouble getting Google to give me the the exact answer I want. Given, [CODE]//Header junk //CandyBar struct int main() { CandyBar …

Software Development c++
Member Avatar for programmersbook
0
98
Member Avatar for Kennych

Essentially what I'm trying do with nested statements is that when I enter the the second switch stament and when I exit the second switch statement it goes back to the first switch statement menu. Currently the current code exits the entire program after the second switch exits, which of …

Software Development c++
Member Avatar for jonsca
0
856
Member Avatar for rzhaley

hi im trying to create a C# program that'll display * ** *** **** *** ** * type pattern but i can only get mine to look like this when i try to add on to the code * ** *** **** and then it stops. can anyone help on …

Software Development programming-construct
Member Avatar for Geekitygeek
0
149
Member Avatar for student88

hi all iam new in this forum and i need some help in my assignment .. it's a c# game using graphics .. this game when start it should show a sheep then a chicken randomly then all graphics will move to the left .. there will be a dora …

Software Development gaming
Member Avatar for Geekitygeek
0
159
Member Avatar for phatJacob07

First of all, I'd like to say hello to the Daniweb community as a first-time poster. I'm sorry if this is a common error for you folks to deal with, but my preliminary search of the forum didn't really help me all that much. So here we are. Onwards to …

Software Development vb.net visual-basic
Member Avatar for phatJacob07
0
111
Member Avatar for kawal.singh

Hi all, i tried to encrypt and decrypt the files, that was successful,, but i wanted to reduce the size of the file and then decompress or decrypt it ..Nothing happening now. Any help will be really appreciated. Thanks

Software Development c++
Member Avatar for kawal.singh
0
204
Member Avatar for ravikim

Hi , use Sort::External; $output = '1.txt'; open(FILE, $output); my $sortex = Sort::External->new( mem_threshold => 1024**2 * 1024 ); while (<FILE>) { $sortex->feed($_); # tried to change it to ~$_ but did not work !!!!! } use Fcntl; $sortex->finish( outfile => 'desc_1.txt', # comes in ascending order !! flags => …

Software Development perl
Member Avatar for 7stud
0
375
Member Avatar for samoo

hi everyone i have a problem in my project that i have made pleaze help!!!!! this project allows the user to read words and their meanings from file and store them in AVL tree and then print the tree inorder, postorder, and preorder then print the result to file in …

Software Development java
Member Avatar for javaAddict
0
1K
Member Avatar for Kreators

Hi i'm new here in daniweb i would like to ask about my program i'll make a program that show if the word is palindrome or not can you correct my program when i complie my program its say Process complete then when i run the program it doesn't show …

Software Development java java-swing
Member Avatar for P00dle
0
94
Member Avatar for Samyx

I wanna extract the data from the file so I can sort it out, add and delete files. How can I do it? My file contains a list of songs with the song name, artist and song duration. Here is what I have so far: [code] //Nathaly Advincula //Song Assignment …

Software Development c++ file-system
Member Avatar for Samyx
0
175
Member Avatar for nccsbim071

Hi I have a windows application that prints a record in a given page size. I looked all over but i could not see how did it set the page size. and now requirement is to print the paper size in legal paper size of 18.5" by 14". How can …

Software Development legal
Member Avatar for nccsbim071
0
149
Member Avatar for cdt1983

Hi- I want to use a sentinel value (-1) to end the loop of a program after the user has entered all of their data. However, how can I output inbetween each instance of the loop? Then, at the end, how can I will have an average of all entered …

Software Development java
Member Avatar for cactuspancake
0
188
Member Avatar for Mattpd

My file contains: [CODE] Hook,Mark,In, , ,Tire,Matt,Out,01/01/2001,Mike [/CODE] My structure: [CODE] struct part { char name [NAME_LEN+1]; char owner [OWNER_LEN+1]; char status [STATUS_LEN+1]; char date [DATE_LEN+1]; char renter [RENTER_LEN+1]; } parts [MAX_PARTS], temp [1]; [/CODE] And the code: [CODE] FILE *fp; fp=fopen("parts.csv","r"); printf("%d", fp); //Added this for debugging char buf[100]; …

Software Development c file-system
Member Avatar for Mattpd
0
396
Member Avatar for merse

I would like to initialize a user defined struct with the = operator and a scalar type (for example: double) on its right hand side, like this: [CODE] struct real { double value; double error; ... }; int main() { real x = 1.; // supposing error=0. } [/CODE] It …

Software Development c++
Member Avatar for amrith92
0
133
Member Avatar for bhaskaram
Member Avatar for bhaskaram
0
78
Member Avatar for ticktock

Hey so this is an assignment and what we have to do is: [quote] Design a class that can be used to represent types of food. A type of food is classified as basic or prepared. Basic foods are further classified as Dairy, Meat, Fruit, Vegetable, or Grain. The services …

Software Development c++
Member Avatar for ticktock
0
142
Member Avatar for kat_stephens

I've started on an assignment and just can't get it right PLEASE help! The assignment is :Write a program that will do the following: 1.) Continuously prompt the user for words and store the words in a linked list. Do not use an array or in any way pre-allocate any …

Software Development c linked-list storage
0
106
Member Avatar for venkatnams

hey guys,,i recently got this code from robocr of this community,,i got this from another website,,im trying to use this in my project to link a photo,,but im not able to do that,,i get errors one by one when i try to run the code after importing the forms and …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
114
Member Avatar for joshjgordon

I am having some issues creating a 2-d vector. I need it to be of a determined length in the first dimension but of an undetermined length in the other. The length in the second dimention will be calculated later in the code, in one of the functions that uses …

Software Development c++
Member Avatar for jonsca
0
92
Member Avatar for novicevbp

Hi I am trying to open a MS Access db via CommonDialog1. All is fine untill I click OPEN after selecting the db I want. What I then get is a dialog for ODBC entitled SELECT DATA SOURCE with two tabs: File Data Source or Machine Data Source. If I …

Member Avatar for vb5prgrmr
0
111
Member Avatar for Duncans Ghola

These function calls are not compiling for some reason, I receive the following error message when I attempt to compile. [QUOTE]hw11.cpp: In function âint main()â: hw11.cpp:70: error: expected primary-expression before â]â token hw11.cpp:71: error: expected primary-expression before â]â token hw11.cpp:71: error: expected primary-expression before â]â token hw11.cpp:72: error: expected primary-expression …

Software Development c++
Member Avatar for Duncans Ghola
0
214
Member Avatar for gangster88

how could i double a number when clicked on in the graphics window?... this is for graphics.py and a line separating the two sides in the graphics window and on each click on either side it must go up by 2 until 12? i can only think of using a …

Software Development python
Member Avatar for jaison2
0
155
Member Avatar for abdalla_92

VB.NET:i want to select data from sql server 2005 DB table and displaying into text box that depends on combo box selection using VB.NET

Software Development sql vb.net
Member Avatar for tonyfonseca
0
171
Member Avatar for weylinthedirty

I am writing an application for class. The user is prompted to enter a number, then select what to do what that number. I'm using JPanel and JOptionpane for input and console for output. The application is supposed to: prompt for input, ask for what to do with the input, …

Software Development java java-swing
Member Avatar for weylinthedirty
0
200
Member Avatar for PDB1982

I am trying to add a row of int's that are located in separate arrays within my code. I am trying to get these grades to add and then turn it into an avg. My output is crazy though, and I can't figure out why....any ideas? this is the information …

Software Development c++
Member Avatar for jonsca
0
171
Member Avatar for PinoyDev

Hi guys.!! Good day.! I just want to know on how to execute an event or function call after the resize event of the Form had been triggered!.. Thank you for giving time on this post.!

Software Development visual-basic
Member Avatar for PinoyDev
0
203
Member Avatar for josey_matt

Hi, can anyone plz check my code to see why in the prinCLASSdata function the int A, int B ... doesn't have a value. even though it is right in the updateFrequencies function. [CODE]#include<iostream> #include<fstream> #include<string> using namespace std; void read_data(int size,string name[],int test1[],int test2[],int test3[],int test4[],int test5[]); void calculateAverage(int …

Software Development c++
Member Avatar for josey_matt
0
127
Member Avatar for redrum237

hi this program starts off with random letters, then using a genetic algorithm eventually forms the "hello world!" basically i need this code to be able to input a word of the users choice, everytime i try something i get an error of some sort thanks [CODE]#pragma warning(disable:4786) // disable …

Software Development algorithm c++
Member Avatar for programmersbook
0
408
Member Avatar for dapage

I have been working on a C++ program that is a tic-tac-toe game. The problem is that after I win or lose, the program does not end. Here's the code I have written so far (I even wrote comments to make it easier): [CODE] #include <iostream> #include <ctime> using namespace …

Software Development c c# c++
Member Avatar for jonsca
0
153
Member Avatar for brando|away

im writing a win32 dll and i need a procedure in this format (C++): [code] int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause) [/code] so how can i do this? why won't this work (fasm): [code] section '.data' data readable msg db "Text",0 section …

Software Development assembly
Member Avatar for brando|away
0
158
Member Avatar for subhankar02dey

How can I get this output by running a for loop the logic is that after the multiples of 2, "This" will b printed, after the multiples of 3, "Is" will b printed and after the multiples of 5, "Java" will b printed. pls help with code 1 2 This …

Software Development java
Member Avatar for tjsail
0
140
Member Avatar for flashninja

Currently I am trying to read from a file using java and it is just producing errors. I need help with this as I have been unable to fix this myself and have come to a wall with this. Could you just take a quick glance over this and see …

Software Development java
Member Avatar for BestJewSinceJC
0
74
Member Avatar for hallinan

Hi I have a project where when you input text into a textarea if a certain word is put in I need to change this word I'm having real trouble with this Here Is what I have so far but it will not reconize some of the words [CODE]/* import …

Software Development java java-swing
Member Avatar for hallinan
0
91
Member Avatar for nunchuckie

Hi, I've used getline and pushed back a text row into a vector. The vector is of string type and I want to sort out the numbers and store it elsewhere. in my vector: The man is 67 years old and driving an Oldsmobile Rocket 88 I want to sort …

Software Development c++
Member Avatar for Clinton Portis
0
115
Member Avatar for Jiwe

Can anyone tell me how or help me to get a Window's Title and save it to a TXT file? I tried couple of things with the GetWindowText() but only manage to get some numbers.

Software Development c++
Member Avatar for William Hemsworth
0
278

The End.