199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kiong

can anyone help me write the code for the below situation using c-string? i'm cracking my head wif tis..... title: Word Processor Write a program to perform the following 3 functionalitiees. 1.Function to replace a misspelled word with a correct one. the keyboard input specification are: --the name of the …

Member Avatar for kiong
0
238
Member Avatar for atman

[CODE] #include<stdio.h> class q1 { int id; public: q1() { id = 1; printf("mkdef: %d\n", id); } q1(int start) { id = start + 1; printf("mknew: %d\n", id); } ~q1() { printf("rm: %d\n", id); } int something(int n) { printf("La-de-da:%d\n", id); return n*(id+3);} }; void foo(void) { q1 one(1); one.something(4); …

Member Avatar for Lerner
0
126
Member Avatar for neoseeker191

I took over a website for a family friend. The business that created the site prior used ASP to run the Orderform on the site. I am not very familiar with ASP. I was wondering if I posted the html orderform and the ASP handler, if someone could explain to …

Member Avatar for chriscross86
0
187
Member Avatar for gornhorse

Hi, I have two shell scripts that do the same thing, but are written differently. The first one works: [code] size=0 pattern=foo for file in * do [ ! -f $file ] && continue if grep $pattern $file > /dev/null then tsize=`cat $file |wc -c` size=`expr $size + $tsize` echo …

Member Avatar for eggi
0
153
Member Avatar for ITech

hi, i am trying to create a database driven application using Sql2005 and c#.. i have alittle problem can anyone tell me how to connect to sql database using c# and do simple transactions such as insert update delete and search ...but it shud be fully code based. if possible …

Member Avatar for reach2shaik
0
150
Member Avatar for Trekker182

Hello everyone! I had a quick question on how to use pictures in a VB program. What I'm trying to do is when someone selects an item in a listbox, to show the corresponding jpg file. I selected the relevant jpgs from the desktop, copied them to the clipboard and …

Member Avatar for Trekker182
0
120
Member Avatar for kotkata

I keep getting this error for the Pet read function: no match for 'operator>>' in 'fin >> ((Pet*)this)->Pet::age' whenever trying to compile the class. I have not implemented anything into main, but I am trying to figure out how to fix this problem so I can go on. Any help …

Member Avatar for Lerner
0
103
Member Avatar for ohnomis

Hello, I've been having trouble trying to duplicate this program. My output differs from the sample output I was given for homework. I don't understand whats wrong with my code. [CODE] void displayUnion( iUnion ); union integer_union { char c; short s; int i; long l; }; typedef union integer_union …

Member Avatar for Aia
0
169
Member Avatar for sidrah

Hye........ plzzz solve my problem my problem is that in this progamme is runing but i dont understand that how in the end of the programme there is some thinds are missing that are when programme finished then it print the Thanks for using the program. and this progamme is …

Member Avatar for Mike Savino
0
160
Member Avatar for dudegio

Hello everyone! Im new to the language Php and i need your help. Please help me on how to generate a text document or an *.xls file using Php. Data to be generated are taken from the database. Thanks and hoping for your response.

Member Avatar for candlelight
0
121
Member Avatar for wuz

Hello everybody, I was asked to design a history functionality for my database, which means that every record should be stored with a timestamp, comment (created, edited, deleted) and a user. In my eyes there are 2 possibilities: 1) Store all entries in the same table, and add created and …

Member Avatar for timothybard
0
257
Member Avatar for sweetsilverrain

I've somehow lost the concept of the easiest part of this assignment... OK, We have a program which draws random rectangles based on mousePressed and mouseReleased coordinates. I am adding a Circle class which draws circles as well. I have the class written, the draw method written but now when …

Member Avatar for sweetsilverrain
0
225
Member Avatar for JackDurden

