168 Posted Topics
Re: try this code [code] if (status == 'P') { time_remaining - = 1; if(amount >= 10000) due_flag = true; } else if (status == 'O') { time_remaining = 0; warning_flag = true; } [/code] I really cant tell wat exactly ur expecting , if u could enunciate ur problem statement … | |
i was just trying the new DBMS , herd it was kinda faster than MySql in some case. the below is the code i have taken (Standard example) and still i am getting error. [code] <?php // create new database (OO interface) $db = new SQLiteDatabase("db.sqlite"); // create table foo … | |
How to restrict the size of image thats to be uploaded . I am creating a small social network and have space constraints . So , i dont want to restrict the image size to be confined to certain limit. | |
I have an array, which i want it common to both the f1.cpp and f2.cpp . since f1.cpp will be used to store some values in it and f2.cpp has to use it for some other computations , is there any way i can share these 2 variables . well … | |
Well i got some weird problem here . We have a web team and we disributed our work equally , where i mainly created the web application in php and i am glad its working file . But for simplicity purpose i used basic html tags and created the web … | |
i have written a code for the user to select his area of expertise with respect to fields. i am able to display selected checkboxes for those fields. But when i want tio process further like when the user clicks on the particular checkbox and then submits i am not … | |
i want the user to enter the name in the query and only after entering the name the next input text appears. Unfortunately it doesnt work the way i want it to. here is the code [code] <?php // formtest2.php $flag = 0; if (isset($_POST['name'])) { $name = $_POST['name']; $flag … | |
Re: Its an integer array pal . The right way to print is to put it inside a for/while loop . [code] for ( int i= 0;i <12 ; i++) cout<< list[i]; [/code] | |
Re: well there are a lot of ways in which u can do . I think it would be prudent to , learn a bit more about functions and classes in c++ . That will give u a fairly good idea on how to organize as well as write secure code … | |
Re: well .. u could have posted the code in here using the code tags .. Besides , its would be prudent to enunciate your problem , or else its difficult to find help in here. | |
I have been working with opengl for past 2 months and find in very difficult to manage with it . The actual code for rendering the image is very less , compared to the code written to handle the view and other opengl attributes / controls. Is there any library … | |
Re: As Waltp said , u gotto create a new file with .h extension and then transfer the complete class code into it . In the main program call #include "counter.h" and then create the class object to use all the methods inside it. | |
Well ,it may sound a bit preposterous , but i have a pretty weird problem (which i have solved many times , dunno why it isnt working for me this time ) . I have a data file from which i randomly pick up row nos . The data file … | |
Well i have been following the google OS (where in work is still going on ) for a pretty long time and when i have been through their whitepapers where they mentioned about SPDY protocol (which is an extension of TCP/IP and not to mention pretty faster than the conventional … | |
I have a 160 gb partition in my system and accidentally i have deleted all my movie files using shift + delete . Is there any way i can recover the data back somehow. its mainly all video files . | |
I got this silly problem and honestly dunno why it isnt working . The scenario is i got a text file with information and i got to print the ASCII equivalent of the text into the screen . While attempting to do so , i am getting the binary equivalent … | |
Re: Well for graphic programming there are 2 major tools (well not exactly tool) 1. OpenGL 2.DirectX Since u want windows oriented ,it would be prudent to go with DirectX . This will get u started. [URL="http://www.two-kings.de/tutorials/dxgraphics/"]http://www.two-kings.de/tutorials/dxgraphics/[/URL] | |
Re: Well , i am not sure of a API whether i exist or not and even if there exist an API , the purpose will not completely be fulfilled . For example : Even if u write a program which doesnt allow to access internet after a time , the … | |
Re: Well one thing i would suggest would be in every case , ur opening the file and then closing it , that generates redundant code. [CODE] else if (a == 2) { string fileData; ifstream itemFile ("item.txt"); itemFile.close(); [/CODE] [CODE] else if (a == 3) { ifstream itemFile ("item.txt"); itemFile.close(); … | |
Re: May be this would help u [/url][URL="http://www.sgi.com/tech/stl/priority_queue.html"]http://www.sgi.com/tech/stl/priority_queue.html[/URL] | |
Re: >4 and 7 is also prime number but it is not in the output.. 1. 4 Cannot be a prime number . 2. At line 34 , there is no need or resetting it to true . 3. At line 19 interate the "i" from 1 to n I guess … | |
Re: i think , this would help u . [URL="http://easybmp.sourceforge.net/"]http://easybmp.sourceforge.net/[/URL] its was of great help for me. | |
Re: Well 1. , if i am not wrong ur working on turbo C compiler . 2. there is a help documentation in that itself on how to use the clock function. 3.it would be better , to print (end-start)/clk_tck 4. The output u will fetch will be 0 seconds for … | |
Re: Well i am not an expert when it comes to java thread , but i guess this 1. u have mentioned a catch block , but i dont see the code for try block. 2. when the thread.sleep() is executed , the other concurrent thread must start running , provided … | |
Hello everyone , i am trying to create a multi threaded web server, i did the basic part (socket programming ) successfully . Ref: [URL="http://www.daniweb.com/code/snippet217312.html"]http://www.daniweb.com/code/snippet217312.html[/URL] now , the next step , i am trying to establish it by making it multi thread or repetetive polling for client request (yet to … | |
Well for past few months now i have been doing my research on encryption cipher and i have tested on plane text , its not a problem . If i have to test the fastness of the cipher i got to try it on movie and audio files and check … | |
i am currently working on creating mathematical models for my research and want a non linear equation solver library which i could integrate with my program . i searched the web and found op++ which wasnt a free program . | |
Re: actually i just tried executiing your code and i got various errors in it. [QUOTE] undefined reference to `WSAStartup@8' D:\socket programs\prog1.o(.text+0x124):prog1.cpp: undefined reference to `socket@12' D:\socket programs\prog1.o(.text+0x13a):prog1.cpp: undefined reference to `gethostbyname@4' D:\socket programs\prog1.o(.text+0x14d):prog1.cpp: undefined reference to `htons@4' D:\socket programs\prog1.o(.text+0x19f):prog1.cpp: undefined reference to `connect@12' D:\socket programs\prog1.o(.text+0x203):prog1.cpp: undefined reference to `send@16' D:\socket … | |
i DO have searched the google to do multithreaded programming using c++ and found there were few like the ones supported in BOOST libraries and zthreads .. I would be glad if u guys could help me in suggesting much better ways in doing so . | |
i was going through many ruby books and found this amazing text editing code (its just 17 lines ) provided u use Shoes toolkit. The code is working fine with no errors . but its only able to read (open) and input file but not save the text u wrote … | |
Its been a while i have been writing sequential programs . I have started working on parallel programming using C++ . Since to run those parallel programs in several machines isn't a feasible idea for me , i was wondering if there exist any parallel program simulator which executes parallel … | |
Re: well i guess ur asking if total expenses increases more than 50,000 ..? In that case u can just check the variable total.. Which is been calculated in line 45 of your program . Just put a condition checking for the expense to be less than or equal to 50000 … | |
Re: Well i used to get linker errors often , when the paths weren't set. Check ur directory ( in ur turbo c++ go to options and directories ,check whether u have given paths in include directories and the rest in it ). | |
Re: Well u got to show at least little bit of ur code to expect help , no ones gonna code for u from scratch. for a start using double link list the below links can help u . [url]http://www.cplusplus.com/reference/stl/list/[/url] i hope ur allowed to used STL . | |
Re: well in the code set i = 2 (for 3rd row ) and iterate only for the j column and set b[i][j] = 0 ; [code] i =2 ; // for the 3rd row for( j = 0 j<5;j++) b[i][j] = 0; [/code] i guess this should work | |
Re: may be using switch , u can give me options on wat he want to do . And then call the corresponding functions for the option he chooses. | |
Re: a similar problem has already been asked in this forum [URL="http://www.daniweb.com/forums/thread238596.html"]http://www.daniweb.com/forums/thread238596.html[/URL] i guess u will find ur answer there | |
Re: Well i guess u will get more apt answers in [URL="http://www.qtcentre.org/forum/"]Qtforum[/URL] It would be still efficient if ur familiar with python cuz , i have seen many nice applications which are built using PyQt | |
Re: In ur turbo C there exist a include folder which contains many header files , ur supposed to place the desired header file in that directory. PS: For god sake stop using turbo , u have much better compilers to work with. | |
Re: Well help will only be provided if u could show your code ... we cannot do ur home work from scratch. | |
Re: The OP wants to check the existence of 0 in the number only if loop wont suffice , u will have to iterate within a while loop and keep finding the last significant number one after the another and check whether that number is equal to 0 or not. [CODE] … | |
Re: Since u only want the numbers to be recovered , u must be aware of the ascii equivalent for the number 0 - 48 ---------- ---------- 9 - 57 i suggest u make a char variable , fetch the input character vice and then check the ascii equivalent of the … | |
In many of the forums i have observed that , we can re direct the page like thanks for logging in u will be redirected in 5 secs and eventually the 5 secs decreases to 0 and the page gets redirected. In my php code i could redirect the page … | |
Re: Well i guess , when it comes to WEB ; scripting languages like PHP can be more efficient than C++ , although i admit that i was astounded when i learned about [B]blat[/B] , but i guess other scripting languages can lessen ur burden . | |
Re: It would be better to first understand the basic of OSI layer and how things work in various levels.. Later i guess u gotto know about NIDS and NIPS systems (network intrusion detection / prevention systems ) . and finally jump over to something complex as firewall. | |
Well , i have created a simple chatting interface . i would not call it a chatting interface actually cuz i had something else in my mind and finally landed on something else . i would like if you guys could excecute it and help me making it a real … | |
Is there any distro which has pre built . LAMP JDK and the graphic some wat like Atlantis | |
i have installed mysql , and JDK . I wrote the following code to test jdbc . But it didnt work [code] public class Test { public static void main(String[] args) { try { Class.forName("root.mysql.jdbc.Driver").newInstance(); System.out.println("Good to go"); } catch (Exception E) { System.out.println("JDBC Driver error"); } } } [/code] … | |
i have currently 3 checkboxes. But the thing is i only want 2 of them to b processed i.e if check box 1 is checked then the 2 one must get blocked thus by preventing the user to check it. similarly vice versa. (this must be applied only to 1st … | |
Re: Well recommend openGL , since its got more grpahic options and u will find much more help in that. i guess these links might help u [URL="http://www.tenouk.com/cncpluspluslibrary.html"]http://www.tenouk.com/cncpluspluslibrary.html[/URL] [URL="http://www.videotutorialsrock.com/"]http://www.videotutorialsrock.com/[/URL] [URL="http://www.swiftless.com/tutorials/opengl/opengltuts.html"]http://www.swiftless.com/tutorials/opengl/opengltuts.html[/URL] i guess these links might give u the nudge ur looking for |
The End.