181 Posted Topics

Member Avatar for abhishek2301

[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 …

Member Avatar for diafol
0
455
Member Avatar for hannah shrn j

[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.

Member Avatar for JamesCherrill
0
272
Member Avatar for cRazy604

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.

Member Avatar for cRazy604
0
236
Member Avatar for sacarias40

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.

Member Avatar for sacarias40
0
359
Member Avatar for StudentCS

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 …

Member Avatar for hag++
0
562
Member Avatar for Gabit
Member Avatar for hag++

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 …

0
83
Member Avatar for hag++

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 …

0
83
Member Avatar for hackit

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 …

Member Avatar for hag++
0
120
Member Avatar for Johnny666

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

Member Avatar for raptr_dflo
0
185
Member Avatar for ITHope

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]

Member Avatar for dimasalang
0
249
Member Avatar for ITHope

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.

Member Avatar for ITHope
0
83
Member Avatar for chiiqui

Also see this for definition of recursion: [url]http://www.toves.org/books/java/ch18-recurex/index.html[/url]

Member Avatar for chiiqui
0
139
Member Avatar for mcddewitt

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!

Member Avatar for hag++
0
190
Member Avatar for Nox_1031

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 …

Member Avatar for Nox_1031
0
233
Member Avatar for Bowsan22

You can also do: [CODE=java] if(grades[i] < 60) // print 1 star else if(grades[i] < 70) // print 2 stars // etc etc ... [/CODE]

Member Avatar for hag++
0
254
Member Avatar for bangor_boy

[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 // …

Member Avatar for mKorbel
0
146
Member Avatar for woody0114

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. …

Member Avatar for woody0114
0
939
Member Avatar for Sonia11

[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!!!

Member Avatar for mike_2000_17
0
174
Member Avatar for hawita

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.

Member Avatar for Fbody
0
316
Member Avatar for TheSassyDragon

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.

Member Avatar for Lerner
0
290
Member Avatar for sha11e

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 …

Member Avatar for sergent
0
214
Member Avatar for L0s3r

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 …

Member Avatar for L0s3r
0
190
Member Avatar for msrox
Member Avatar for Ancient Dragon
0
427
Member Avatar for IndianaRonaldo

[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^^^

Member Avatar for IndianaRonaldo
0
348
Member Avatar for montjoile

[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 …

Member Avatar for montjoile
0
294
Member Avatar for Jsplinter

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.

Member Avatar for Jsplinter
0
225
Member Avatar for murnesty

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]

Member Avatar for murnesty
0
146
Member Avatar for arun srinivaas
Member Avatar for geekme

Is test.h still in your source directory? That error could also be telling you the file is missing or corrupted.

Member Avatar for hag++
0
77
Member Avatar for triumphost
Member Avatar for sgw

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.

Member Avatar for arkoenig
0
124
Member Avatar for Szeth

[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 …

Member Avatar for ravenous
0
376
Member Avatar for jackmaverick1

[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 …

Member Avatar for jackmaverick1
0
121
Member Avatar for katokato

Like this: [CODE=c] DialogBox(hInst, MAKEINTRESOURCE(IDD_DLGINTRESOURCENAME), hWnd, reinterpret_cast<DLGPROC>(nameOfDlgMessageHandlerProc)); [/CODE]

Member Avatar for katokato
0
1K
Member Avatar for prog_newb

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?

Member Avatar for jonsca
0
180
Member Avatar for thecoolman5
Member Avatar for spoonlicker

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]

Member Avatar for hag++
-1
86
Member Avatar for zxzniczxz

Seems like people trying to learn programming get lazier and lazier every day....

Member Avatar for hag++
0
149
Member Avatar for fabricetoussain

[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 …

Member Avatar for triumphost
0
295
Member Avatar for cppgangster
Member Avatar for schrope

Another question I have is why are you modding constants? 7 % 10 is always going to be 7 so why not just put 7?

Member Avatar for Crutoy
0
183
Member Avatar for spoonlicker

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 …

Member Avatar for Nick Evan
-1
229
Member Avatar for Tinee

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 …

Member Avatar for Ancient Dragon
0
286
Member Avatar for akase2010
Member Avatar for caut_baia
0
226
Member Avatar for eclipse2012

[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.

Member Avatar for hag++
0
4K
Member Avatar for jackmaverick1

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. …

Member Avatar for jackmaverick1
0
1K
Member Avatar for myrk

[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 …

Member Avatar for Stefano Mtangoo
0
709
Member Avatar for triumphost

[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.

Member Avatar for triumphost
0
153
Member Avatar for mariuam

This is exactly why I think a screening process should be put into place before we let people post/ make new threads on DW :/

Member Avatar for hag++
-3
105

The End.