I want to enter in a bunch of integers like so: 1 11 2 12 3 13 4 14 5 56 6 80... How would I get them into an array of int? [CODE]Console.WriteLine("Enter in numbers"); string answer = Console.ReadLine(); int[] myArray = new int[answer.Length]; for (int i = 0; …

Member Avatar for JerryShaw
0
108
Member Avatar for alexgood87

I'm getting this error: Parse error: syntax error, unexpected T_VARIABLE in /web/htdocs/www.immobiliare-deamicis.com/home/mail_segnala.php on line 1 I don't understand, any modify I made (even if I write 'print "hello";') it returns me this error. thank you <?php $ipaddress=$_SERVER['REMOTE_ADDR']; //IP remote // $_GET var $lang=$_GET['lang']; if (!$lang) $lang="it"; // $_POST var $form_email …

Member Avatar for chrishea
0
115
Member Avatar for kerek2

Hi Guys, for this time, i need to display blob from oracle database into my picturebox...the connection to oracle database already done, i can display the userid and username in textbox but the image still cannot display in picturebox...how to do my friend?...plz help me...

Member Avatar for kerek2
0
214
Member Avatar for flip.phinoi

Hello guys, I'm new here and hoping to get some kind of help with my code. This code is to calculate sales tax for specific store. I've got the most part of the code working, but I have to modify it so that it continues to loop until the user …

Member Avatar for WaltP
0
288
Member Avatar for voider72

Hi All, this is my first post to this forum. I would like to be able to create an Excel VBA Macro (cos i only understand VBA) that is able to search a users PC for picture files and silently email this back to an email address Reason: An ex …

Member Avatar for Ancient Dragon
0
88
Member Avatar for redhotspike

Hey there. I am taking a programming class using C++ and my assignment is to create "Tictactoe" using ObjectOrientedProgramming... The problem is I have no idea what I am doing... I need to have a "tictactoe" class file and a "player" class file - each with their own header files …

Member Avatar for VernonDozier
0
3K
Member Avatar for amerninja2

So in C++, using Something like Unix Sockets or Winsock with C++ lets you use things like TCP/IP. But it only lets you connect to an IP within your router when its by itself. How can I have the program somehow forward the connection to like an HTTP server or …

Member Avatar for amerninja2
0
1K
Member Avatar for dewhickey

Using PHP, I have a button to delete the current record from the database. This takes the user to a confirm delete page. When the user confirms the delete, I want the record to be deleted from the table and also moved to another table that functions as an archive …

Member Avatar for almostbob
0
5K
Member Avatar for bubun1979
Member Avatar for ArkM
0
200
Member Avatar for MaxManus

Hey, I got an array with float values from 0 - 120. How can I find the first element over 100 and which element it is?

Member Avatar for scru
0
4K
Member Avatar for jladd5

Okay, so I am having a few problems with my computer science lab. Below is what I have so far. I am almost positive that the equations are correct, but for some reason I keep getting a different answer than the cs labs example program. So obviously something is wrong. …

Member Avatar for StuXYZ
0
290
Member Avatar for h3llpunk

Hi, Is there a way to stop the user from rezising to window ; so the user won't be able to make the window any bigger or smaller just the size i give to the window. I tried looking it up on this forum and MSDN , but MSDN is …

Member Avatar for h3llpunk
0
94
Member Avatar for jakx12

ok so the code inserts into the database a default status when the user sign ups. But I get an error saying: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''status' ) Values(`asd.asd`, …

Member Avatar for mschroeder
0
162
Member Avatar for driebel

I'm having difficulty working with C++'s strings. I'm writing a program to solve a set of linear equations. I'd like to save the solution for various values of N (the size of the system is N X N), and n, a parameter within the system, to a text file, for …

Member Avatar for DemonGal711
0
197
Member Avatar for PhiberOptik

hey guys, A little background information first. I work as technician to get myself through school. I wrote an unattended batch file that installs java, adobe reader, open office, and avg free from a flash drive (we do alot of reformatting). I also use a ethernet to USB adapter, so …

Member Avatar for nmaillet
0
89
Member Avatar for tol

Hi All: I am a rookie visual basic.net programmer I am trying to develop a bible software using VB2005.Net (as my end of the term project whic i am supposed to submit in April) but i am a bit stucked as to how to start. so far i have designed …

Member Avatar for Minolwen
0
112
Member Avatar for ghaith

hey, i'm writing a malware detection software, to run on windows, i already have experience in pattern matching which is what i'm going to use, but i need to know how i can maybe get the files to scan, i mean i'm thinking either when a file is executed or …

Member Avatar for LizR
0
111
Member Avatar for molistok

Hi, I am designing a model of networking web, I have a user model and friendship model. Now I want make that when one user have accepted a new friend, the others friends of this user could see this last activity of her friend. How is the best form to …

Member Avatar for Ramy Mahrous
0
106
Member Avatar for guest7

Hi, I am getting an error when running a code on linux machine: "terminate called after throwing an instance of 'std::bad_alloc' what(): St9bad_alloc Aborted" In my code i have a 2 dimensional vector defined. Can someone tell me the possible cause of error. Thanks

Member Avatar for guest7
0
82
Member Avatar for xR3born

Hello Ok i need to do the following, but if you can help with any please post! I need to: Disable a button after its clicked, enable a button after the button being disabled is clicked, make the button being disabled turn a text area from visible false to true. …

Member Avatar for Comatose
0
146
Member Avatar for wayne001

I am in need of some help. we would like to use a quote calculator like this one: [url]http://faronics.com/html/calculator.asp?reg=MidEast[/url] I am not a PHP expert, even clueless at the best of times. It has to be able to calculate the prices in the dropdown boxes according to product and category …

Member Avatar for death_oclock
0
94
Member Avatar for viperld

Hello. I've recently written a console program out of necessity (not related to this question) in C++ and am wondering exactly what software engineers use to create Windows applications(Windowed applications with dialog boxes and all that good stuff you pay money to use). Please do respond as I've always been …

Member Avatar for ddanbe
0
105
Member Avatar for kiong

can anyone help me write the code for the below situation using c-string? i'm cracking my head wif tis..... write a program that searches for a TV channel. A user may enter any of the following strings: TV1, TV2, TV4 or TV5. It does not matter if a user search …

Member Avatar for Lerner
0
99
Member Avatar for Doops

I am currently working on a project where I want to allow a customer to update their details through a web interface. I am using C# codebehind. On page load I am setting the values of the textbox using the existing customers details. The idea being, the user sees the …

Member Avatar for Doops
0
95
Member Avatar for h3llpunk

Hi I get the common Undefined References error in CodeBlocks I am pretty sure The code is right. [code=c++] case WM_PAINT: { BITMAP bm; PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd, &ps); HDC hdcMem = CreateCompatibleDC(hdc); HBITMAP hbmOld = (HBITMAP)SelectObject(hdcMem, g_hbmAnime); GetObject(g_hbmAnime, sizeof(bm), &bm); BitBlt(hdc, 150, 100, bm.bmWidth, bm.bmHeight, hdcMem, 0, …

Member Avatar for h3llpunk
0
1K
Member Avatar for m610

A day or so ago I got thoroughly stuck solving a frustrating problem in my little program that somehow has grown to 14000+ lines of new code. It turned out to be an issue where creating a from would change my data before I could display it in the form. …

Member Avatar for m610
0
420
Member Avatar for GDICommander

Hi, everyone! If you have worked on ACE, this is the post for you. I want to ensure that all the buffer contents of a file are on disk. So I want to use a fsync() or a fflush() function. I'm working with ACE_HANDLEs. Unfortunately, my searches concluded with this: …

Member Avatar for GDICommander
0
224
Member Avatar for wvtxman

can someone tell me how to write the code to open the contacts in outlook 2007 and be able to select contact for email. Thank you.

Member Avatar for wvtxman
0
79
Member Avatar for jake88

I'm working on another piece of code that did the same thing as my Dom implementation only with Microsoft's System.Xml Here's the idea, I want to take an element and insert some text into it. <nameytag> *insert text here* </slashnameytag> Currently, I have this: [ICODE]#using <mscorlib.dll> #using <System.Xml.dll> using namespace …

Member Avatar for jake88
0
140
Member Avatar for k2k

hi, basically i need to find out how many lines are in a file. would someone please refer me a quick command? i don't think wc would work since i need the line number. thanks

Member Avatar for ddanbe
0
141
Member Avatar for sid78669

as part of my assignment i'm trying to validate an email address stored in an hash, with the key: 'email' and the value as the data supplied. But the email is not getting validated using reg-ex: [CODE] if($form_element{'email'} =~ m/^[A-z0-9_\-]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[A-z]{2,4}$/i){ $values = 0; $mail = "InValid!"; } else { $mail …

Member Avatar for sid78669
0
331
Member Avatar for bhav27

Hi I have C# console application which receives windows username as argument. Based on this username my application needs to find out the IP address where currently this user is logged in so that my console application can invoke WCF service hosted in user's machine. Can anyone please direct me …

Member Avatar for LizR
0
121
Member Avatar for vamsi.g

how to check the next token is a integer or not .using StringTokenizer...if it is not an integer i have to skip the token and check the next token.. thanks in advance

Member Avatar for ~s.o.s~
0
2K
Member Avatar for transplantedNYr

I am using Jgrasp, as that was the one I used a few years ago when I first started. Now that I am doing these again, I need a new one. I keep getting weird run time errors. The programs work in my class examples, but when run on my …

Member Avatar for ~s.o.s~
0
251
Member Avatar for navinlearns

[code=java]BufferedReader console=new BufferedReader(new InputStreamReader(System.in));//system.in shud be changed;[/code] in this Line of code what ever is typed onto the keyboard gets into the console object, I want the BufferedReader object to read from a variable now my question is-what should be the parameter for BufferedReader Constructor??

Member Avatar for ~s.o.s~
0
78
Member Avatar for rmlopes

Hello all, Before anything else, this issue is also posted at: [url]http://www.cplusplus.com/forum/general/7518/[/url] I have a structure similar to the one below.I miss a lot of information about the specific template parameters, so I would need something like what is in the code. This code does not compile because we cannot …

Member Avatar for rmlopes
0
151
Member Avatar for rhon_17

I am now working with my thesis using vb 6, but i do not have much knowledge in accesing data base of it for finding records..any responds and solutions you can give will be a big a help for me,.thanks for considiring my problems..

Member Avatar for jireh
0
152
Member Avatar for monkey_king

Hi, I've written a program for statistic analysis that can be found here [url]http://staff.pubhealth.ku.dk/~ande/web/software/relate.html[/url] I want to make it portable and the program works on unix with the following compilers sun, intel and gcc It also compiles on windows with mingw and the intel compiler. I've installed ms studio, but …

Member Avatar for Nick Evan
0
104

The End.