No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
IT
57 Posted Topics
Hello all i have one class about website this semester. and the teacher introduce us the XAMPP so i download and install it but not know how to use that. so is there anybody know how to use that and give me some brief about it? Thanks so much and … | |
Hi, all I have questions about the google sitelinks. I know Google sitelinks is completely automatically generate for the website and it depend on the Google. but how could i change my site structure to make the google algorithm find my links? if i create some specify subdomains or directory, … | |
Re: test it the code is fine. couldn't see any logic wrong from your code. | |
Re: the link above is helpful but still couldn't successful run it after building. ![]() | |
Hi, all. I am implementing the final now. Here is one jquery syntax i want to ask. I have been stuck by this problem more than hours. Here is what i did HTML part [CODE = html] <table> <tr> <td> table head </td> </tr> <tr id="mytr">//here i want to get … | |
Hi,all I am implementing the required assignment and face compiler error which i do not understand. Here is my class: [CODE=c++] class fooPlayer { public: fooPlayerfunc(){}//doing something here char askYesNo(std::string question); }; class fooPlayerFactory { public: virtual std::auto_ptr<fooPlayer> MakePlayerX() const; virtual std::auto_ptr<fooPlayer> MakePlayerO() const; private: std::auto_ptr<fooPlayer> MakePlayer(char letter) const; std::auto_ptr<fooPlayer> … | |
Hi, all I am using simplexml_load_file() function to get the rss and change it to the XML and get the elements. But i got the error information like below: [CODE=php]failed to open stream: HTTP request failed! HTTP/1.0 503 Service Unavailable in [/CODE] My code is like this: [CODE=php] $zip = … | |
Hi,all Here is the sql sentence i wrote on my php file. But when i test with it nothing show up which there should have some results?? My idea is :get the sw and ne point, choose every value live inside the rectangle in my database [CODE=php]//zips is my table … | |
Hi, all I am trying to write the function to get rid of my punctuations. My code: [CODE] //_word_list is the vector<string> type void TextUtil::isnotpuct() const { for(size_t i=0; i<_word_list.size(); i++) { size_t len = _word_list[i].length() + 1; for(size_t j=0; j< len;j++) { if(ispunct(_word_list[i][j])) { _word_list[i] = ""; } j++; … | |
Hi, all I got stuck by the erase function usage. here is my code: [CODE=C++] //A is my class //this function is used for judge weather there is a punctuation in //the word and get rid of it. void A::isnotpuct(const string& wordlist) const { size_t len = wordlist.length() +1; for(size_t … | |
Hi, all its me again! I got really stuck by the STL library and do not know how to correct that. Here is my class code: [CODE=C++] class A { public: A( const string& filename ) { ifstream file(filename.c_str()) ; string word; while( file >> word) { _word_list.push_back(word); } } … | |
Hi, all its me again! Still stuck with the STL function usage. but this time face the sort function problems! here is my class: [CODE=C++] class A { public: A( const string& filename ) { ifstream file(filename.c_str()) ; string word; while( file >> word) { _word_list.push_back(word); } } StringIntVector topNWords(size_t … | |
Stuck by another problem about the vector, map functions the topnwords function is to find the top n times words occurrence Here is my code: [CODE=c++] //stringvector is the type-- //typedef vector< pair < string, int > > StringIntVector; StringIntVector TextUtil::topNWords(size_t n) const { map<string, int> freq; for(size_t i=0; i<_word_list.size(); … | |
Hi, all i have one assignment about using some of the STL to read from .txt file and count the words and find the topnwords etc. So i implement my class like that: [CODE=c++] class A { public: A( const string& filename ) { ifstream file( filename.c_str() ) ; string … | |
Hi, all I am the STL beginner and also kind of new in c++. And i got one assignment about write the text utility class with pieces of STL. So the following two function implement totally freak me out. wordlengths() finds and returns the number of words of different lengths … | |
Hello, all I want to implement the required portfolio function and print out the customers related symbol name, symbol buyin price ,symbol quantity, symbol last trade price, the changes etc But i found some issues with it. Here is my code: [code=php] //fetch the element from mysql while ($row = … | |
Hi, all I have one assignment about implement the stock website. i stuck in some problem which i can't solve. i want to implement one function which all the $row related to the $result in sql and for each row initialize the class once. i found if i gave the … | |
Hi, all When i type Daniweb in google, it comes out really clearly site map in google. for example like: [CODE] DaniWeb IT Discussion Community - Software Programming / Web ... Forums Web Development Java Forum JavaScript PHP Software Development [/CODE] I made the write the googlesitemap.xml file and upload … | |
Hi,all I want to ask for the php code to check the password validation? It couldn't be entire alphabetic or entirely numeric? Thanks. | |
Hi, all I tried this many times in XAMPP. It always not give me direct which stuck me now. Here is my code: [code=php]if (mysql_num_rows($result) == 1) { $_SESSION["authenticated"] = TRUE; redirect("index.php"); } else { die("could not find a row"); }[/code] My redirect function code is really normal: [code=php] function … | |
Hi, all. Really new on php!! I want to implement one function which could get the price depending on different size and calculate the total price. So i made foo.php and bar.php. Which people could choose the size and the price in foo.php and want to pass which they choose … | |
Hi, all i want to have the "add to cart" function in my website which use session function: Well basically the cart is mostly like others website cart: remember which have already been added and could add something more Assume i have class.php, A.php and B.php In my A.php [CODE=php]<?php … | |
Hi, all. when i run my code, i always got the xpath Invalid expression warning. So here is my question: Assume i have the xml file [code=php] <root> <items> <item id="1"> <name> item1 </name> </item> <item id="2"> <name> item2 </name> </item> </items> </root> [/code] And here is my php code … | |
Hi, all. I have one question: I am writing my-string class now according to the assignment. And like other String class assignment, we have to overload the operator, do the difference type constructor, etc. Well, i almost finish my assignment. But there have one problem with my code. I am … | |
I know for some C++ experts this class overload is like a piece of cake but as a beginner we always asked to write this again and again. My code as following don't have compiler problem but have strange output. [code=c++] Class String { public: String (const String& s); String& … | |
Really new in PHP So don't know what to do now?? I have a form which have one select button have different catalog. And i want to do when i choose one catalog, my page will show what's that related. here is my form code: [CODE]<form action="index.php" method=GET name=chcat > … | |
Hi, all i have one project about doing pizza ordering system using PHP+XML So about the design website part i already have bunch of ideas. The part make me stuck is the XML part. The following is what required: [LIST] [*]. [/LIST]Spend some time thinking about how best to represent … | |
Hi, all read some articles these days and want to know how good or how bad the YUI library is?? Thanks. | |
Hi, all i am new on Web Development. I know there have a lot of articles about this subject on internet. But just want to ask for some experts in DANIWEB. What's their feeling and tips after many years web developing. Now i feel like: My biggest problem is the … | |
Re: Here is my advice: Correct me if i am wrong. [code=c++] class MYLIST { private: int *front; int *end; int *current; int size; int elements_value; int top; public: MYLIST() { //constructor is here, initialize your private elements. } ~MYLIST() {} void insert_front(); void insert_after(); bool empty(); void display();// this one … | |
Hi, all Like i asked before, This thread is about Memory Leak. I am a beginner in c++ and want to become a senior programmer. When i was coding, i found the memory leak is happening everywhere and maybe some senior programmer also have this problem. So i want to … | |
Hi, all i am reading some memory leaking problem articles now. Here is one question i can't understand: [code=c++] char *a= new char[10]; char *b= new char[10]; b=a;//pointer assignment delete []b; [/code] In this article, it mentioned that the pointer assignment have side-effect and we couldn't delete pointer b from … | |
Hi, all i have big assignment and don't have any compiler problem just have runtime bug--this make more headache. Here is the driver; [code=cplusplus] int main{ int * values2 = new int [ARRAY_SIZE * 2]; values2[ARRAY_SIZE * 2 - 2] = 8; values2[ARRAY_SIZE * 2 - 1] = 5; stack.pop … | |
Hi, my company have a big project now. Which we have some video detection software and could create some investigation figure. We want to do plug-in into the Powerpoint and i am kind of junior here. But i really want to do more in my company. So i want to … | |
Re: Hi, i test your code and i was thinking(don't know weather its correct or not) maybe for the greatest function you should do in this way: [code=c++] if(case 'A') { cout << "Enter the number of numbers to be compared. \n"; cin >> numbers; for(int i=0; i< numbers; i++) { … | |
Hi, all. I am learning Web Design now. And my course is about dynamic website and the script is php, xml, html, sql and so on. So i want to have some idea about which software platform i should use to design my website. I have dreamweaver, PHP Editor. So … | |
Hi, just want to know which software is the best for PHP. I use PHPeditor and Notepad++ So how about you guys?? | |
Hi, all I want to make my website search able and search easy on google on other search website. So is the code <meta name="keywords" content="something"> could really help me?? Or there have other tips to do that. Thanks. | |
Hi, all. i installed the XAMPP and run the [url]http://localhost[/url]. It seems fine for me and it show some welcome and "it works" information. But when i click SQL Admin, it couldn't run correctly. It always have some error information show up. the problem is like the attachment show up. … | |
Hi, all i have the assignment about program which reads in integers from cin until the user enters a non-integer (a character or EOF), then print out the average. Its pretty simple assignment but i am kind of new. So the following is my code and seems like have some … | |
Re: your code is hard to read use the [ICODE][/ICODE] button to organize the code | |
Hi, all I am new in this forum. These days i was thinking improving my website. I review a bunch of website and find my website are all using tables. So is there have some could answer me weather using table to write and design a website could cause problems?? … | |
Re: read your code and have some personal suggestions about that: is it better to have different classes like [ICODE]class libmembers { }[/ICODE] [ICODE]class libusers { }[/ICODE] [ICODE]class book { }[/ICODE] ?? | |
| |
Re: i test your program, here is some suggestions: 1) use int main() instead of void main() 2) the first menu of the switch should do the menu 1 first and then menu 2 so if at first i choose menu 2 at the first time it will cause problem. 3) … |
The End.