132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xshinichix

Can anyone help me with this java problem? Here's the problem: "Write some code to demonstrate inheritance polymorphism. Create a superclass class with 3 subclasses. The superclass should have a method that prints out a line identifying the current class (something like "I am a Superhero"). Two of the subclasses …

Software Development java
Member Avatar for masijade
0
1K
Member Avatar for virusisfound

I want to display my table columns and data in datagridview at run time when user select table name I know that i have to set bindingsourse property . But i dont know how to do programming for that can you tell me.

Software Development
Member Avatar for virusisfound
0
266
Member Avatar for katisss

#define print_int(a) printf("%s : %d\n",#a,(a)) int y=10; print_int(y) i am taking a class and have been asked to explain why this is bad... So i guess stringifing #a is the problem. It does work, so why is it dangerous?

Software Development c
Member Avatar for katisss
0
81
Member Avatar for 5ophie2012

Once again, I'm having trouble on my next assignment for class. This is what I have to do: Read and process a text file one character at a time: 1.) output the file to the screen one character at a time (as a char) as the file is read. 2.) …

Software Development file-system
Member Avatar for Ketsuekiame
0
2K
Member Avatar for stephy1

In which package is Grid(in-built) class is there? I guess util. But Grid creation using create() shows error.

Software Development java
Member Avatar for stephy1
0
109
Member Avatar for shakssage

Hello. I'm not really sure on how to explain the problem, but here goes. I'm creating a Traffic Simulator of a cross junction. I currently have car objects moving, with working traffic lights. I created a variable array for the car class which creates several car objects. Then the lane …

Software Development java
Member Avatar for shivam7
0
252
Member Avatar for GAME

How could I login to HostMonster, then go to the Remote MySQL and add IP address?

Software Development
Member Avatar for Ketsuekiame
0
155
Member Avatar for techfish

