581 Posted Topics
Re: Check out what the actual error.. Print out `mysql_error()`. And secondly, in the mysql_query(); You seem to be missing the "$" for **user_id_db** & **image_des**. | |
Re: Convert your float values into a String using the `str()` function and then try to write it. This is because the write() only takes string arguments. | |
Re: Hello, Sorry to disturb, But i am not able to understand the process in which the string will be reversed i mean. sky reversed : yks But how do we obtain that with the upper code. Could anyone explain me why cout<< str[n-1] is used and what n is? | |
Re: Print the stacktrace of the Exception. That might help you out on why it is unable to go ahead with the delete or drop statements. Secondly I believe that that 2,3 in your list of possibilities cause Syntax Errors [code]String writeString3 ="DELETE FROM"+t+"where NAME="+t ; [/code] [code] String writeString3 ="DELETE … | |
Re: In the second constructor, you seem to be initializing 'parentNode' to point to the parent of the Node* p ie: p->parentNode, however in the first constuctor, you directly set the parentNode(p). I am unsure about the whole architecture of the implementation, But I was wondering if the following would do … | |
Re: Your Graphics variable is set to null. Therefore a null object is passed to the paintComponents(); [code] Graphics g=null; [/code] I guess you need to create a new Graphics object like below. [code] Graphics g= new Graphics(); [/code] | |
Re: Hi, I am unable to actually understand the desired output that you wish to receive from the above program. I would just like to point it out to you that your [icode]while[/icode] loop doesn't enclose the switch statement as well. Thereby your code would just take input and print nothing … | |
Re: Hi, >> So then I comment out the "delete" in these 2 methods, and all of a sudden the code works just fine Firstly I would like to point out that your code is not complete right now. I think it would work for this test-case in main(). However try … | |
Re: Well If You dont have an exact limitation to a particular dataset i prefer that you use a vector for storing all the numbers, And May be a vector array of vectors. And filling i guess you can do it by taking them from a filestream or you can fill … | |
| |
Re: [code] $raceid = $_POST['raceid']; [/code] For multiple selects, this might actually return an array. so you could do something like this . I think... [code] <? if (isset($_POST['submit']));{ $raceid = $_POST['raceid']; $steerer = $_POST['helm']; $swimmer = $_POST['crew']; $boatywoaty = $_POST['boat']; $knowtheboat = $_POST['sailnumber']; $todaysteam = $_POST['racecrewid']; foreach($r_id in $raceid) { … | |
Re: I dont seem to understand what exactly do you need help with. As far as I know. If you managed to write out all the above code. Changing it into the movie thingy wouldn't be much of a problem. | |
Re: If pause and resume is the case. I think I have an explanation for it. The first time the download manager makes the HTTP request to the server. The server then formulates another HTTP response with the total size of the file and some data. Once you pause it, maybe … | |
Re: Running a seperate thread doesn't gaurentee that the images would be loaded by the time [icode] repaint(); [/icode] is called. My speculation is that the JRE is putting on some kind of locking mechanism to the ArrayList until the [icode] il (ImageLoader) [/icode] thread completes its job. thereby paint() of … | |
Re: I see that you pretty much nailed the first 1 :). Now lets look at the next one. Doesn't it seem to be the exact reverse of the first 1 ? So if its the reverse, the starting values and the conditions in the loop also would be reversed right? … | |
Re: Welcome to Daniweb. Firstly, this post was 3 years old. You should have created your own Thread when posting your question. [quote]I had added mysql-connector-java-5.1.17.zip by right clicking the libraries of my project [/quote] I think you need to add the .jar file , not the .zip | |
Re: [code] int index_k[key.length()]; [/code] You cant statically allocate a dynamic array. | |
Re: Firstly, I do not understand what exactly are you wanting to do with [code] if (howMany > Vec[j]) success = false; [/code] You should try to focus on what exactly needs to happen, and how the code would get you there. Secondly, Check out line 23 in your first post. … | |
Re: Hey Kyren Your problem statement is quite simple. Just look at it in this way. 1, You need to count from 1 to a number 'n' and then count back from 'n' to one. This can be simply by 2 loops. 2, For a given number 'i', You need to … | |
Re: The Base Class pointer allows you to do many different things that can surely be used in different ways. 1) As Admiral Pimms suggested, you could change the state of the objects by keeping the whole function same. 2) You could have a [icode] std::vector<Base_Class*> [/icode] and then store Derieved … | |
Re: [B]>>My variable, int hours, is a global variable but is not used by main, however when I move this variable into my function, void dayNight (),(making it a local variable here) my function then fails to increment? Could someone please explain why this is? [/B] This is a question about … | |
Re: Next time please use code tags [code=C++] #include <iostream> #include <fstream> using namespace std; main () { int filename; cout << "Enter file name"; cin >> filename; ofstream myfile; myfile.open ("filename.txt"); myfile << "Writing this to a file.\n"; myfile << "000" << filename; myfile.close(); return 0; } [/code] There are … | |
Re: Your solution does have a logical error. Here's what you can think of as an algorithm. 1. set pointer to start of array. 2. use strstr( ) to find the first instance of the word. 3. When the word is found, increment the counter and then the pointer should be … | |
Hey all, I have a program(using wxWidgets & MySql++ on MINGW) that has to have some Bluetooth Interaction with an Android App. The problem is that I am having trouble finding a framework(API) that would help me send,recieve data over Bluetooth with other applications. I searched and searched all over … | |
Re: 1) If you want the program to work from anywhere on the system. And the file is surely found at the same path. you should prefer writing down the whole path. 2) If the file is in a subdirectory of your program directory. Consider progdir->subdir->abc.txt And you want to copy … | |
![]() | Re: Maybe you can use a static member variable and increment it by 1, everytime an object is created. (ie: Everytime the constructor is called ;) ) |
Re: Your code is currently [code] template<class elemType>void revElement<elemType>::display() { elemType std::vector<elemType>::iterator i = intList.begin(); for(;i!=i.end();++i) cout<<*i<<endl; cout<<endl; } [/code] THE variable i, is an iterator of the vector. therefore your compiler says that i(iterator) doesn't have any member function named end() therefore the [icode] i.end() [/icode] should be something else. | |
Re: Hi, Welcome to DANIWEB It would be better if you would tell us which parts are confusing you. Then MAYBE you will get faster replies | |
Re: Hello, Firstly a post is the correct option in which you should be asking for help. Code Snippets are rather ways to show your already working* code. Second of all, I would assume that the Jtable is being repeatedly added to the JPanel which are rather being accumilated on the … | |
Re: If you have never used return in your code before, Here's a tip; Go through the code that you have written. Then imagine the steps being executed in your mind 1 by 1.. Slowly you will come down to a point where the USER made SOO many wrong predictions that … | |
Re: Since your problem is now resolved. Please mark your post as solved. | |
Re: the function [icode] seekg() [/icode] is to move the get-pointer from position to position, On the other hand [icode] seekp() [/icode] moves the put-pointer. I assume that the put-pointer is used for writing into a stream where as the get-pointer is rather to just read through. [URL="http://www.cplusplus.com/reference/iostream/ostream/seekp/"]Seekp[/URL] This would clear … | |
Re: Considering the pitches in India,Bangla,Lanka are all kinda non-Bouncy. we can sure assure that 'spin' is the way to go. I WOULD like to give majority of the chance to the HOME-TEAM (India) and I would completely agree that South-Africa and Austrailia would pose major competitors for the cup this … | |
Re: Post in your code on what you're attempts were in solving the problem. There are lots and lots of IF's and BUT's when we take this question into consideration. Firstly I would like to ask you if the arrays being passed are of Constant Size, if so, the solution might … | |
Re: [url]http://www.daniweb.com/software-development/cpp/threads/70096[/url] The topmost thread of The C++ Forum (sticky thread). It contains several users contributing suggestions the books that they think is good for starting their advent into C++ You could pick some of them up I assume. | |
Re: I haven't done much of Win32 Programming. But am a bit familiar with it. I assume that the [b]text[/b] member-variable in the TextBox element stores the text. [code] System::Sting val=text_box->text; [/code] Now val holds the value of the textbox, but not in the std::string but instead, System::String. Now to convert … | |
Re: This might not work. set_default_size() mainly sets the size which can be ignored if the windows size request is larger than the dimensions, assuming that the size is larger than that of window size that you have assigned with set_default_size(); just wont work. I may be wrong as I have … | |
Re: In FriendClass.h, dont include MyClass.h. Instead specify that an object of MyClass exists [code] class MyClass; [/code] The compiler gives you errors because it is unsure whether FriendClass has the Function in it. Now as your main file is including both headers in the right order. It must work | |
Re: >>Get Out of Memory? I didn't understand what that actually means. If you are trying to read a Wide Character formatted file. You might want to consider the wstring and wifstream classes in the Standard C++ Library. | |
Hey Guys, I am developing an APP using WxWidgets and some other cross platform frameworks. Then there is a new need into the project to use Bluetooth as a transmitter of Data between 2 devices. I have been using the Mingw compiler all along for developing my app and suddenly … | |
Re: 'Value' is of type [COLOR="Red"]System::DateTime[/COLOR]the IsDaylightSavingTime() is available in the TimeZone Class. Hence you recieve an error. | |
Re: Post in your code and discuss the specifics of the problem please | |
Re: This firstly seems like JAVA code to me. However there are several optimizations that you can do in order to decrease the number of iterations that are taking place. One of them would be to decrease [code] i < num [/code] to [code] i < num/2 [/code] There are other … | |
Re: [QUOTE=van21;1480919]Please, help me with my assignment. Please, anyone with a big kind heart : write a c++ program to give the 30 students final grade in a course with the ff. grading scheme: there are five quizzes worth 20 pts. each, a laboratory worth 100 pts., and exam worth 100 … | |
Re: [QUOTE=gerard4143;1478298]Can you do it? Yes, its just a matter of building a string or strings containing the the compiler name and proper switches plus the files in question and then calling system(created_string).[/QUOTE] Following on the grounds of gerard. If u already have a batch file that does all the work … | |
Re: You are practically dividing by zero !! (5/9).. try (5.0/9.0) | |
Re: Well if you intend to use wxWidgets . [URL="http://docs.wxwidgets.org/stable/wx_wxfiledialog.html#wxfiledialog"]wxFileDialog[/URL] will help you get the path for the file you intend to open up. A simple text box can be used in order to hold the number , or there are other implementations such as [URL="http://docs.wxwidgets.org/stable/wx_wxspinctrl.html"]wxSpinCtrl[/URL] can be used. Then a … | |
Re: Makefiles are ways to effectively reduce the user burden by just executing one script which will perform the compilation for you. In order to run a makefile you will need to do the following 1) Make Sure that your MinGw compiler directory is in the windows global Environment variables. If … |
The End.