199,114 Archived Topics
Remove Filter ![]() | |
I put together this little example to test my sanity, and it failed! [code] #include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> using namespace std; /* Example.txt 23 test 4.5 */ int main(int argc, char *argv[]) { string Filename = argv[1]; cout << "Filename: " << Filename << … | |
i need to input a password but it should be printed as a special character..how can i possibly do that? thanks in advance for the answer and im sorry for the disturbance..im just starting studying this kinds of stuff..again..thank you in advance..good day.. | |
I have been finding it difficult to understand the error statement I recieved from my php file using the code below. I keep on getting this result: [COLOR="Red"]Parse error: syntax error, unexpected T_STRING, expecting '(' in /home/username/public_html/application_form.php on line 28[/COLOR] [code]<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD … | |
heyy i m makin a video splitter in VB 6.0...the problem is that wen i split a video file is 2 parts or more only ...the video gets splitted but only the first splitted video runs...others do not....i know the header wud not be present in other videos...now wat shud … | |
Hi everybody, I'm trying to read a Microsoft Word file, exported as microsoft xml, with PHP and simple_xml but I can't figure out how to do it exactly. Only things I managed to do are: [CODE] $tempXml = simplexml_load_file(file.xml); $xml = $tempXml->asXML(); print $xml; [/CODE] If I print before the … | |
I have been trying to process some text about 10000 lines to upwards of 26000 lines of text. I wrote a program to search for text strings and copy the lines around them if they are found. It searches Line by Line. I need to improve this code speed so … | |
I have an inheritance heirarchy and I need to use polymorphism. I have some questions because i don't really understand it fully. What i have to do is create a vector of pointers (account) to 2 of my derived class objects, SavingsAccount and CheckingAccount. Then for each account in my … | |
how to delete the last line of the text file using c#. i applicaiton create a text file ..with 2 empty lines at the end of the File now i just require a method which open the text file and delete the last 2 lines of the text File ..the … | |
hi, i have one question: does anybody know how to end program. i have one function in whom i calculate two numbers. i want to end program if my number is to big for example 12345 + 91111=103456 but i don't want that my has 6 digits so i want … | |
Im having trouble with my internet linking. I have a picture boc named [I][B]picq[/B][/I] that i want the user to be able to click to take them to a web page. i tried the following: picq.picture =(url) im new to this so bear with me | |
Hi, I am trying to read first 6000 bytes from a webpage, using StreamReader.Read(buffer, offset, no_of_bytes_to_read) method and trying to close the connection. Because, the useful data I need is present in the first 6000 bytes of the webpage and webpage size is atleast 100Kb. And, I need to repeat … | |
I'm having a bit of trouble with this random number generation function. It's going to be part of a much larger program which requires lots of random numbers so I decided to use time as a seed. However I can't seem to get this to work. This code is virtually … | |
I am only beginner at this. I don't understand this fully, half of it was given to me and other half was my team writing it out. I can't work out how to create a form to edit a table. There is people.php file. Thats the file I want to … | |
hello! any ideas how i create users by username and password in c++? | |
Hi I want to create an internet browser what are the programming languages that need To create it . Thank you in advanced | |
Hi Experts! I am trying to build dynamic hyperlinks but i cant do this. i am new to JSP. please guide me. here is my code: [code=JSP]<% try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * FROM contacts"); while (rs.next()) { %> <a href="viewdata.jsp?value1="+<%rs.getString(1)%>+">"+<%out.println(rs.getString(1));%></a> <%} … | |
HI, Im 20f doing course on multimedia game development. Im very new to C++ and not familiar with the codes. Can someone helps assisting as my assignment due soon. I have only left this 1 task to complete.. My lecturere had covered some fstreams chapters, enum struct and string. Assignment … | |
is there any performance benefit of using constant pointer to constant variable like the following? [CODE]void doSome(const int * const param) { //do something ; }[/CODE] i know that making param constant is good for performance, how about making both constant? | |
Dear Friends Please provide me solution code of this programme. A C++ program which contains a class named Time having three data members. • Hours • Minutes • Seconds The class must have • A default and parameterized constructor • show() method to display the time in proper format like … | |
Hello, just recently I have experience the following error message: "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ptremail/public_html/admin/newmail.php on line 431" If anyone could help I would greatly appreciate it. I have pasted the entire code below. Thanks! [ICODE]<script language="javascript"> function clear(){ for (i=1;i<=240;i++){ document.getElementById(i).checked=false; … | |
Can anybody tell me where should i pass sql statement in crystal report . suppose i want to pass these codes in crystal report.this would be greately appereciated. [code] RECORDSQL = "SELECT * From MR WHERE (((MR.Req_no)=" & Text12.Text & "));" rs.Open RECORDSQL, con, adOpenDynamic, adLockOptimistic [/code] | |
Hi everyone, I'm new to this site and figured I could get some assistance here. I'm a college student with slight programming experience. Anyways... The program I need to create... needs to read a text file into an array of structures that are linked - hence a linked list. That … | |
hi there all , how do i loop this back to the main menu after i have used ctrl+d to give me the final total ...i looked everywhere and tried a few things but no success , my book doesnt say much either thanks . [code=cplusplus] #include <iostream> #include <cstdlib> … | |
++++Here is my code in to call the records from the list box that must be display in the datagrid. [code=php]<?php $a = $_GET[$query1]; $b = $_GET[$query2]; mysql_connect("localhost", "root", "") or die ('Error'.mysqlerror()); mysql_select_db("sched"); $query="INSERT INTO try (section,grp) values ('".$a."','".$b."')"; mysql_query($query) or die ('Error Cannnot Insert Records!'); ?> <?php // … | |
Hi When using java, for almost all the time i just use java.swing for my applications that i make, yet when using other programming languages i often find that the GUI toolkit that comes bundled with the download of the Development Kit, is not quite as good as some third … | |
I am completly lost... I need to create a program displaying the following: Create an application with the ability to enter 5 student names. The information should be: - Student Id - Name - And final grade Print the information to the console in a tabular format with column headings … | |
Good day! Im trying to unit test my current project(the code behind) but I can't manipulate the controls inside the content page. Say I want to put some text inside the textbox, where textbox is inside the content page. I tried the accessor but failed, example: MyClass_Accessor acc = new … | |
Hey Guys, I am a newb when it comes to bash scripting,but I am loving the learning so far. I am at a wall though. I have scoured for hours tryng to find an answer. Basically here is the pseudo code: 1. ask for users grade 3 times in using … | |
Hi, I read something like "\mkdir ${RESULT_DIR}". Just curious about why "\" is added before the command? Thanks for help! | |
I'm looking for C# based, asp.net code (either with or without ajax extensions), that will allow me to load full size images (from thumbnails) into a "template" or aspx page that I will have focused advertising embedded. I know I have to create the thumbs gallery page and the ad … | |
Can anyone give me some good forums or advice on threadpools in C# ??? Thanks ...:D | |
i have 2 combo box country and state if i select any one of the countryin first combo box automatically partcular state shoudl display in second combo box ...can u tell me javascript coding for this ? | |
hi you all.. i want to flash the output message to the screen for a limited time. can you plz help me ? is there something in iomanip, or should i do something with system("pause") and system("clear").. although the latest dont seem to me like a good solution .. | |
Hi everyone, I am trying to insert a image into the jtextpane using the html document as the default document for the jtextpane. It seems that nothing happens when i try to insert the image from disk. htmldoc - an instance of the HTMLDocument class TextPane1 - an instance of … | |
I am writing a browser program in C++ Builder 6 that loads a web page using the following code: [code]void __fastcall TForm1::ToolButton1Click(TObject *Sender) { wchar_t buff[100]; MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, "http://www.daniweb.com", -1, buff, sizeof(buff)); CppWebBrowser1->Navigate(buff, 0, 0, 0, 0); }[/code] To include the address bar implementation, I need a temporary string derived … | |
Hi Guys, I was wondering if you guys could please give me some good project ideas. Projects should be real world problems related and should be of the level of a Masters Student (latter is not that important). Please let me know if you guys have any great project ideas. | |
trying to extract fulladdress to individual column such as address1 address2 City State Zip, and each of the fulladdress has a [B][U]comma[/U] [/B] so that why I am trying to create a function that count the comma and put the fulladdress ito individual column. hear is the script that I … | |
I have a program that needs to be looped continuously until the user inputs an X. I am not really sure how to go about doing that. Can I make the whole program one giant while() loop? Here is the code for the program: [code] // prog1.cpp : Defines the … | |
How to include something that is a directory before the file like: public_html/includes/sources/yt.php the file yt.php must include a file which is in: public_html/includes/fetch.php what will it be like? [ICODE]include_once(../file.php)[/ICODE] or?:'( ![]() | |
hello everyone =) can someone help me please to solve somthing..? I have difficulties in my calculator program. I am using the 2005/2008 edition of vb express. I created a calculator with only one textbox, and i can't figure it out how to insert 2 values and make the arithmetic … | |
I'm trying to pass a character as parameter into a function. I will then get the user's input( characters and numbers etc), the function then will return all the input characters excluding everything else. I've gotten the sorting the characters from everything else figured out, but returning the array back … | |
to make the programs more efficient, do i need to free variables which are declared locally in the functions? Are they not disposed when the function ends? | |
What would do you consider to be the best way to handle large amounts of data on the client side? How about from a security standpoint? I've been looking into the different methods to store and manipulate query results on the client side. The application I've been working on is … | |
Hi all, I have little problem when reading a file char by char and when i tried to make a check at the end of file. I am making a check through '\n' but its not working. Please have a look in the following Program and let me know yours … | |
I am doing a homework assignment in which we have to get an undetermained amount of numbers from the user. I was wondering how to tell when the user is done entering numbers and wants to exit the loop, such as perhaps a blank space or a word like 'quit'. … | |
![]() | <code> Hi Guys, I am new in perl. I have this file:- 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 BCDE MS08-001 Works Suite 2005 (KB943973) 2009-01-09 09:29:19 FFFF MS08-001 Works Suite 2005 (KB943973) 2009-01-08 09:29:19 ABCD MS08-002 Works Suite … ![]() |
VB 2005, XP Pro SP2 Again, I am plagued with this vague MS program of clr20r3 invalidoperationexception on a client's machine. It works fine from the development machine and from a brand new XP machine. How do you determine what the problem is????? What is strange is that the App … |
The End.