- Strength to Increase Rep
- +9
- Strength to Decrease Rep
- -2
- Upvotes Received
- 70
- Posts with Upvotes
- 67
- Upvoting Members
- 53
- Downvotes Received
- 23
- Posts with Downvotes
- 21
- Downvoting Members
- 20
Hi guys ))
- Interests
- CODING.. OOP.
- PC Specs
- ubuntu 14.04,Macbook Pro 13inch retina, QT5(Monster)
611 Posted Topics
Re: [QUOTE]In my HTML-page I am using following HTML + PHP-code: Today is: <? print(Date("l F d, Y")); ?>. I would expect to see: Today is: monday October 4, 2010. or something like that. The only thing I see is: Today is:. (mind the dot at the end.[/QUOTE] Do this.. [CODE]In … | |
Re: As Gris said. I will do th same. Sometimes the problem as very coders faces is not the code but logic and with a litle thinking can help solve our problems. You designed a very nice menu but complicated a simple exit. I just wonder how you couldnt see this … | |
Re: Another flavour....;)[CODE]def main(): print len([x for x in raw_input("enter a phrase:" ).split()]) main() [/CODE] | |
Re: You are contributing the following post: This is very simple. lets say you got table1, table2, table2. There are several ways to query mysql server, thus inner join, left join and right join. There is another easy for noob. check this out. [CODE]$query="SELECT * FROM table1,table2,table3 WHERE table1.t1_ID=table2.t2_ID AND table2.t2_ID=table3.t3_ID"; … | |
Re: All these scripts will start a new python instance. I think there must be a well developed scripts that check to see that a script instance has termiated before starting a new one. However maybe the poster does not need this. just give a shout if needed :) | |
Re: Next time show some code ok? `int foo = sizeof(array)/sizeof(int);` | |
Re: Can you atleast show some code mate.? We dont do homework here. We assist with homework. | |
Re: So maybe post your code and we can start from there. Also without any experience in signals and slots, You do not have any chance in GUI. Thats the whole point of GUI. | |
Re: You can also try this. This is according to your post > hello i'm trying to figure out how to write a program in c++ that check when i insert a password and force me to add at least 2 capital letters and 2 numbers in the password (you've seen … | |
| |
Re: > yes I got it...I did a basis mistake...I should include the header files in the begining. The basic logic is yes. | |
Re: You may wanna change your class name to say txt or whatever. Array is a C++ lib. MosChops just warned you aboout that. Now add change to say class txt and add this code. enum {MAX_INT=5};// global enum bool operator ==(txt a){ return a.getSize() == getSize(); } const int getSize(void)const{ … | |
Re: This is not automatic but easily doable. You now have the filtered records, You need to get all the filtered records by id, Use the id to change/update all the filtered records | |
Re: And what do you mean by manually? Please explain.... | |
Re: Why String^ to just a string?? change that. | |
Re: I think its better to use sort() from the algorithm lib. C++11 has make the language more rubost and powerful. I advice all the newbies to have a better grisp of the algorithm lib. Most of your woes you are facing are all done. Algorithm lib must be your household … | |
Re: Check your logic up. Use this to get the idea... #include <iostream> using namespace std; int main() { bool ff = true; short tt; short count=1; while(ff){ for(tt = 0 ; tt < count ; tt++){ std::cout <<"*"; } count +=5; std::cout<<endl; if(tt >= 50){ ff= false; } } return … | |
Re: Can you paste some results you get after running your code here. I think you are talking about how to format the data for use. I stand to be corrected anyway. | |
Re: try this. very simple[CODE]import time boom=59 while boom >0: time.sleep(1) print(boom) boom -=1 [/CODE] | |
Re: In your int main function you must return a value. int main always must return a value. | |
Re: 1. Show your code 2. Can you tell us what you intend to do with the url link later? eg. download an image file etc... | |
![]() | Re: use this #include <iostream> using namespace std; int main() { int foo []={4555,1,56,2,7,4,5,60,7,8,9,90,8,12}; int temp; for(int i =0; i< sizeof(foo)/sizeof(int); i++ ){ for(int c =0; c< sizeof(foo)/sizeof(int); c++ ){ if(foo[c] > foo[i+1]){ temp = foo[c]; foo[c]=foo[i+1]; foo[i+1]=temp; } } } std::cout <<"\n"<<"\n"; for(int &d : foo){ std::cout <<d <<std::endl; } … |
Re: I have checked with your idea on your google code hosting page. I think its very interesting concept. I have downloaded your demo and source code to play with it.I will get back to you ASAP. | |
Re: First of all your your design or approach to your idea is wrong. you must understand or read more about templates. Every template must be initialized with a data type. 1.Example: in the main I don't see that. Eg. Node<?> *foo. Etc. 2. Your there is no data in your … | |
Re: So what is your problem now?? Do you have any issues?? | |
Re: I like personally the wx.FlexGridSizer than all the sizers. with FlexGridSizer and the normal wx.BoxSizer you can make layouts that you realy desire. ;) | |
| |
Re: He must be very rich by now. | |
Re: ok i will be very brief with my answer. Your question: > since "state" is a pointer, why doesn't -> work? ptr[i] -> state = num; // doesn't work. why? Yes it will work only if you understand how pointers work. 1. when you operate on pointers like `*ptr[i].state=num;` you … | |
Re: There are 2 things to do according to what you wanna achieve. 1.Bring `double ranum = rand()%11;` line 7 on the first line in the void loop function. or2. make `double ranum = rand()%11;` a global declaration as you have been advised. Also i just wanna know how your programme … | |
Re: You can not simply connect to your database on another system like that. There must be a contact or a server on the remote system that you will use to open the way to the inner operation. This is simply done by running a server on the remote system that … | |
Re: We help with your homework but not doing them. please show some effort first. | |
Re: `samsondadson3` on line 18 the return statement must not be inside that bracket. Return must be inside the main's as it is returning `int main()` fuction. | |
Re: Are you talking about this? Well show some code next time. We are here to help not to do your homework. float recSq(float x, float y){ return x*y; } | |
Re: That is the power of precedence. The multiplication will take the power. thats `int y =a-b++ * --b;` you need to put them in a correct arragement depending on what you want to achieve such as. 1. `int y = (a - b++)*--b;` 2. `int y = a-(b++ * --b);` … | |
Re: Master when do you need your programme? How soon? Anything again master? | |
Re: > Imagine you are developing a software package that requires users to enter their own passwords. > > Your software requires that user’s passwords meet the following criteria: > > • The password should be at least six characters long. > • The password should contain at least one uppercase … | |
Re: And you expect us to do that for you dont you master? Sure we will.. just give us one more month please master. | |
Re: try and learn cpp very well and try not to rush your way through. take your time to understand well the language and other goodies will follow. | |
Re: `void Database::getPNResults(bool* bErrors)` can you show how you called this fuction in your code? Also understand the basic use of a pointer. Pointers on creation are initialized to point to a specific memmory or points to a 0/NULL. I stand to be corrected but If you dont follow this basic … | |
Re: On the other hand i like the idea of recursion. Gone were the old days where the bigest ram was 64mbit. Now we have better memmory and processor speed. I dont see any difference in doing a 2x for loops and or a while loop and the recursion. I think … | |
Re: Show some code first.. Provide some code and we will work from there. ![]() | |
Re: Can you show us your code ... Show us something. Shall we share some ideas?? | |
Re: We dont do no homework here. Help yourself service only. | |
Re: can you post your code here if you dont mind.? we need to read through your code.... possibly run it ourselves ok |
The End.