Please find and correct the error in my c++ program. "Linker Error: Undefined symbol _main in module c0.ASM" The program is for transfering content of one file to another. #include<fstream.h> #include<iostream.h> #include<conio.h> class student { int rollno; char name[20]; int tm; public: void input(); void transfer(); void output(); } obj; void student::input() { char ch='y'; ofstream outf; outf.open("mark.dat"); while(ch=='y') { cout<<"Enter rollno, name and mark"; cin>>rollno>>name>>tm; outf.write((char*)&obj,sizeof(obj)); cout<<"wish to enter more(Y/N)"; cin>>ch; } outf.close(); } void student::transfer() { ofstream outf; ifstream inf; inf.open("mark.dat"); inf.open("trans.dat"); while(inf) { inf.read((char*)&obj,sizeof(obj)); outf.write((char*)&obj,sizeof(obj)); } outf.close(); inf.close(); } void student::output() { ifstream inf; inf.open("trans.dat"); while(inf) { …

Member Avatar
Member Avatar
+0 forum 7

Hi I have created a simple search form to search a movies database on my page using jsp and mysql, how can I make a download link after results have been extracted in a result page. Thanks for your nice reply.

Member Avatar
Member Avatar
+0 forum 3

I have an discrete maths exhibition, and i wanted to illustrate the influence of discrete maths in computer science. so i need some softwares to illustrate. A few examples like set theory for computer networking. graph theory and big O for analysis of algoritms. please can some of you suggest some software. thanks. remember it must show influence of discrete maths

Member Avatar
Member Avatar
+0 forum 2

How to focus a combobox in windows forms when the program is running in a thread?

Member Avatar
Member Avatar
+0 forum 1

Please correct the error in my program. When i run the program on turbo c++ 3, it output 3 times. Also When i enter more than 1 entry only the last entry is outputted. Also it is outputted 3 times. [CODE]#include<fstream.h> #include<iostream.h> #include<conio.h> class student { int rollno; char name[20]; int tm; public: void input(); void transfer(); void output(); } obj; void student::input() { char ch='y'; ofstream outf; outf.open("mark.dat"); while(ch=='y') { cout<<"Enter rollno, name and mark"; cin>>rollno>>name>>tm; outf.write((char*)&obj,sizeof(obj)); cout<<"Wish to enter more(Y/N)?\n"; cin>>ch; } outf.close(); } void student::transfer() { ofstream outf; ifstream inf; inf.open("mark.dat"); outf.open("trans.dat"); while(inf) { inf.read((char*)&obj,sizeof(obj)); outf.write((char*)&obj,sizeof(obj)); } …

Member Avatar
Member Avatar
+0 forum 5

I have a very similar assignment in which we have been specified that we are NOT allowed to use vectors. Is there any other way in this case to count the number of lines of data within a text file??

Member Avatar
Member Avatar
+0 forum 3

Mac OS X Program Sometimes, you find an application that you really, really like, but when you run it, the icon takes up valuable space in your Dock. With Dock Dodger, you can rid almost any application of its Dock icon, giving you your Dock back. With Dock Dodger, removing the Dock icon is as easy as Drag and Drop. Simply drag in the application you want to Un-Dock and Dock Dodger takes care of the rest. When you re-launch that application, it will be sans Dock icon. Want the Dock icon back? Just re-drag the application into Dock Dodger …

Member Avatar
+0 forum 0

SA Tennis Open, PBZ Zagreb Indoors, Movistar Open at [url]http://www.channelsurfing.net/[/url]

Member Avatar
+0 forum 0

