199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mrjoli021

I have a couple of sentences in an array. I need to randomly display 1 of them. How can I do this?

Member Avatar for Ancient Dragon
0
138
Member Avatar for Jboy05

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 …

Member Avatar for mitrmkar
0
129
Member Avatar for Jennifer84

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]

Member Avatar for Jennifer84
0
3K
Member Avatar for mrjoli021

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 …

Member Avatar for Ancient Dragon
0
83
Member Avatar for monkey_boy_401

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.

Member Avatar for monkey_boy_401
0
80
Member Avatar for info

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 …

Member Avatar for jbennet
0
102
Member Avatar for ryy705

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 …

Member Avatar for Auzzie
0
135
Member Avatar for ndoe
Member Avatar for joshualef
0
133
Member Avatar for purepecha

/* 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 = …

Member Avatar for Ancient Dragon
0
133
Member Avatar for mrjoli021

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 …

Member Avatar for Ancient Dragon
0
80
Member Avatar for ppat

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 …

Member Avatar for SheSaidImaPregy
0
293
Member Avatar for flash121

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 …

Member Avatar for flash121
0
86
Member Avatar for ebabes

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

Member Avatar for ericstenson
0
155
Member Avatar for cosmos22

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 …

Member Avatar for mitrmkar
0
184
Member Avatar for EduardoAndres

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 …

Member Avatar for SheSaidImaPregy
0
120
Member Avatar for Quakes

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 …

Member Avatar for Quakes
0
91
Member Avatar for asrekdal

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 …

Member Avatar for vegaseat
0
102
Member Avatar for incolor

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 …

Member Avatar for incolor
0
1K
Member Avatar for nish88

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 …

Member Avatar for vegaseat
0
10K
Member Avatar for StepIre

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 …

Member Avatar for vegaseat
0
100
Member Avatar for Phanta

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 …

Member Avatar for Phanta
0
94
Member Avatar for ad_ms

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 …

Member Avatar for jwenting
0
64
Member Avatar for Techboy1523
Member Avatar for JamesX4334

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 …

Member Avatar for JamesX4334
0
148
Member Avatar for johnny.g

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 …

Member Avatar for SheSaidImaPregy
0
104
Member Avatar for lordx78

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

Member Avatar for lordx78
0
76
Member Avatar for Hockeyfreak889

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

Member Avatar for Hockeyfreak889
0
169
Member Avatar for jeffige

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 …

Member Avatar for Ancient Dragon
0
134
Member Avatar for lordx78

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

Member Avatar for lordx78
0
108
Member Avatar for dweaver6

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

Member Avatar for SheSaidImaPregy
0
100
Member Avatar for nish88

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

Member Avatar for vegaseat
0
1K
Member Avatar for eparse

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 …

Member Avatar for eparse
0
232
Member Avatar for birdy_28

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 …

Member Avatar for vijayan121
0
113
Member Avatar for nemesis4627

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 …

Member Avatar for ithelp
0
209
Member Avatar for jino

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 …

Member Avatar for miguelp
0
142
Member Avatar for Infeligo

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]

Member Avatar for vijayan121
0
133
Member Avatar for hammerhead

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 …

Member Avatar for hammerhead
0
92
Member Avatar for IAmPat

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

Member Avatar for mitrmkar
0
159
Member Avatar for cs_tx_usa

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 …

Member Avatar for cs_tx_usa
0
125
Member Avatar for bagi

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 …

Member Avatar for dlluna
0
198
Member Avatar for torbecire

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 …

Member Avatar for torbecire
0
105
Member Avatar for parthiban

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 …

Member Avatar for jwenting
0
110
Member Avatar for Joatmon

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 …

Member Avatar for Joatmon
0
333
Member Avatar for jkdil33

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 …

Member Avatar for jkdil33
0
811
Member Avatar for lordx78

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

Member Avatar for lordx78
0
86
Member Avatar for lydia21

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

Member Avatar for lydia21
0
160
Member Avatar for bharaniabhishek

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

Member Avatar for abhikkumarbasu
0
241
Member Avatar for sbv

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 ???

Member Avatar for suganzeni
0
128
Member Avatar for andyg55

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 …

Member Avatar for vijayan121
0
193
Member Avatar for zachawp

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 …

Member Avatar for ryan_vietnow
0
67

The End.