When I run the program I get an exception on line 54: Cross-thread operation not valid: Control 'listBoxResult' accessed from a thread other than the thread it was created on. Form: ------------------------------------ [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 …

Software Development client-server
Member Avatar for Momerath
0
174
Member Avatar for singhabsk

Good morning all, i have a text file contains following data..... sec TID ATTRIBUTE 69013 1-3039-1 REGISTER 69013 1-3039-1 100 69013 1-3039-1 401 69013 1-3039-2 REGISTER 69013 1-3039-2 100 69013 2-3039-1 REGISTER 69013 3-3039-1 REGISTER 69013 4-3039-1 REGISTER 69013 1-3039-2 200 69013 2-3039-1 100 69013 2-3039-1 401 .................. .................. 69023 …

Software Development file-system perl
Member Avatar for singhabsk
0
171
Member Avatar for pkunzip1234

[CODE]/* My problem is I do not understand the following statement in 45. used[minIndex] = [COLOR="Red"]true[/COLOR]; // Record minimum as used boolean array used[] can sort array values[] by minimum when we set "[COLOR="Red"]true[/COLOR]" ? */ // Soln4_4.cpp : main project file. #include "stdafx.h" using namespace System; /* This uses …

Software Development c++
Member Avatar for pkunzip1234
0
197
Member Avatar for lisako

Hello everybody! I’m new to C++. Need some help. I am trying to prompt the user to enter the file name. File itself includes list of 5 emails. After user enters the file name, program should check the list of emails and output all emails that have wrong email format …

Software Development c++ file-system
Member Avatar for jonsca
0
325
Member Avatar for andimiami

Hello... I am still a newbie! I have an assignment to write a C++ program to cover a series of ASCII character digits into numbers. Like if the input (that I have ti input from a saved file) was $1,9,56#%34,9 it would output 1956 349 on two seperate lines ignoring …

Software Development algorithm c++
Member Avatar for WaltP
0
178
Member Avatar for deanus

Hi, Can private static data members of a class be accessed through non-static methods of that class? I'm asking this (dumb) question because on a C++ book I've read that a class's static data members can only be accessed through a static function, but when I tried doing it with …

Software Development c++
Member Avatar for deanus
0
177
Member Avatar for Lemonader

When converting Roman Numerals, how do I tell the code to consider the fact that the letters are also used for subtraction? Like, X=10 and L=50, but XL is 40 and not 60. How do I do this ( instead of listing all combination )? [code] include <string> using std::string; …

Software Development c++
Member Avatar for WaltP
0
1K
Member Avatar for RobMan2000

greetings all. this is my first post on these forums so excuse me if i'm not familier with etiquettes! im looking for a way of making my program wait before continuing on to the next line of code. i know a function does exist, it is even one i have …

Software Development pascal
Member Avatar for Wolfgan
0
2K
Member Avatar for stephy1

i have a codelike this: [CODE] do { int i; }while(i!=0); [/CODE] Shows error "Cannot find symbol i"

Software Development java
Member Avatar for masijade
0
110
Member Avatar for chamika.deshan

Hello This is my base [CODE]class BaseClass { // base has no body };[/CODE] and child [CODE]class ChildClass : public BaseClass { public: void testMethod(); };[/CODE] I do [CODE]BaseClass* base = new BaseClass(); ChildClass* c = static_cast<ChildClass*>(base); c->testMethod();[/CODE] Above compile and ChildClass::testMethod() executes fine. my memory is allocated by BaseClass …

Software Development c++
Member Avatar for mike_2000_17
0
140
Member Avatar for privatestatic

hey guys i got this new project for my java class and got the overall idea but my code still does not seem to work ...here are the directions: - make a 5X5 boolean array assign 5 random elements for 5 ships - user can have 15 guesses to find …

Software Development java
Member Avatar for JKP()
0
965
Member Avatar for abu taher

A text box show current date(like 24-03-2009). I write in other textbox 3. I want when I write 3 then the textbox (24-03-2009) automatically increase month like 24-06-2009. how it possible?

Software Development visual-basic
Member Avatar for abu taher
0
109
Member Avatar for rhinocort23

ok... i know a lot of you are probably tired of me asking questions but i am trying to learn and i am asking about stuff i dont know, not just to get you to do the whole program for me. this question is if there is a list of …

Software Development listview vb.net
Member Avatar for Jim2011
0
134
Member Avatar for JD69

Is there a program where i can launch a website, click on a button or textfield and it will give me the getElementByID? I searched around for this and i have found nothing? Why doesn't this exist? I am writing a program that will enter information into a copiers web …

Software Development vb.net web-browser xml
Member Avatar for codeorder
0
186
Member Avatar for Mayank23

can someone help me, each time i send my friend a program he says tht the windows goes away once he enters something. please help.

Software Development c++
Member Avatar for Nandomo
0
145
Member Avatar for emily1989

Hi there, I am new to VB.Net, i have cracked my brain to figure out on how to use if else statements in form1 to call button.click from another class. Please help me! :( THANK YOU SO MUCH! I REALLY APPRECIATE IT! :)

Software Development vb.net
Member Avatar for Ranx
0
424
Member Avatar for kipslem

Hello, I'm a newbie in VB.Net. I'm creating an application using VB.Net. I have a loggin form which has a username and a password textboxes. I have the following code which is working, which I believe is actually validating the username and password. My hicccup now that I need help …

Software Development vb.net
Member Avatar for codeorder
0
226
Member Avatar for manugm_1987

Can anyone pls help how to dispose objects by my own. i.e i should not allow the garbage collector to dispose my object automatically when object is out of scope, instead it should leave the job of disposing the object to me whenever i need. Thank You all

Software Development
Member Avatar for Momerath
0
102
Member Avatar for Mithrandir85

Hi, I recently set about making a simple application using python with some 3d components, i switched from PyOpenGL, because it was a little bit to complex for what I wanted to do, to VPython, which based on the YouTube video's looks very easy and simple... which is exactly what …

Software Development python
Member Avatar for Mithrandir85
0
161
Member Avatar for gr8fasushi

I'm having some problems trying to input records into a relational database. The design is really simple but I'm running into a wall when it comes to having the foreign key from my child table autopopulate the primary key from the parent table. I've made the connections in Access and …

Software Development database-design dataset vb.net
Member Avatar for kvprajapati
0
165
Member Avatar for pseudorandom21

How are iterators used in C# ? suppose I have say: [code] List<int> someList = new List<int>(); /* assume some items are added here */ /* and now I wonder if C++ style iterators are available? */ for( var i = /* iterator begin of list */ ; i != …

Software Development
Member Avatar for kvprajapati
0
117
Member Avatar for ThatGuy2244

I have read about how multicore processing works of the Intel. The manual that I read had left out a part that would of been useful how to actually use multiple cores. It just explained how all the different parts of the CPUs interact with each other, so could someone …

Software Development assembly motherboards-cpu-ram
Member Avatar for GunnerInc
0
581
Member Avatar for judithSampathwa

hi there, i have been asking this question every time. [CODE] public bool ValidateTelNo(string TelNo) { bool value = false; string rePhoneNumber = @"[1-9]\d{2}\s?\d{3}\d{4}$"; string PhoneNoFormat = @"\([1-9]\d{2}\)\s?\d{3}\-\d{4}$"; Regex re = new Regex(rePhoneNumber); Regex re1 = new Regex(PhoneNoFormat); if (re.IsMatch(TelNo) || (re1.IsMatch(TelNo))) value = true; else value = false; return …

Software Development asp.net regex
Member Avatar for kvprajapati
0
111
Member Avatar for becool007

Hey daniweb forums, Okay so my question is, what is the difference between VC++ (visual C++) and C++ with any other IDE (or none at all). I know for a fact that VC++ is an IDE but according to some people that I have met. They say, stay away from …

Software Development c++ ide microsoft
Member Avatar for becool007
0
272
Member Avatar for skips

I am not looking for an explicit answer to this question, and I have googled/searched this site for hours trying to find an example to work off of. What I can't figure out is how to write a nested "for loop" that will allow the user to input one number …

Software Development c++
Member Avatar for skips
0
144
Member Avatar for gregarion

Hey guys , i haing a problem with using stringstream and atoi . I am trying to conert a string to in integer When using stringstream [CODE] string d = "033116"; int b = 0; stringstream ss (d); ss >> b ; [/CODE] When using atoi [CODE] string d = …

Software Development c++
Member Avatar for deltamaster
0
527
Member Avatar for alex55

I have this array that should be returning a value in the 50's due to the data input i am giving it but it is returning 0 everytime What the code should do is input to and array from the file then pass it to the array monthSum then it …

Software Development c++
Member Avatar for VernonDozier
0
104
Member Avatar for jemz

Hell can you help me on this,how can i insert a new node in the binary tree and to keep track the current node example: input number: 50 Succesfully inserted! input number:40 this will print "inserted at the left of 50" input numbr: 80 this will print "inserted at the …

Software Development java
Member Avatar for jemz
0
284
Member Avatar for MasterGberry

I have been looking into an internship through Google, i have a good basic background, but I need more knowledge, I read C++ Primer Plus 5th Edition and got a good background from it. Where can I continue to expand my knowledge? I am trying to nail a phone interview …

Software Development c++
Member Avatar for mike_2000_17
0
117
Member Avatar for dstaner

I've been given an assignment as follows and I'm having trouble getting it to work properly, hoping if anyone out there can lend word on how to get it running? "A bank account starts out with $10,000. Interest is compounded monthly at 6% per year (0.5% per month). Every month, …

Software Development algorithm c c# c++ open-source
Member Avatar for happyherbivore
0
748
Member Avatar for Climber Ty

Okay here's what I have... it's a start. My only problem is when I run the program the sequence does not print the first 1 in the 1, 1, 2, 3, 5, 8,... it will only print 1, 2, 3, 5, 8,... I believe it has something to do with …

Software Development c++
Member Avatar for Climber Ty
0
98
Member Avatar for kodera

I am a beginner JAVA coder, and yes this is a homework assignment for a online class... I am stumped, and cannot get help fast enough when it is 11pm at night :<) To better explain, I need to be able to have four methods. My first method contains all …

Software Development java java-swing
Member Avatar for Akill10
0
919
Member Avatar for poeticinsanity

I am coding a web spider for research purposes and have run into an error I am uncertain about. I am fairly new to web programming and need a bit of guidance. I use http.client to get a connection, request a site, get the response, and read the resonse into …

Software Development python
Member Avatar for TrinitronX
0
346
Member Avatar for sateal8

I am trying to write this program to get a user inputed number of grades up to 15. I then need to add the grades, find the largest, smallest and average of the grades, and finally display the results. Here is what I have so far. I can get past …

Software Development java
Member Avatar for Akill10
0
216
Member Avatar for Akill10

Hey, I have a question. I was writing a custom Array type class. In my template declaration I use the type name as DataType. I was making an attempt at creating an insert method, which takes a DataType argument and the index to insert at. I originally had this code: …

Software Development c++
Member Avatar for Akill10
0
153
Member Avatar for Mayank23

im having this problem when i try to add [CODE] m + 1 = k;[/CODE] it says this- *lvalue required as left operand of assignment* in my compiler, please help. dont mind the unfinished code. [CODE]#include <iostream> using namespace std; int main() { double b, m, k; string x; b …

Software Development c c# c++
Member Avatar for Mayank23
0
158
Member Avatar for patrickgormally

The monthly payment on a loan can be calculated using the following formula: amount * R monthly payment = -------------------- -N 1 - (1 + R ) where: amount is the amount of money borrowed R is the monthly rate of interest for the loan N is the number of …

Software Development java
Member Avatar for Akill10
0
192
Member Avatar for JannuBl22t

Hey I have a question.. I have a list in one form that looks like this: [column1] - [column2] item1 - 0 item2 - 6 item3- 8 item4 - 5 item5 - 2 soo.. now I open a new form and I need to select what kind of items I …

Software Development listview
Member Avatar for Mitja Bonca
0
115
Member Avatar for CrazyPixel

Hey guys, Here's my problem: I've been following [URL="http://www.zeuscmd.com/tutorials/opengl/03-OpenGLWindow.php"]ZeusCMD tutorials on OpenGL[/URL], and when I tried compiling [ICODE]main.cpp[/ICODE], I get an initializer error. I am not sure what caused it, since it seems exactly the same as the example. I linked all libraries it tells me to (-lglu32 -lopengl32). I'm …

Software Development c++ opengl windows-vista
Member Avatar for CrazyPixel
0
384
Member Avatar for old_kid

Please let me know if I should make something more clear 1. Each item in list contains a tuple with its name -> ((value, work), 'name') 2. the function "sort" below sorts the list of subjects by "value" in descending order 3. I get: TypeError: 'int' object is unsubscriptable (occurs …

Software Development python
Member Avatar for griswolf
0
3K
Member Avatar for angskie20

hello every one..I'm IT student i do understand it's logic and algorithm but I'm having hard time in programming.. I do hve weak foundation in Programming..can i ask help from u for my assignment? Problem: Write a program that reads student scores, gets the best score, and then assigns grades …

Software Development algorithm java
Member Avatar for stultuske
0
347
Member Avatar for mmmerlin

Hi, I'm writing a scientific application that has to store a large (1GB to 500GB+) amount of data on a hard drive, and then, once written, read it back sequentially to process it. The amount of data for a particular experiment is known in advance, exact to the byte. When …

Software Development c++ file-system hard-drive
Member Avatar for mmmerlin
0
519
Member Avatar for alex55

so I have and for loop to find the highest number in and array how would i go about outputting the element number? [CODE]//compares the values in the yearAverage array to find the highest temperature for(int i=0; i<lineCount; i++) { if(yearAverage[i]>=highTemp) { highTemp = yearAverage[i]; } }[/CODE]

Software Development c++
Member Avatar for alex55
0
131

The End.