Hy, I am trying to encode an X509 certificate into base64, and since the encoder I'm using takes only char*, and typecasting doesn't work, i find a different way to do this. I'm sure there is a simpler way, but i just can't find it. Here is the code: [CODE]BUF_MEM *bptr; BIO* mem = BIO_new(BIO_s_mem()); PEM_write_bio_X509(mem, x509p); int i = BIO_get_mem_data(mem, &bptr); _TCHAR* tmp = new _TCHAR( i+1 ); memcpy(tmp, bptr, i); tmp[ i ] = _T('\0'); BIO_free_all(mem); X509_free(x509p);[/CODE] The whole thing works "fine", but after this part every "new" object i create fails, and throws an [B]std::bad_alloc[/B] exception. (I …

Member Avatar
Member Avatar
+0 forum 2

Hi I"m fairly new to python and need some help with a slightly complicated programming solution. I'm trying to write a simply TCP sniffer (not a proxy!) that will sniff tcp packets coming from a specific IP and a specific port that is arriving to my local computer where the script will be running. I'm on windows Vista and its a built in NIC card. (if that has anything to do with programming a sniffer for this) For ie purposes: 1. the specific ip where it is coming from is 1.2.3.4 2. the port its coming in on my pc …

Member Avatar
+0 forum 0

I am using cin to input a single character from keyboard.The problem is that if 2 or more characters are entered then the rest of the characters are being considered as input for the further cin statements.Is there any way in which I can clear the inpu buffer memory after every cin statement so that rest of the characters are removed from the buffer. Eg.[code] char ch; cout<<"\nInput a character:"; cin>>ch; cout<<"\nInput another character:"; cin>>ch; [/code] In the above example if two characters are entered at the first instance then the second character is considered as the input for the …

Member Avatar
Member Avatar
+0 forum 2

If I initialize graphics in my program and then use cout the font appears bigger than normal and the cursor doesn't blink on the screen as it does when the graphics are not initialized.Is there any way I can use graphics as well as cout in my program?If yes how to do that.

Member Avatar
Member Avatar
+0 forum 3

My IE7 won't load some pages. It was a very recent glitch. The only hallmark to this new problem was playing a game and exiting to a dll error. Now when I go to some web pages, it says IE cannot display this page. I've done the scans that the "read me" page said. I'm new at this and am hoping to get some help. It's sporadic. I can get to this page only through google cache. I can still maneuvre through all web pages on my handheld on my wireless, but would rather use my pc again. Any help …

Member Avatar
Member Avatar
+0 forum 8

I have tried several things, but I just can't get this to work. What I need is a snippet which scans a program for value X, and then simply assigns a varible within the python script to the X value. I'm new to Python, but not to programming. Please be patient with me. Thanks in advance!

Member Avatar
Member Avatar
+0 forum 8

Hi everyone, I'm trying to write a stored procedure select statement which is a little beyond my experience level. I have a table in the DB called addresses which contains the following fields: [LIST] [*]address, VARCHAR [*]count, INT [*](a few more fields) [/LIST] My stored procedure will take in a unique address in the following format: [LIST] [*]####.####.####.####, VARCHAR [/LIST] What I need to do is compare the passed in value against the [addresses].[address] values and return the matching row. The problem is I also need to check for for increments on the final four characters of the passed in …

Member Avatar
Member Avatar
+0 forum 1

In c++ i want to know how to output the result on dos screen page wise,i.e. when i am displaying something if the page is filled then a prompt should come like "Press any key to continue.." More precisely i want an equivalent of the '/p' command which is used in DOS.

Member Avatar
Member Avatar
+0 forum 2

Today when i woke up and turned on my computer, the XP loading screen (with the three blue blocks always going) stayed like that and never changed. i tried running my comp in start mode, but 2-3 seconds after i see the login screen, my computer restarts. what should i do?

Member Avatar
Member Avatar
+0 forum 1

hi, i need help please... i need to write a program to calculate the depreciation of equipment passed its useful life using two different methods... these are the actual requirements for the program: "Depreciation" Program requirements: 1) write a c++ program to calculate depreciation using the straight-line and sum-of-digits methods. 2) this program must use at least three functions 3) depreciation is a decrease in value of some asset over time due to wear and decay. For exampl, suppose that a company purchases a computer system for $200,000 that will serve its needs for a five-year period. After that time, …

Member Avatar
Member Avatar
+0 forum 3

hi guys, i am using vb6 as front end and oracle as back end for my project. i am using ADO to connect to oracle database. can u please help me with the code. my code is [B]Dim con As New ADODB.Connection Dim str As String Private Sub Command1_Click() str = "Provider=MSDAORA.1;Password=tiger;User ID=scott;Data Source=oracle40;Persist Security Info=True;" With con .Open str End With con.BeginTrans con.Execute "insert into PBS_NAMEADDRESS values('" + o_code.Text + "','" + o_name.Text + "','" + o_address.Text + "','" + o_city.Text + "','" + o_state.Text + "','" + o_country.Text + "')" con.CommitTrans Command1.Enabled = False End Sub[/B] when i …

Member Avatar
Member Avatar
+0 forum 2

OK, so heres my code, check it out, let me know what you think, I'm trying to embed a serpenski triangle into it, and the program isn't crashing but it isn't displaying and I'm not sure why, if you can tell me it would be greatly appreciated. Also, I need to know how to make the location of the geometric shapes randomly generate their positions and colors each time they generate. Thanks for looking guys, any help is appreciated. [code] import Image import ImageDraw import random sizex= 1280 sizey = 800 im = Image.new("RGB", (sizex, sizey)) def sierpinski(data, steps, update_image, …

Member Avatar
Member Avatar
+0 forum 2

Hi, I have a linked list which I created in a function? I want to allow the user to enter a name for the linked list, and then after he/she can display the list by typing in the title. This is part of my code [code]struct llistt{ char str[100]; // where the strings will be kept struct llistt *next struct llistt *prev } typedef struct llistt node [/code]

Member Avatar
Member Avatar
+0 forum 1

I bought a new SATA Hard Drive, and I want it to be secondary to my first hard drive. After I connected the device to my computer, how do I install it so I could see it in the "My Computer" folder? I'm also having problems setting it up on the Bios.

Member Avatar
Member Avatar
+0 forum 4

My monitor is being plagued by strange discoloration at the very top of the screen. Its a Samsung syncmaster 171N LCD. Does anybody recognize this problem/know anything I can do to fix/improve it? Buying a new monitor is out of the question, so I'd least like to know what is going on here. The problem can best be described as a blotchy lighter area at the top of the screen. The size varies, somedays it will be an inch or more down the screen, today its only about a quarter inch. Thanks for any help, please see the attached images. …

Member Avatar
Member Avatar
+0 forum 3

The End.