181 Posted Topics
Re: [QUOTE=abhishek2301;1750302]Can someone help me? How to design a php page with an image and a user-clickable button which will trigger a different php function in a simple fashion! The code in my first post runs through some error as described. Thanks![/QUOTE] Honestly it sounds like you need to do more … ![]() | |
Re: [QUOTE=masijade;1705693]Look at those compiler warnings. The compiler will also suggest to you an argumnet to use during compilation. Do so, and it will tell you [i]exactly[/i] what needs to be changed.[/QUOTE] This ^^. Most likely you will have to use the xlint switch and specify deprecated. | |
Re: Ok well it really all depends if you want this to be a browser based chat client or a desktop based client. If you want it to be desktop based you can user Frame or JFrame and if you want it to be browser based use Applet or JApplet. | |
Re: I'm definitely not a PHP wizard but good old OOP rules says your function is declared as static. You can't use the "this" reference in a static context. | |
Re: I'm not sure if it is just an issue with my browser but you're code is almost un-readable. One question I do have is why would someone be able to select both male and female? Another question is how did you generate your WSDL? I'm assuming you wrote the service … | |
Hey All, I have been diving into the sweet (yet sometimes unforgiving) world of RESTful web services lately and I have come across an excellent tool for testing your requests before implementing the programmatic solution. I know Soap UI has a REST based component but I find it a little … | |
Hey All, I didn't know where else to post this so if there is a better place let me know and i'll move it. Anyways, I have been diving into the sweet (yet sometimes unforgiving) world of RESTful web services lately and I have come across an excellent tool for … | |
Re: Java has pointers BEHIND the scenes. They are not accessible to the programmer using the language. Remember that Java is built upon C/C++. Java is a managed language, hence no pointers. When you instantiate an object using the "new" keyword the C function "malloc" is used to allocate memory on … | |
Re: When you do a deep copy you need to copy ALL instance variables as well. In this case you are copying the char* but none of the int's | |
Re: I can already tell that you didn't try to compile it since it does have errors [CODE=java]public bool equals(int x, int y)[/CODE] There is no "bool" type. Should be... [CODE=java]public boolean equals(int x, int y)[/CODE] | |
Re: I don't know if you mean is there a way to "hack" into the database or if there is an API to access it. I would say No to both questions. | |
Re: Also see this for definition of recursion: [url]http://www.toves.org/books/java/ch18-recurex/index.html[/url] | |
Re: I got involved in several open source Android projects and I am now working on my own (Available soon in an app market near you). It's a lot of fun so far and mobile development is now a big part of this industry. Might want to give it a shot! | |
Re: Ok first things first... please use code tags. This isn't too bad to read since it is so short but it's still messy. As far as the logic is concerned, you could go a lot of ways with this. You could use a Map and link the values to the … | |
Re: You can also do: [CODE=java] if(grades[i] < 60) // print 1 star else if(grades[i] < 70) // print 2 stars // etc etc ... [/CODE] | |
Re: [QUOTE=Ezzaral;1625442]Your method can easily check versus size and return the minimum of the requested number or the remainder of the list. As Norm already mentioned, you just need to keep track of your current list index.[/QUOTE] Exactly... for example: [CODE=java] // Something like this remoteBean.getPreviousTweets(5); // More code here // … | |
Re: This is not the preferred way to get a character and it won't work if you are actually trying to get a string: [CODE=c++] cin >> userInput[26]; [/CODE] It should be: [CODE=c++] cin >> userInput; // Get a string [/CODE] Or this: [CODE=c++] cin.get( userInput[26] ); // Get a character. … | |
Re: [QUOTE=Sonia11;1555528]The entire program was working perfectly with the same function... but now I just did multiple inheritance for one class and this is what I am getting. And yes, according to me, region is valid in all the cases. Wouldn't you mind looking at the code?[/QUOTE] We need teh codez!!! | |
Re: That is the addition assignment operator... You are taking the value of c and adding it to the current value of sum. So if sum is 5 and c is 2 then after that operation sum will equal 7. | |
Re: You never actually stated a question...??? What do you actually need help with? If you post code you also need a question to go along with it. | |
Re: Failed? Seriously? Whoever said C++ was a failure doesn't know what they are talking about. Some people prefer to use other OOP languages over C++ because they are easier to work with and faster to learn (C++ has a lot of roots in C so it is not as user … | |
Re: I am a little fuzzy on this subject but I believe the problem lies in the fact that the copy constructor is not always called by default when using the assignment operator on your objects. Your best best is to either manually override the assignment operator. Feel free to correct … | |
Re: It is not finding the Form1 object in the Form1.h header file. Is that the name of the object? | |
Re: [QUOTE=thelamb;1543976] Also, please don't be so lazy to write 'd' for 'the' - it is very annoying to read sentences like that.[/QUOTE] This^^^ | |
Re: [QUOTE=abhimanipal;1543876]Dont & and * cancel each other out ? [CODE] int main() { int x = 10; int *p1 = &x; printf("p1 %p\n",p1); printf("*p1 %d\n",*p1); printf("*&p1 %p\n",*&p1); printf("&*p1 %p\n",&*p1); return 0; };[/CODE][/QUOTE] No because x is not a pointer you need the address of operator when assigning it to an … | |
Re: You need to declare A as a namespace. Then you can put [CODE=c++]using A::B;[/CODE] once and just use the class name. | |
Re: In your init.cpp file you are re-declaring the class. You do not need to do this since you already prototyped it in init.h. In init.cpp it should be: [CODE=c++] void Initialization::test() { // Code for test() method here } [/CODE] | |
Re: Is test.h still in your source directory? That error could also be telling you the file is missing or corrupted. | |
Re: Lolz this is priceless ^^^ | |
Re: One is using the constructor to initialize the value of the string object and the other is using the overloaded operator "=" to assign that value to the string object. | |
Re: [QUOTE]This constructor needs to be used to reference the random number. [/QUOTE] This doesn't make sense. Constructors are called on the initial creation of the object. You can't "call" the constructor to have it perform a function (That is what the class's methods are for) In order to get the … | |
Re: [QUOTE=jackmaverick1;1487706]ok, base isn't a method, and I'm smart enough to know that! so, here's the definition: [CODE] class cmd { string base; char extension[80]; }; [/CODE] yes, that's really all there is, it's just a way for me to organize the commands.[/QUOTE] Wooah don't get sassy or nobody will help … | |
Re: Like this: [CODE=c] DialogBox(hInst, MAKEINTRESOURCE(IDD_DLGINTRESOURCENAME), hWnd, reinterpret_cast<DLGPROC>(nameOfDlgMessageHandlerProc)); [/CODE] | |
Re: Can you post more of your code? There is really not enough here to troubleshoot your issue. Also, when exactly do you get the assertion failure? After you type some characters and press [ENTER]? Before that? | |
Re: What API are you using? Win32? MFC? CLI? | |
Re: Good luck trying to learn the Win32 API using a resource like the MSDN. MSDN should never be used as a learning tool, only as a reference. If you want to learn the Win 32 API I would start off with this book: [url]http://www.amazon.com/Programming-Windows-Microsoft-Charles-Petzold/dp/157231995X/ref=sr_1_5?ie=UTF8&qid=1298592783&sr=8-5[/url] | |
Re: Seems like people trying to learn programming get lazier and lazier every day.... | |
Re: [QUOTE=fabricetoussain;1481677]ok so i have this program here i had to finish, and it was for input and output files, i wrote everything, and even wrote the data.in and data.out files but when i run it i get nothing in return. do the files have to be in the ".in" format … | |
Re: Another question I have is why are you modding constants? 7 % 10 is always going to be 7 so why not just put 7? | |
Re: Dear god people this guy is a troll.... T-R-O-L-L..... like was said before the reason he is banned from the other sites is because they dont want him around. I have seen other threads by him and the whole time it is just the OP acting stupid. The reason he … | |
Re: No he means not agree because of the following line: [CODE=c++] cin >> input[1] >> input[2] >> input[3] >> input[4] >> input[5]; [/CODE] This is saying that the array has up to 6 elements but it is defined as int input[5]. This means that calling input[5] will cause the program … | |
Re: What values are you entering when running the program? | |
Re: [QUOTE=maikens;1473261]You need to get rid of the semi colon after the function header void write_output_data(void) Otherwise the compiler thinks it's a function declaration.[/QUOTE] This^^^ Also, [CODE=c++] void func_name(void) [/CODE] is a valid c\c++ construct. | |
Re: I am not sure how far along you are but this is a great example of when to use polymorphism. If you think about it, Spades, hearts, diamonds and clubs are all cards so why not make a base class Card and then child classes for the different suits. Ex. … | |
Re: [QUOTE=myrk;1357958]Hello, Can anyone suggest a GUI library that meets the following criteria? * Cross-Platform * Doesn't control the main loop * Not 100% object-oriented; similar to Xlib :) * Not many pointers please (like FLTK that every object is a pointer) * Free to use for closed source and open … | |
Re: [QUOTE=triumphost;1381845]well it cant end... its an antivirus... it stays running on the system[/QUOTE] Like WaltP said, the system call waits for the AvastUI.exe program to return. The rest of your program won't run until the system call returns. | |
Re: This is exactly why I think a screening process should be put into place before we let people post/ make new threads on DW :/ |
The End.