132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for az_master

hi,can anyone help me with a code that can change form color after 10 seconds ,for example from yellow to red continiously.please help.

Software Development visual-basic
Member Avatar for debasisdas
0
159
Member Avatar for arleyquininy

[code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System.Data.OleDb; using System.Data.Common; namespace subok { public partial class Form1 : Form { public OleDbConnection connect; static string strconnect = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=""C:\Documents and Settings\avupdate\My Documents\db3.mdb"; public OleDbDataAdapter adapter; public DataSet …

Software Development dataset open-source
Member Avatar for JerryShaw
0
104
Member Avatar for mike4

How do i pass variables to data environment's sql?

Software Development visual-basic
Member Avatar for debasisdas
0
72
Member Avatar for sonia sardana

hey frnds tell me one thing,Graphics is used in Projects or not. Because I think so its a waste material given in all the books & it is used not in any projects. Any Suggestions.

Software Development visual-basic
Member Avatar for debasisdas
0
95
Member Avatar for complexcodes

Can anyone please help me to find the sum in the linked list. I have written codes to insert and remove numbers from lists but I have no idea how to calculate the sum. [CODE]void List::insert( const double &value ) { ListNode *newPtr = getNewNode( value ); if ( isEmpty() …

Software Development c++ linked-list
Member Avatar for Laiq Ahmed
0
3K
Member Avatar for chweetnancy

Need help with this code. Anyone with knowledge on java please help. i found some on this forum, but that is also wrong. can anyone give me some help what is want is to smooth the values in an integer array. If its totally wrong please dont yell [code] import …

Software Development java java-swing
Member Avatar for jwenting
0
107
Member Avatar for majestic0110

Hi all - hope you are well. I am trying to print out only the first 15 characters of each line of a text file. The trouble is I am not sure how I would go about doing such a thing! Any help will be greatly appreciated. Thank you for …

Software Development file-system python
Member Avatar for majestic0110
0
326
Member Avatar for dinilkarun

i'm popping up a form from a function and i want the code to stop executing further till a button on the form is clicked. Right now the form is popping up and the appln continues executing the code after that. Please help me

Software Development visual-basic
Member Avatar for dinilkarun
0
111
Member Avatar for SUBHABRATAIISC

I am using a while loop like while a>0: a=a+1 a1=open("/python25/file1.txt","r+") a2=str(a) a3=a1.write(a2) It is storing only the last value of a, but how can I store any row or all the rows in file?

Software Development python
Member Avatar for SUBHABRATAIISC
0
65
Member Avatar for Mackjan

Hi I have an idea to rand some digit which sum is equal to my inputs digit. If I put in 12 then I like to have 4, 2, 6 or 4,4, 4 or 3, 3, 3, 3 …….etc. Not more and not lease then my input. In my function …

Software Development python
Member Avatar for Mackjan
0
102
Member Avatar for begueradj

Hello, I am Begueradj, I want to know if we could use more than one stack in the same Aseembler source code. Thank you very much for helping me.

Software Development assembly
Member Avatar for begueradj
0
64
Member Avatar for Kyouya

Hello everyone; I've got a project at hand that I must pass and I have to admit, I am not good at c++. No excuse, though. I've got all day to get this thing done. Its a project that asks me to; [I]1. Input 2 matrices from 2 files!!!!!

Software Development c c# c++
Member Avatar for Agni
0
141
Member Avatar for Karkalash

Hi. I'm supposed to reverse a number based on user input. Example, if the user inputs 123, the output should be 321. However, so far, the way it is now, if the user inputs 123, the output is 312. I'm a little lost -_- help please. [code]while ( input != …

Software Development java
Member Avatar for peter_budo
0
111
Member Avatar for web_master

as we use \n for next line is there anyway to go back to the previous line if not then, is there anyway i can use the x,y coordinates of the runtime window. all the experts, Please Help...... Thanks.

Software Development c
Member Avatar for jephthah
0
3K
Member Avatar for rje7

is this a good example to demonstrate the different types of inheritance? kindly give feed back and suggestions.. ps:using the g++ compiler [code=c++] #include<iostream> using namespace std; class life{ public: virtual void eats()=0; protected: char* predator; char* prey; }; class producers : public life{ virtual void eats()=0; }; class animal …

Software Development c++
Member Avatar for rje7
0
199
Member Avatar for nurulshidanoni

I have this data, but when i sort it different from what i want. I want to sort in descending order like this 2 30 1 20 3 15 [U][B]jest.txt[/B][/U] 1 20 2 30 3 15 [U][B]after compile[/B][/U] 1 15 30 15 15 15 [code=C++] #include <fstream> #include <string> #include …

Software Development c++ file-stream
Member Avatar for nurulshidanoni
0
83
Member Avatar for orangejuice2005

Am working on this assignment that involves having to make our own Hashmap ADT and am working on it but i can't see to get further because i don't know what this error its giving me is: [inlinecode] unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> …

Software Development c++
Member Avatar for orangejuice2005
0
71
Member Avatar for Sleepwalker817

Hello, I need some help with the program below. [code] #include <stdio.h> float get_startingbalance(void); float getCntOfWithdrawls(); float getCntOfDeposits(); float getEachDeposit(); float getEachWithdrawl(); float checkBalance(); float calcAndDisplayBalance(); float displayBankRecord(); void print_withdrawalnumber(int num_withdrawals); void print_depositnumbers(int num_deposits); void print_startingbalance(float start_balance); void print_endbalance(float current_balance); int main() { /* Declare Variables */ int num_withdrawals, num_deposits, …

Software Development c c# c++
Member Avatar for Salem
0
357
Member Avatar for luisofo

Hello there: This is my issue. I do have one combo box in a form from which I want to select a person, by selecting the ID. In the combo box I want to show sorted name, last name, and date of birth. I wonder this should not be so …

Software Development vb.net
Member Avatar for Jx_Man
0
654
Member Avatar for Agni

Hi.. whats the best way to initialize a char* ? i tried using char* p = ""; and it gives segmentation fault at times. not sure how to initialize it. this is the function where i'm using it. screenReturnValue variable is not getting initialised properly everytime, when i call this …

Software Development c++
Member Avatar for Agni
0
15K
Member Avatar for Yaka

hi guys, heres the problem. i have an assignment to change certain letters or combination of letters into some other letters or just to make them dissapier. Say like.. "the" to>> "ze", where "th" is replaced with "z". the program is consists of functions like these. checking two letters forward …

Software Development c++
Member Avatar for Yaka
0
144
Member Avatar for LindseyV

Hi there and thank you in advance for your help in advance. I am having problems with my page replacement program with taking the integers from an input file and putting them into an array. I need it in format [Next page in] | | | | (current pages between …

Software Development algorithm c++ file-stream
Member Avatar for Lerner
0
353
Member Avatar for programmer01

Hi. i am taking a C++ intro course and one of my projects is to create a program that will give me the beta 0 and beta 1 of a regression. The user must input a the following: how many data sets?, each of the Xs and each of the …

Software Development c++
Member Avatar for Lerner
0
212
Member Avatar for chocl8drop

I'm trying to implement operator overloading. I think I was successful with overloading the input and output function. Do I need to keep the current functions and add functions such as [code] bool operator == (const HugeInteger&, const HugeInteger&); [/code] My program is listed below. Please point me in the …

Software Development c++
Member Avatar for Lerner
0
386
Member Avatar for rem0404

So what I'm supposed to do is take a text file and read it into a set of string vectors. The file has three types of data in it, in this order: title, artist, genre. I need to read it into the vectors so that each data type is only …

Software Development c++
Member Avatar for Lerner
0
127
Member Avatar for GPXtC02

How can i read in data in different functions without losing the stream's place in the file. i.e function a and function b both open a data stream to read in first and last names from a file. however function b reads in the first name as well rather than …

Software Development c++ file-stream
Member Avatar for Ancient Dragon
0
109
Member Avatar for NeroMaj

Here is the background: I am working on a project in which I have a base class called Account. In this base class I have the functions updateValue(int num_of_years) and void toString(); Next I have three subclasses of this base class, which are MutualFund, Bond, Buried. Each of these is …

Software Development c++
Member Avatar for NeroMaj
0
105
Member Avatar for allialli

hi. i have a program that i am having some troubles with. if anyone could give me any suggestions, it would be greatly appreciated! : ) i have to edit the main some more to get this to actually work. and i also have to add info into the function. …

Software Development c++
Member Avatar for Ancient Dragon
0
128
Member Avatar for ravikiran.s

import javax.mail.*; import javax.mail.internet.*; import java.util.*; import javax.activation.*; import java.io.*; public class SimpleSender { public static void main(String args[]) { try { String smtpServer=args[0]; String to=args[1]; String from=args[2]; String body=args[3]; send(smtpServer, to, from,body); } catch (Exception ex) { System.out.println("Usage :\njava SimpleSender server to from body"); } System.exit(0); } public static …

Software Development java session
Member Avatar for ravikiran.s
0
121
Member Avatar for henpecked1

In my cdrom class I have a member function called returncost, and a private data member cost. [code] float cdrom::returncost() { return(cost) } [/code] Later, in a free function I call that member function to calculate a total cost and average cost. [code] void showcosts (cdrom &cd1, cdrom &cd2, cdrom …

Software Development c++
Member Avatar for henpecked1
0
500
Member Avatar for mjzammit

basically what i am doing is building a c# app which allows users to open up html files and in between the certain tags find the contents. So it has to: - read start tag, example: <object> - read stop tag, example: </object> - take text which is in between …

Software Development c#
Member Avatar for scru
0
106
Member Avatar for blcase

[code=cplusplus] bool fun1() {if (root) return doFun1(root); else return false;} bool doFun1(Node *ptr){ if(ptr->left) doFun1(ptr->left); if(ptr->right) doFun1(ptr->right); if(ptr->left) doFun1(ptr->left); ptr->data=ptr->data*7; if (ptr->data>500) cout<<.5*ptr->data<<endl; else if (ptr->data<50) cout<<5*ptr->data<<endl; return true;} int main( ) { Tree t; t.insert(14);t.insert(13);t.insert(31);t.insert(27);t.insert(12); t.fun1(); return 0;} [/code] I am trying to trace through this and the output …

Software Development c++
Member Avatar for hacker9801
0
120
Member Avatar for henpecked1

If I have a class called cdrom, and one of the member functions is loadinfo, what is the difference in these calls? cd1.loadinfo cd1->loadinfo I ask because my compiler is choking on the first and actually asking me if I meant to do the second.

Software Development c++
Member Avatar for mitrmkar
0
96
Member Avatar for BabyEyes

Hi , this is the first time i ask for help here i have been searching for a good place to ask and i found daniweb i hope i be right of what i am thinking . and to get help from you guys. thank you here is the question …

Software Development c++
Member Avatar for BabyEyes
0
130
Member Avatar for mansi sharma

Sorry I got the answer Dats y i delete it the question. But I do not know how to delte the thread...

Software Development vb.net
Member Avatar for Jx_Man
0
97
Member Avatar for Edwards8

I'm trying to figure out how to input metadata into a tiff file, and my general web searches are just confusing me. Is there anyone that can point me in the right direction? I'm essentially trying to pull data from an excel file and use that as the metadata for …

Software Development python
Member Avatar for Edwards8
0
162
Member Avatar for hezfast2

I'm working on a program that reads a file of scores and then outputs the number of scores in certain ranges. I've got it to read the input file (scores.txt) which is set up as follows; 76 89 150 135 200 76 12 100 150 28 178 189 167 200 …

Software Development c++ file-system
Member Avatar for hezfast2
0
154
Member Avatar for bvrclvr1

Hi All, I am a student and this is a project I am working on. The main idea is that this program will calculate the number of months it will take to pay off a loan. There are catches in place to only allow positive entries and to check to …

Software Development c++
Member Avatar for bvrclvr1
0
111
Member Avatar for vatocleti

Hey all, I'm new at programming with Python and thru reading different documentation, I built a small program (handler), that I want to accept calls from other scripts to log to file and console, depending on the level passed in. I'm able to get the error message to show up …

Software Development python
Member Avatar for bumsfeld
0
1,000
Member Avatar for Project_Panda

Specifically, specific elements. A project requires us to delete elements in a vector via course number. I assumed one would use an iterator, so that being said, would this work? [CODE]void student::drop_course(int d) { vector<int>::iterator f = find(c_id.begin(), c_id.end(), d); vector.erase(f); cout << "You have deleted course number " << …

Software Development c++
Member Avatar for Project_Panda
0
147
Member Avatar for jonesc5

I have a website adding orders to my database. These start at 10000000 and increment by 1. I have pieces of paper sent out in advance with order numbers on them. These start at 50000000 and increment by 1. We get batches of paper orders brought back and need to …

Software Development
Member Avatar for jonesc5
0
142
Member Avatar for flower77

I am working on one-dimensional arrays for class assignment. I don't think I have this right. Can someone check this: The question is: Write the c++ code that will count the number of elements in an array (named number) of base type int. that are equal to a key value …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
123
Member Avatar for Firestone

Often in a code snippet, I will see [code] printf("%d %2d %3d", i,i*i,i*i*i); [/code] What does putting the numbers in front do, since it works the same without them? (ie) [code] printf("%d %d %d", i,i*i,i*i*i); [/code]

Software Development c
Member Avatar for JLChafardet
0
290
Member Avatar for anifreak

hello there! i'm new n i need real help! i got this homework and i have to have it done before tomorrow! i tried so hard n i cried all the last night *cries again* i hate queues!!!!! anyway plz help me if u can. i have to write 3 …

Software Development c++ queue
Member Avatar for William Hemsworth
0
132
Member Avatar for littlestone

What will happen if caught exception when new a object? For example: [code=c++] ClassTest* ptr = 0; try { ptr = new ClassTest; } catch(...) { } [/code] if the constructor of ClassTest throw exception, what will happen? will ptr == 0 ? some memory leak?

Software Development c++
Member Avatar for Narue
0
168
Member Avatar for majestic0110

Hi all, hope you are well. Just a quick one here that you pythons will be able to answer in no time (I am new with python). What I am trying to do is read a text file and print only the first and last line of that file. Any …

Software Development python
Member Avatar for majestic0110
0
3K
Member Avatar for Yogesh Sharma

Hey frnds, I know about Ctype?? Please forward me what is Directcast,Cz i hace faced this question in Interview.Difference B/w the aboce two???/

Software Development vb.net
Member Avatar for Jx_Man
0
319
Member Avatar for mghx

Write a program and fill a queue with random numbers between 0 and 100. The size of the queue is assumed to be 15. After filling the array with random numbers, display the elements in the queue and remove the elements of the queue and store these numbers according to …

Software Development c queue
Member Avatar for Narue
0
245
Member Avatar for sonia sardana

I know just the one diff. [B][COLOR="Red"]1)[/COLOR][/B] String Class in Immutable--Means every time we change string, a new object is created & then assigned to the string. StringBulder Class is Mutable--Means New Object is not created everytime a string is updated. [B]Is the above diff. rite or wrong???? ny More …

Software Development vb.net
Member Avatar for sonia sardana
0
114
Member Avatar for staysolid3

Hello I just started learning visual basic about 1 week and a half ago, and I'm just wondering if there is a way to compare text box values. e.g. text1.text = 5 and text2.text = 10, rather then subtracting it, I was hoping if there was a way to find …

Software Development vb.net visual-basic
Member Avatar for ericstenson
0
64

The End.