132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for brainbox

Hi everyone Well, the problem now i am stuck with is using "using statements". Is there such a directive in c#, if so why the program is not recognising it. If i try to comment this out, to see which methods or variables etc belongs to this, then it gets …

Software Development
Member Avatar for TylerSBreton
0
128
Member Avatar for Sandtimes

[COLOR=#555555]I am suppose to be creating a program that uses a structure named Moviedata to store the following information about the movie: Title, Director, Year Released, running Time (in minutes).[/COLOR] [COLOR=#555555]The program should create two moviedata variables, store values in their members, and pass each one in turn to a …

Software Development c++ data-structure
Member Avatar for Sandtimes
0
641
Member Avatar for Phaelax

For awhile now, I've been using Mac to code java. Though my programs compile and run fine, I always get these errors. Using the same project to compile on windows with the same IDE(netbeans), I dont get them. I was hoping someone would be able to shed some light on …

Software Development ide java java-netbeans os-x
0
80
Member Avatar for milky

im new with c++ and my lecturer given this question and ask me to solve it. it is difficult to understand it. anyone can help me,pls? [COLOR=#000000]Given the structure[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]typedef struct {[/COLOR] [COLOR=#000000] char Firstname[20];[/COLOR] [COLOR=#000000]char Lastname [20];[/COLOR] [COLOR=#000000]char add[20];[/COLOR] [COLOR=#000000]char city[20];[/COLOR] [COLOR=#000000]char state[20];[/COLOR] [COLOR=#000000]char zip[6];[/COLOR] [COLOR=#000000]char phone[15];[/COLOR] …

Software Development c++
Member Avatar for Infarction
0
124
Member Avatar for jrcagle

Hi all, In the never-ending quest to master Tkinter, I wrote a small version of Notepad. Here is my "SaveAs" function: [php] def save_as(): if not mainw.filename: mainw.filename = tkFileDialog.asksaveasfilename(title="Save As...", filetypes=[("All Files","*.*"),("Text Files","*.txt")]) if not mainw.filename: return f = open(mainw.filename, "w") s = mainw.frame.edit.get("1.0",END) f.write(s) f.close() [/php] As you …

Software Development python tkinter
Member Avatar for Ene Uran
0
91
Member Avatar for JoBe

Hi guys, This exercise goes as follows: - Write a function that counts the number of occurences of a pair of letters in a string and another that does the same in a zero-terminated array of char(a C-style string). For example, the pair "ab" appears twice in "xabaacbaxabb". Now, I …

Software Development c
Member Avatar for Dave Sinkula
0
374
Member Avatar for pagantom

I'm lost. why won't my objects instantate? Here's the code, compiler errors are below. thanks [code=cplusplus] class date { private: char *mo; int day, yr; public: date() {*mo = 0; day = 0; yr = 0;} date (char *m, int d, int y) {mo = new char[strlen(m)+1]; strcpy(mo, m); day …

Software Development c++
Member Avatar for ~s.o.s~
0
129
Member Avatar for tech291083

hi, i m running fedora core 5 32 bit as the os and want to learn a bit of c++ programming. did the search on the net and came across a post telling the fact that something called eclipse can be used to write c++ code and compile it perfectly. …

Software Development c c# c++ first-post ide
Member Avatar for ~s.o.s~
0
127
Member Avatar for ilgar

Hi I am new in VB. I have writen simple code Private sub cmdBotton_Click() txtbox.font.size = 12 End Sub then i got error message that "property 'Size' is 'ReadOnly'" I would appreciate if you could help me with this ilgar

Software Development vb.net
Member Avatar for ilgar
0
97
Member Avatar for Madame Cholet

Hi I am trying to identify whether a variable I have passed to a listarray exists. If it does I can return the position of the variable using the following function, but how can I return something if it is not found in the list (e.g. variable not found in …

Software Development vb.net
Member Avatar for iamthwee
0
101
Member Avatar for Colin Mac

Here's an example of two programs that do the same thing, I have been taught how to do them like the first way. Now, I'm reading an ebook and it explains to do them like the second way. Which way do you think is more proper? thanks [code]#include <stdio.h> int …

Software Development c
Member Avatar for Colin Mac
0
102
Member Avatar for newbie2c++

Hi Everyone! I am supposed to be writting a program that will run from the web. I created a short program to see if I could use linux by uploading the file to my public_html and then using putty to change it to a .cgi file but nothing is working. …

Software Development c
Member Avatar for Ancient Dragon
0
83
Member Avatar for stormz

Hi everyone, im doing this question: (1) Find the errors in the applet given below and re-write it after correcting the errors. [CODE] import java.awt.*; import java.applet.*; public class appError extends Applet{ String name; public void paint() { Font font=new Font(“Monospaced”, Font.ITALIC, 36); setFont(font); setBackground(yellow); setColor(red); drawstring(name); }//end of paint() …

Software Development java
Member Avatar for iamthwee
0
67
Member Avatar for babutche

Hi, I need help please. At first I was understanding the Python language but I got lost somewhere along the line. Can someone please guide me through implementing an addLetterGrade method? I am not very good with computers and I am having a very hard time. This is my first …

Software Development python
Member Avatar for babutche
0
202
Member Avatar for vicky_dev

Can you write a program that prints its own source code ( in C/C++ )? Of course it would be easy to do that referring to the source file, but how can this program be written assuming that the souce file is not available at run time? :?: :?:

Software Development c++
Member Avatar for SpS
0
307
Member Avatar for ambitious

Hi all, I am trying to build extension modules in Visual Studio.NET 2003. I get the following link errors in debug mode, but there are no errors in release mode. _viscoelastic error LNK2019: unresolved external symbol __imp__Py_FindMethod@12 referenced in function _veModelGlobalRayleigh_getattr@8 _viscoelastic error LNK2019: unresolved external symbol __imp__Py_InitModule4@20 referenced in …

Software Development c++ visual-studio
Member Avatar for Mohfeza
0
363
Member Avatar for Matt Tacular

[php] import random availableCountries = [0, 1, 2, 3, 4, 5, 6, 7] firstTurnsCountries = [] secondTurnsCountries = [] def countryDivider(countryNum): counter = 0 while True: if counter == 8: break num = 7 if num > 0: countryToAdd = random.randint(0,num) if num == 0: countryToAdd = 0 if counter …

Software Development python
Member Avatar for Matt Tacular
0
113
Member Avatar for jamaicandods

I am trying to print out fibonacci numbers in assembler, anyone has the code or link to code that can perform this? thanks.

Software Development assembly
Member Avatar for TylerSBreton
0
235
Member Avatar for cyberjoe

I'm looking for a lazy loading solution in c#. The idea is, to have a kind of object factory, which will be responsible for creating my entity objects. When a property of such an object is accesed and it is not yet loaded, the factory (or a magic watcher) will …

Software Development c#
Member Avatar for TylerSBreton
0
94
Member Avatar for DynamitMsk

Hello, I'm working o a function that takes a file with binary numbers and returns the sum of those numbers. Here's where I'm now [code] int Sum (char *fileName) { char * numEnd; long temp(0); int result(0); string line; ifstream file (fileName); if (file.is_open()) { while (! file.eof() ) { …

Software Development c++ file-stream file-system
Member Avatar for John A
0
110
Member Avatar for backstabber

this program compiles and gives the following return state/code Exit code: -1073741819 this is very irritating i would also ask please do not post the output file here this is a challenge from arcanum i just want a working program. please help me with this program. this is what i …

Software Development c++ first-post
Member Avatar for backstabber
0
130
Member Avatar for GuruGhulab

Hello there, my question is , i read upto 20 numbers from a file, then i have to sort them into, negatives, odd's and even's, then i have to display total negatives, odd's, and even's, i also have to display all the acutal values of the negatives, odd's, and even's. …

Software Development c++
Member Avatar for GuruGhulab
0
137
Member Avatar for aqeelmoosa

[COLOR=#000000]Hi everyone,,,:cheesy: [/COLOR] [COLOR=#000000]This is my first post in this forum,,,,,,,[/COLOR] [COLOR=#000000]In fact I've one question,,,,,,,[/COLOR] [COLOR=#000000]I’m using “[B]Microsoft Visual Web Developer 2005 Express Edition[/B]”, and created a class named Class1 which contains one function named dismsg. This function is only displaying a message. [/COLOR] [COLOR=#000000]Question: How can I call …

Software Development first-post vb.net
Member Avatar for waynespangler
0
120
Member Avatar for sneekula

I like to create a database of common chemicals with Python. How would I go about that? Any help welcome!

Software Development python
Member Avatar for Ene Uran
0
119
Member Avatar for rLh

Hi im new in Java. i have this case study and i don't know how im gonna do it. my professor wants me to create a menu or message box that has 3 options ex. [ 1 ] Addition [ 2 ] Subtraction [ 3 ] Exit ____________ *________ this …

Software Development java
Member Avatar for masijade
0
277
Member Avatar for the_master

Hi guys how are you , hope you are ok. I have a small problem with my code. briefly my program is about chained sequence numbers which requires a user to enter sequences separated by (-1) in an input file as follow: 123 122 121 -1 45 67 89 -1 …

Software Development c++
Member Avatar for SpS
0
101
Member Avatar for Talon

Alright, some of you have seen me ask this before but here it is again. I am a first year java student and I need an idea for a simple but well-looking semester project. If you could give me some ideas I would be thankful. I'm not asking for you …

Software Development java
Member Avatar for jwenting
0
351
Member Avatar for Ryan Steyn

Hi there everyone, im new to programming and havent the faintest clue where to start (just so you know:rolleyes: ) . I want to learn C++ but havent the apps to test or write it. I downloaded the microsoft visual studio and it confused the hell outa me. Can anyone …

Software Development c++ seo visual-studio
Member Avatar for jbennet
0
109
Member Avatar for Marks256

Ok, i am just starting out in C. This isn't my first programming language, though(i don't mean to brag, but i am a BASIC master), so i know quite a bit about computer architecture, and all that good stuff. The project i am designing is a robot with stereo vision. …

Software Development c computer-vision webcam
Member Avatar for Salem
0
164
Member Avatar for hugoboss2

[COLOR=#000000]in language C [/COLOR] [COLOR=#000000]Code that examine if the tree is full[/COLOR] [COLOR=#000000]Tree is full if each node have 2 child[/COLOR] [COLOR=#000000]i dont know how to write the code ?[/COLOR] [COLOR=#000000]somebody can help me ?[/COLOR]

Software Development c
Member Avatar for WaltP
0
82
Member Avatar for jcf

[COLOR=#0000ff]Hi. Im doing a program that connects a form to access database. Problem: I have a button that saves all the new information entered in the text boxes I have. When I click SAVE it shows a message that "A new record has been added to the database" but when …

Software Development microsoft-access vb.net visual-studio
Member Avatar for user23490234
0
106
Member Avatar for Kishor Soni

I need your help regarding serial communication in VB. I can't able to sand OR receive the data in BYTE form. (ie. 00 to FF) There is no proper example in MSDN. Can you tell me something in this matter? Thanks Kishor Soni:!:

Software Development visual-basic
Member Avatar for Kishor Soni
0
109
Member Avatar for sdillinger

In the following snippet of code the compiler (g++ on RH 4) does not see my overloaded operator. I cannot figure out why. Error: parse_opra.cpp: In function `void parseFile(std::istream&)': parse_opra.cpp:19: error: no match for 'operator>>' in 'in >> rec' note: candidates are: std::basic_istream<_CharT,...... ..... opra_record.h:35: note: std::istream& operator>>(std::istream&, Opra_record&) I …

Software Development c++
Member Avatar for sdillinger
0
151
Member Avatar for sneekula

This came up on Chris99's bus ticket program thread. Would like to see any simple examples on how to pass variables between classes without using global variables.

Software Development python
Member Avatar for vegaseat
0
19K
Member Avatar for mjmythili

for(i=1;i<10;i++) { cout<<"i= "<<i; } I want to print The label i as well as its value by using Outtextxy. Is it possible. I knew that Outtextxy is used to display strings. but i dont want to use cout.

Software Development c++
Member Avatar for vicky_dev
0
582
Member Avatar for newbie2c++

Having trouble getting this to compile. My error message says in line 42 expected ';" before "text" any suggestions? [CODE]#include <iomanip> #include <iostream> #include <cstring> #include <cstdlib> #include <string> #include <ctype.h> using namespace std; struct FORM { string name; string data; }; void getFormData(string, FORM []); //FORM *create_array(int); //string param(string, …

Software Development c++
Member Avatar for Anonymusius
0
90
Member Avatar for izharg

hi dudes, i need an urgent response for a project at the uni. i'm looking for code which can recognize operating system tasks\actions and output it in text format. i.e when i'm clicking on "Start" button, the code will generate a text string: "Click on Start" cheers mates Izi :rolleyes:

Software Development java operating-system
Member Avatar for Phaelax
0
106
Member Avatar for javanewbie

All, I am having a bit of trouble displaying someting using the JOption.Pane format. I know we are not supposed to pose questions here But I am at a loss and simply do not know where to turn. I am writing this code for class. It is a mortgage claculator …

Software Development java
Member Avatar for bjj
0
182
Member Avatar for sam1

Hi, i am trying to write an application that uses validation check for social security number. it should allow 9 charachters. the first two and the last character should be leters and the rest should be digits. i have used for loop but it doesnt work properly. [QUOTE]int noChar = …

Software Development java
Member Avatar for DavidRyan
0
159
Member Avatar for Covinus

[code=java] import java.io.*; class Tokenizer { public static void main( String args[] ) throws Exception { String sample = "myfile.txt"; InputStreamReader in; FileInputStream file = new FileInputStream(sample); in = new InputStreamReader( file); StreamTokenizer parser = new StreamTokenizer( in ); while ( parser.nextToken() != StreamTokenizer.TT_EOF ) { if ( parser.ttype == …

Software Development java
Member Avatar for jwenting
0
163
Member Avatar for jobra

Hi I am new to c++. I tried to get current date but when I compile the program, it gives me an error. This is my program [code=cplusplus] #include <iostream> #include <ctime> #include <stdio.h> int main () { char sdate [10]; _strdate(sdate); std::cout<<"Current Date:"<<sdate; return 0; } [/code] when I …

Software Development c++
Member Avatar for jobra
0
189
Member Avatar for chupacabra

python 2.4.1 mySQLdb 1.2.0 kernel 2.6.12 Hi, How can I make the following statement so I can search for any string? Right now I need to input at runtime %whatever I'm looking for% between % signs to get all records matching that query. I want to have this statement set …

Software Development mysql python
Member Avatar for locosway
0
138
Member Avatar for mruane

I am horribly (obssesed?) with writing a visually appealing game (simple) in python. My text adventures didn't appeal to my aufience (family), so I was looking at a tut on making a pac man clone, supposed to be line by line, it seemes choppy. Any ways, here is the code. …

Software Development os-x python
Member Avatar for vegaseat
0
633
Member Avatar for joelw

ok, im trying to write a function that dynamically allocates an array of integers. The function should accept an integer argument indicating the number of elements to allocate. Lastly the function should return a pointer to the array. If anyone can help much appreciated Thanks in advance

Software Development c++
Member Avatar for Lerner
0
389
Member Avatar for skeet123

Having trouble where to go next on this program: 1. If n is even, then you may give back exactly n/2 bears. 2. If n is divisible by 3 or 4, then you may multiply the last two digits of n and give back this many bears. By the way, …

Software Development c
Member Avatar for Narue
0
345
Member Avatar for B.H

Hi, I do have another doubt. The thing is in my project done in VB.NET and MSQL as back end...I need to print multiple pages. I can print only the page that is displayed on the VB.NET form ie the datas displayed on the VB.NET form. But it has more …

Software Development vb.net
Member Avatar for Narue
0
410
Member Avatar for mruane

I was wondering, if I wanted to attempt an ANSII dos game in Python, what would be the best way to do it? I would like to know how I would run it, i.e., would it run in the Python Interactive shell or could a make it run in dos? …

Software Development python
Member Avatar for mruane
0
267
Member Avatar for irfan.motiwala

Well i have developed general ledger(Accounting application)in vb6 .now i have to refine it i want that suppose there are 6 computers. so i want is database will be located only on one computer which is known as server and other 5 computer will act like client only front are …

Software Development client-server visual-basic
Member Avatar for QVeen72
0
123
Member Avatar for mattyd

I have been working on a GUI-based program using Tkinter; it is coming along nicely and I am very pleased with the results. I am at a point where I am trying to attempt a graphic manipulation of the GUI canvas. I have researched this but I am unsure what …

Software Development gui python tkinter
Member Avatar for jrcagle
0
2K
Member Avatar for Metsfan147

I'm trying to figure out implementing the clone() method of Object. I have a class with a few data memebers that I thought I'd try it out on - a node class for a linked list. So, here's the class: [code] public class HashListNode implements Cloneable { private String data; …

Software Development java linked-list
Member Avatar for Metsfan147
0
116

The End.