199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
[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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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; … | |
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 … | |
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... | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
Please, any one help me to write a c++ program which display its source code??? | |
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? | |
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. … | |
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 … | |
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`, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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. … | |
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: … | |
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. | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
[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?? | |
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 … | |
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.. | |
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 … |
The End.