199,124 Archived Topics
Remove Filter ![]() | |
i have been given an assignment about palindromes but i don't no how to do the coding in c++ and using queue and stact to check if a string is a palindrome.. please help me guys.. i need all your knowledge about it!.. i need it as soon as possible.. … | |
please help me with my problem... i have here a running program...but then you have to press the keyboard twice in order to input data.. can you help me to modify my source code???please..my future depends on you...-_- specification: Accepting data in the lists should only terminate only if the … | |
I've read up to the point where the author explains partial classes. I understand the general concept - they're used when a class is so big that it is better to split it across files. I created two .cs files. Let's say one is CS1.cs and the other is CS2.cs … | |
Hello, This is similar to the thread I did a while back, except this time I need to do it under linux. I'm using the latest version of Ubuntu. Can some some one show me how to send information (an array of char) to the rs232 port (synchronous communication) . … | |
i need help here. how do i display checkbox value from my database MS access in a visual basic 6 form? i hv 2 checkbox in my form, which are Available and Not Available. if the value is yes, i want to display it in Available checkbox and if no, … | |
Hi everyone I am having a little problem with a program that I wrote [code=Python] def P(): a = "a" aa = "aa" b = "b" bb = "bb" text = raw_input("Enter Text: ") SpacedText = ' '.join(list(text)) OutputText = SpacedText if a in OutputText: print aa if b in … | |
Hi, I have a design issue and don;t have a clue how to proceed. In one of my projects I have to develop a software framework. Users who use the framework should be able to define objects they want to use and their relationship (Similar to class hierarchy). ex: A … | |
Good day!! I was observing this class doing their laboratory exercise on java. We are of the same professor that is why I had this instinct that we will be doing the same exercise on our class too. They were asked to do this: ->Make a class that has the … | |
Hi there! For starters, let me say I am something of a Python newbie at the moment, but I'm learning more every day! Unfortunately, my script is at a standstill, and I can't figure out how to continue. I don't have an error, per se, but rather the inability to … | |
Hi, I'm looking for where either the sort module or the sorted() function resides. I'm thinking a module in the default folders, but have no idea where it is, or how to locate it (sorted is in the path, but I don't know how to display a parent based of … | |
I have the following globals defined (the relevant ones, anyway): [CODE=c] DWORD dwNumMaterials; LPD3DXBUFFER lpMaterials; LPD3DXMESH lpMeshBody; [/CODE] And the call to D3DLoadMeshFromX is here: [CODE=c] D3DXLoadMeshFromX(L"body.x", D3DXMESH_SYSTEMMEM, lpD3DDevice, NULL, &lpMaterials, NULL, &dwNumMaterials, &lpMeshBody); [/CODE] When this is called, it returns a generic error (0x80004005). Also, if it is needed … | |
Hi, I am sure you have all seen the recursive factorial program. [code] int factorial(int number) { int temp; if(number <= 1) return 1; temp = number * factorial(number - 1); return temp; } [/code] " Once at 1, the values are returned to the previous factorial call and multiplied … | |
Is there an easy way to convert from Char* to int? I have tried converting as such: [CODE]char* value_a; int* temp = value_a; int final = temp;[/CODE] The compiler is returning an error so I know something is wrong but why can't I convert this way? Any suggestions as to … | |
Hi all..... i want to make connection between pc and mobile via bluetooth using java, and i want to send/receive text between them plz help me to do this thx :) | |
Greetings all, I'm actually proud to have a question I've never seen asked here. I've got a 1.5GB text file (YES, it's really 1.5GB) where each line needs a set of modifications. I've got the application running in a single-thread, whereby each line is read in, the modification is made, … | |
Hello, I am a graphic designer who does some web design on the side. The store I work at had a website that the boss wanted transferred to a different host. So I downloaded it off the server and uploaded it onto a new one. I knew that I was … | |
I am trying to write the class that will take in objs from another class and put it into a circular array without using the STL. O I wrote the class and in Main I delcared an obj of the queue called (myQueue myQ) so this is the obj but … | |
i need to know how to get the selected value from a drop down box in php for example : while($row=mysql_fetch_array($query)) { echo"<option value='category'>".$row["cat_name"]."</option>"; } i want in another page to get the selected value and perform some operation on it | |
How to store an image into MySQL using JDBC and display the image in JSP? | |
Hello all, I'm having a problem with converting a script from MySQL to MSSQL .. the problem is within this query: [CODE]select * from data where name LIKE '$name' AND spot LIKE '$line' AND piret LIKE '$piret' [B]AND timestamp >= '$before' AND timestamp <= '$after' ORDER BY timestamp DESC[/B][/CODE] the … | |
Hi. I am using Visual Studio 2008, and Sql Server 2000, and I have the following code: [CODE] 'Load connection module connection() cmd = con.CreateCommand cmd.CommandText = "SELECT * FROM tblUser WHERE username = 'xxx' " da.SelectCommand = cmd da.Fill(ds, "tblUser") dt = ds.Tables("tblUser") MsgBox(dt.Rows.Count) [/CODE] I don't know why … | |
For those of you who have been working for some time I'd like to find out what practical uses you have seen for recursion. I'm not talking about college courses or what you see in tutorials, but what programmers use it for in real-world programs such as system, applications, etc. … | |
Well Friends, I am thinking to get Oracle Global certification OCA. For this, I need to get some good ebooks of the oracle press,can anyone here can provide me the link? Thanks in advance. | |
Hi guys, I've got two loops, and I want to be able to continue; the outermost loop when the innermost loop finds something. How would I do that? [code=c] //(...) for (n = startStorage; n < quadcount; n++) { if (!notOptimized(n, optimized)) continue; int *x = &quadindex[n*4]; for (eachX = … | |
I have two files, an application file and a class file. While they both run without errors, the application file returns a null when I run it. Here are the two parts that dont seem to work? Can someone tell me waht I am doing wrong? App file code: Invoice … | |
[CODE] string hello; cin>>hello; sprintf(buf, "This server has been contacted time%s\n", hello); [/CODE] I'm making a simple client-server program. I just want to know how do I get to print out the hello string inside the sprintf() >.< soz might be a very dumb question.... The error i keep getting … | |
Hi, i use php mailler to send email but i don't know how to add <br> or <p> breaks into message that comes from other page with $_POST. I need it because message appears in email as an one long line. [code] $mail->Body = $_POST['message']; //Not fine $mail->Body = "Hi,<br>How … | |
Question:-- Write a program that read a line of text, changes each uppercase letter to lowercase and places each letter both in a queue and onto a stack. The program should then verify whether the line of text is a palindrome Output: Please enter a line of text I am … | |
If you can help by giving guide to write this using VB, I shall be very glad: I want to get the quotient and a remainder when one number is divided by another one number, Can you please give/show me the Coding to this problem? | |
i want to auto generate an ID like 1, 2, 3. and anytime i close my application and open it again it should start from the Id it stopped. if i enter up to 6 the next one should be 7. Can anybody help me? | |
I have a problem that seems like it should be easy but so far has been fairly difficult to find documentation on... I want to be able to pass parameters to a program in the command line in the same manner as the built in functions (ex. the "/r" in … | |
Hello all - I have created an online form that sends results via email on submit, however, I have 4 checkboxes and their values are coming through as NO no matter what is entered this is the PHP code if ($box1 == "on"){ $box1= "Yes"; }else{ $box1 = "No"; } … | |
can anyone give me a hand.. any idea how to do the following requirements.. i can't start please help.. i have two tables to compare.. it has so called rates.. its buying rate and selling rate(diff table), before i update new buyingrate.. it has to check selling rate (must be … | |
Hi, my name is Alex. I'm fairly new to C# but apparently I may be required to know how to manipulate .NET Frameworks via C# so I am studying a beginners book and another book to thoroughly understand the language. The problem is that I am struggling to understand the … | |
Hi, I am kinda new at PHP, but I have had nearly 1 year of learning. I'm making a Mmorpg text based game, I.E. bloody nation,lost power, I have made the home.PHP(login),login.PHP(Database script),register.PHP,Reg.PHP(Database script),Terms.PHP,Welcome.PHP,Member.PHP and loads more. I am now starting the stats database for the user e.g. Strength,Charm,intelligent and … | |
Hi.. I have a question regarding the configuration manager.. Why is it that the samples on the MSDN Learning center cannot be compiled using the default settings? With Itanium as the active solution platform by default, the compiling gets skipped.. However, when I change this to Win32, it compiles.. Isn't … | |
I read that STL containers will allocate elements in the heap but the container objects are allocated in the stack. Therefore, in the code below do I need to first clear off the elements of vector "vec" from the heap before deleting "sub" in order to avoid memory leak? Or, … | |
I have posted the related topic in the Java forum! Now, i am having a very differnet problem altogether. 1. i am being able to call the C program from the Java frame using a "Button" in the inteface. 2. But the problem i am facing now is that the … | |
hello please send code for autoreply of email in contact form my contact form is : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Welcome </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="style.css" rel="stylesheet" type="text/css"> <SCRIPT>//global variable for error flag var errfound = false; //function to validate by length function … | |
Guess this is javascript. Similar as in excel, (I have seen this before), lets say I have 3 fields in a form. Now when entering a numeric value in field 1, and lets say field 2 has the value of 5, then the value of field 1 times field 2 … | |
I've been trying to figure this out for months so if someone could tell me how stupid I am that would be great... The first php.ini file works for sharing sessions from domain to subdomain no prob... with the simple inclusion of session.cookie_domain = "mydomain.com" I've tried them both with … | |
I've tried to post on a few other forums for information on how to write a very simple search script that will allow multiple search options to search a mysql database. I have a script written that searches by a users last name, but I want to also offer the … ![]() | |
I'm trying to read a com port. I can create it, change the dcb, set the timeouts and see the input buffer using ClearCommError. But I can not read it. When the program hits the ReadFile() statement it never comes back. Here is some of the code: [ICODE] char CMyClass::EIA232_Open(HANDLE* … | |
I am self taught Dreamweaver novice I have created a popup window, but even though in the code it asks it to open at 600 wide x 400 high, the pop up is opening in a tiny window It seems to be fine with Firefox, just a problem on IE … | |
this is wat i hav been doing but its not workin.i am not able to write the code for searching #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<string.h> //***Record structure declaration*** struct Details { char name[30]; char sex; char status; char title; char address[40]; char qualification[10]; char experience[20]; int telephoneno; int membershipno; int … | |
Hi all, I am trying to optimize one of my applications by cutting down on the number of function calls I am making. I have decided to do this by reading definitions out of a file and using them as the argument for the function. [code] char registryHive[MAX_PATH]; ZeroMemory ( … | |
Hi. Thanks for looking. I am setting up a dedicated server for the first time to host a site and I have the FTP accounts set up, the PHP and MySQL packages installed. MySQL administrator GUI tool installed but I cannot get phpMyAdmin to work. I have unzipped it and … | |
in VC++ 2005 I tried to create directory using CreateDirectory(_T("c:\program files\Testing")) But it is not created in c:\program files\ it is created in loged in Users appdata folder how can i overide this senario in vista (windows folder and System directory) please give any link or information | |
Ok so ive strted to try and teach myself C++ cause in a few years when i go to college i wanna study computer science or engineering. I downloaded Dev C+++ and followed some small simple tuts on how to do C++. 2 of the tuts started off simple and … |
The End.