199,114 Archived Topics
Remove Filter ![]() | |
I have a couple of sentences in an array. I need to randomly display 1 of them. How can I do this? | |
Consider the following two function prototypes: void Func1(int&, int&); int Func2(double, double); -I need help completing the following C++ user-defined function Func3 -which prompts and gets an integer for the variable Option from user. -Func1 should be called when the value of Option is 1, - Func2 should be called … | |
I am trying to create a DialogBox in C++ .NET with both an "OK" button and a "Cancel" Button. I know how to just show a MessageBox with an "OK" button like this: [code] MessageBox::Show(this, "Message"); [/code] | |
I have some sentences in a 2 dimensional char array. I need to change to first letter of each sentence to caps. I was thinking of removing the first char and placing it into 1 array and the rest of the sentence into another array. run toupper on the first … | |
has anyone got an idea on how to change letters on the keyboard around. i.e make Q on the keyboard print P on the screen. | |
hi there guys ,, im have just a idiot asking ,, i have sql server 2005 express but im confusing for data work , where can i install that , into server or client , or both>>.??? i know how to basic program in SQL but configuring its merely little … | |
Hello, I recently signed up with a free hosting provider(apache, mysql, php). When I login through ftp, I go to my root directory which is web accessible. So where do I hide the files that I don't want to be accessed through the web? Such as database connection files, user … | |
/* I'm new on c ++ and i been strugling with this problem. create the special functions used by this routine and write the functions so it can be used by the main routine as shown*/ [code=c] #include <stdio.h> #include <stdlib.h> Void powerArgs(int *parmA, int *parmB) { int temp = … | |
I have some sentences that I want to print out the first character of each sentence. when I print it out I get the first character many times. here is the code. I just want the first character of each sentence printed out once per line. [code] int i; int … | |
Hello everybody, Please somebody help me...I am trying to save webpage data on the access database (remote server)...on the local host everything is going fine....but when i m loading my web page on remote server and trying to save the data to the ms access database then i could not … | |
Hello, I have a data structure which consists of 3 numbers. The data is later on saved in an array each time the user enters a new "izdelek". [code=c++] struct izdelek { double st_izdelka; double teza; double cena; }; [/code] later on, i have a function which should compare the … | |
I wish to incorporate e-mail in my page such that when a user had pressed a button, an email will be sent to the recipient. This has been my code. [code]MailMessage mail = new MailMessage(); mail.To = "me@mycompany.com"; mail.From = "you@yourcompany.com"; mail.Subject = "this is a test email."; mail.BodyFormat = … | |
Hi. (I am using Windows XP) I would like to know how you can use the function SetFileAttributes to hide a file or folder, I would also like to know about the declarations associated with this function. I would like to use this to develop a program that hides program … | |
Greetings! I'm building a web page that in its master file has a treview navigation control. Now, this treeview has a root, a parent and leaf nodes. I'm having a problem with the post back of this control. Basically, I have set the "parent" nodes [B]not[/B] to be exapnded, so … | |
I'm attempting to read lines of a file and store the contents of the line in an object. This is an example line (x,y,z co-ordinates) : [B]-12.852222 32.548111 -934.306681[/B] My problem is that my program is rounding these numbers up and I need absolute precision. Having read one line, storing … | |
In process of attempting to build a CSS editor. I was wondering if anyone could lead me to a way to highlight CSS for a rich GUI control in wxPython specifically? Also I would like to parse,serialize, validate and write CSS to file. I did find cssutils but was getting … | |
So I have an assignment to write a program that calculates and prints the sum of the series for the following series: S = 1/(1*2) + 1/(2*3) + 1/(3*4) + ... + 1/(n*(n+1)) I know I basically need to loop and increment a variable till it equals n, but I … | |
hi.... i'm trying to write a function clear image but i am not being able to write it. it is as follows. i am loading a picture and i want by clicking the button clear, the picture map.gif dis appear.. there is a function blank in tkinter but i am … | |
Hey All, sorry if this is a stupid question but im still new to all this. i want to enter something into a text field.. but i want for example the time in 24hr format "2200". How can i ensure that what the person is entering is in fact an … | |
Good evening, I'm basically doing a program that does something like this: You enter two integers -4 and 6 which represent intervals Then the loop does this: (-4) + (-3) + (-2) + (-1) + 0 + 1 + 2 + 3 + 4 + 5 + 6 After that … | |
hi people. i am doing my project on adaptive detection of design flaws, and i have been incorporating decision tree algorithm of c4.5...its that my project has to be submitted on a deadline of march 3 so guys plz help me out.. if you know any effective sites which posts … | |
![]() | |
Hello, I am a first year computing AS student coding a petrol pump program. You can see the specification [URL="http://pascalproject.wordpress.com/2008/01/31/project-specification/"]here[/URL]. I am a little stuck and I was wondering if anyone could point me in the right direction. I have coded a seven segment display using arrays, procedures, write lines … | |
hii,,,i m using asp.net 2005 i have given login control manually using forms authentication and all.. on proper username and password it opens first.aspx....everything is workin fine. what i want is tht first.aspx should open in a pop up window with specific height and width.heres the code for login [CODE]<script … | |
[code=php] <?php //echo "You have been successfully logged out. echo "You have been Successfully logged out.<br><br> <img src='../images/goodByeC2.png'/> You will now be returned to the Main page. "; ?> [/code] Why line 4 is not working, please advise. | |
Ok so first off i dont know much about programming. I am currently in the middle of my first programming class in school and i love it. It is based around visual basic 6, however the class moves incredibly slow so i decided i want to teach myself another language. … | |
Following along a C tutorial, I entered this code. When I compile and run, it aks for my age, which I enter. But it doesn't display any of the 'if' or 'else' statements. So I hit enter and the window closes. Is there a trick or am I entering the … | |
[code=php] <table align="left" style="width: 764px"> <tr> <td> <?php $con =mysql_connect("localhost","root",""); mysql_select_db("administration",$con); $list=mysql_query("SELECT * FROM cycles"); echo "<table border=1>"; echo "<tr>" ; echo "<td align=center style='color:red'>CID</td>"; echo "<td align=center style='color:green'>Brand</td>"; echo "<td align=center style='color:red'>Type</td>"; echo "<td align=center style='color:green'>Style</td>"; echo "<td align=center style='color:red'>Model</td>"; echo "<td align=center style='color:green'>Gear No</td>"; echo "<td align=center style='color:red'>Frame</td>"; … | |
hey...I need urgent help I have 2 comboboxes on a form and when I post the results back to the page 1 comboboxes continues to show but I need it hidden.. here's the code: [code="HTML"] <td><strong>or Owner</strong> <td><SELECT id="cboGpOwner" style="WIDTH: 96px;" name="cboGpOwner"> <OPTION value=0 selected> </OPTION> <OPTION value=1>AI</OPTION> <OPTION value=2>PAL</OPTION> … | |
have anyone ever create a [COLOR="red"]progressbar using Tkinter[/COLOR] and make [COLOR="red"]button flash or place a picture on button.[/COLOR] is this possible with tkinter. please can anyone tell me or show me how i can do these things??? thank you very much | |
hi for all the PHP experts here, i have couple of questions that keeps me feel frustrating.. first of all, may i know how to insert a link within PHP echo? for example, i have a function which is used to validate the username, if the username is incorrect, i … | |
Hi. BEFORE YOU THINK I AM JUST GETTING SOMEONE TO DO MY WORK, SCROLL DOWN AS I HAVE MADE A VERY GOOD ATTEMPT AND AM RECEIVING ERRORS! Basically i am fairly new to C++ and have been given a small class exercise to do for home work and am struggling … | |
I want to have a program that will ask questions.. and post top scores.. but these questions are randomly ask.. on the other hand.. these questions must be put in .textfile.. please help me.. im begging all of you.. my questions in txtfiles is this 1 What_is_the_capital_of_Europe? a.)Brussels b.)Brussiels c.)Berlin … | |
Dear all, I have a string array “$query_string1” having the value (reg_personal.personal_sex=’Male’) I want to pass this value through the URL for the use of pagination.. For that I used the command “<a href='{$_SERVER['PHP_SELF']}?pageno=1&query_string=$query_string1'>First</a> When I am clicking on the Link First the passed query string contains only “Reg_personal.personal_sex=” It … | |
Hello, Could you explain me why the first approach in the code above works and the second one fails? [CODE] #include <cstring> #include <algorithm> //char a[] = {'a', 'c', 'b', 'a', 'c', 'b', '\0'}; // Works char* a = "acbacb"; // Fails sort(a, a+strlen(a)); [/CODE] | |
I just started with image processing concepts and cannot decide upon a platform to try examples on. The two most commonly used platforms are Matlab and C# (using Aforge libraries). I know a bit of both and learning the syntax will not be a problem. Which one should I go … | |
I'm kind of teaching myself C++ from the ground up. I have previous programming experience in PHP, VB, Javascript, .net and i've done some other small stuff here and there but i've been putting off C++ for way too long and feel like I really need to learn it in-depth. … | |
Hi Everybody, I am trying to compare single precision floating point values in VB .NET. The code runs ok but the results look not right. Results also contain -Inf values. I see that this is not the right way of comparing floating points. Could you please show me how to … | |
HI every one I have problem with IIS AND LAN ( local area network) so When test my asp.net page localhost it works fine But I test my asp.net page through the LAN network it means other PC testing it doesn't work I check like this --> [url]http://192.168.0.20/Lib_student/welcome.aspx[/url] but 404 … | |
I am building a class that gets a proper fraction converts it to improper and does things like add, multiply... I have no way of testing this since they all have methods. Could someone tell me if this works. Thanks. [ICODE] // THIS CLASS DECLARES PRIVATE VARIABLES. public class Fraction … | |
Hi all , I'm new to Networking programming in JAVA .I want to send messages across hosts which are in the same Domain without using any Server program . I'm not clear whether to use UDP or TCP . Give me some ideas and links which are useful to accomplish … | |
After searching around this forum for a bit, I found getch() in conio.h, this very closely matches the type of function I am looking for, but I don't want it to wait for the user to enter a key (It would be nice if it would just return -1 or … | |
Hi, I want to create a simple exe(Without any supporting files...just a standalone exe) We dont have Matlab compiler I read in web that we can create exe in Matlab6.0,6.1 using C++ compiler. I have Matlab 7.1 and above. With the current Matlab version can we use C++ or C … | |
[code=mysql] $query = "INSERT INTO users (first_name, last_name, email, password, registration_date) VALUES ('$fn', '$ln', '$e', SHA('$p'), NOW() )"; [/code] What is the NOW() used for. Is it compulsory? | |
hi i want to attach documents with the email.i have a field in my db which contains the path where the file is stored.when the user want a particular doc ....i want it to fetch from the database and send it to their email address.................. | |
there is an error that when i type# include <stdio.h> and compile . then errors occurs "unable to include <STDIO.H> so what is wrong in that | |
Hi all I want to set my data grid column width separate for each column. Can it is possible? I tried as follows... [Code] gridMatchedDB.PreferredColumnWidth = 100 [/code] But its setting width to each column. How to set individually ??? | |
I have an equation within a while loop like this: [code] while(repeats != 1000000){ x = rand1; y = rand2; result = x + y; cout << result; repeats++; } [/code] Basically, 2 numbers are randomly generated, and are added together to put in the variable 'result'. What the above … | |
Hello, I am trying to protect some files from anyone typing in the url and being able to view them. Particularly FLV files. So I have placed them in a directory one level up from web access. However, now I can't use my flash player to access them since they … |
The End.