199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ankur3000

Hey guys, I am a complete beginner to programming. My only background is basic programming in C. I would like to learn more but I don't know where to start, I thought about learning C++ but then i read somewhere that learning obj-C or Java is a better idea. At …

Member Avatar for mike_2000_17
0
242
Member Avatar for kimmyfufu

[code]#include <iostream> #include <string> #include <iomanip> using namespace std; //Function prototypes declared before main function void InputData(string playerNameAr[], int scoreAr[], int &numPlayersRef); void DisplayPlayerData(const string playerNameAr[], const int scoreAr[], int numPlayers); double CalculateAverageScore(const int scoreAr[], int numPlayers); void DisplayBelowAverage(const string playerNameAr[], const int scoreAr[], int numPlayers, double averageScore); // declaring …

Member Avatar for jonsca
0
100
Member Avatar for anita_86

Hi again!! I am stuck into a new problem.I have a invoice form with regular fields in it and when the user press the print button, I want to print it out in desired formatting like, company name, address etc. at the top of the page, and so on. Can …

Member Avatar for anita_86
0
86
Member Avatar for sara113
Member Avatar for l1nuxuser

hello evrebody; i need some solution to my problem; i wont to have data - base in my progrem based on C++ the user can add and remove from that but i dont know how to save data to local folder in the computer... i find something like this and …

Member Avatar for jonsca
0
90
Member Avatar for CanadianGSX

Here's the code: [code] if ($result) { if ( $num_rows > 0 && $type = 1 ) { session_start(); $_SESSION['login'] = "1"; $_SESSION['loginname'] = $row['NOM']; $_SESSION['centreAFB'] = $row['CENTRE']; header ("Location: xxxxx.php"); } else if ( $num_rows > 0 && $type = 2 ) { session_start(); $_SESSION['login'] = "1"; $_SESSION['uname'] = …

Member Avatar for CanadianGSX
0
102
Member Avatar for Madmark88

According to entered number (b), please find the “a” numbers corresponds equation b = a3 * a2. My codes. Whats the mistake ? thanks for helping. [CODE]#include"stdio.h" #include"conio.h" #include"math.h" int main(void) { int a,b = 0; printf("Please enter a number"); scanf("%d",&b); for(int a = 0;a<1000;a++) { if(b==(a*a*a)-(a*a)) { printf("%d",a); } …

Member Avatar for Trentacle
0
161
Member Avatar for ON_Jtharpe

Hey guys I am trying to create a login that checks for a password in a mysql database. I have just started picking away at this and have no clue if I am even close. If I am not even close I don't need someone to wast there time holding …

Member Avatar for codewall
0
152
Member Avatar for pmark019

I have a problem with counting the number of input lines and the number of operands. Can someone please tell me what is wrong?... When my input is : System.out.println("\n\nReserved Words: " + ReserveWords); System.out.println("Unique Reserved Words: " + UReserveWords); The number of lines is 11 and I don't know …

Member Avatar for pmark019
0
188
Member Avatar for anita_86

Hi!! I have a simple script of displaying client work history in following manner: [CODE]<?PHP $query1=mysql_query ("SELECT existing_clients_work_history.history_description, existing_clients_work_history.history_history, client_master.client_name FROM existing_clients_work_history INNER JOIN client_master ON existing_clients_work_history.client_id=client_master.client_id"); if(mysql_num_rows($query1) > 0) { echo "<table align='center' border='0' width='1000'>"; echo "<tr class='style1' align='center'> <td>Client Name</td> <td>Work Description</td> <td>Work History</td> </tr>"; while($row1=mysql_fetch_array($query1)) { if($row1!=0) …

Member Avatar for codewall
0
112
Member Avatar for GAME

Could anyone point me into the right direction on how to make a C# SQL Datalogin?

Member Avatar for GAME
0
157
Member Avatar for davesyourfriend

Hi guys I'm new at JSP, and I've to run an ex-collegue software. It's Java + JSP, usin' Apache Tomcat. When I run Tomcat and I try to open the Default.jsp page, here's what appears: [code=jsp] HTTP Status 500 - type Exception report Description: The server encountered an internal error …

Member Avatar for peter_budo
0
262
Member Avatar for sj5536

i want to convert following file into table formate how do i do this? i wan to convert it pdf file text file :- 2011012735981481 15:27:29 35235139 15:27:29 LARSEN & TOUBRO LTD. 10 D (DEL) LARSEN & TOUBRO 10 (NET) LARSEN & TOUBRO 10 2011012736007203 15:29:32 35263544 15:29:32 OIL AND …

Member Avatar for peter_budo
0
136
Member Avatar for poloblue

Good Afternoon, I'm having problems with a program that I have to do for school. It deals with pointType class and the main program section. The details of what the program should do are the following: Define and implement a class poinType that implements a point (x,y). The class pointType …

Member Avatar for poloblue
0
720
Member Avatar for lochnessmonster

what's the difference in these 2? class list { class node { // blah }; // blah }; ********************************** class node { // blah }; class list { // blah };

Member Avatar for mrnutty
0
61
Member Avatar for aquamarine_kath

I got a runtime error 3705 "Operation is not allowed when the object is open". When I click debug, it highlights the connection object I made in the module. I have a form named frmUser. When I click mnu_User from the mdiForm, I got a runtime error 3705, but when …

Member Avatar for aquamarine_kath
0
1K
Member Avatar for Mr.BunyRabit

Hey there. How do i search through my Datatable. I know how to do it when there is a Datagridview involved, but i dont have one in this case. I know they say you should do this [CODE]DataRow foundRow = dataSet1.Tables["AnyTable"].Rows.Find(s); [/CODE] Something like that, but i have no idea …

Member Avatar for Mitja Bonca
0
262
Member Avatar for RenanLazarotto

Hey! I'm trying to create a app that will add some reg keys. But I need to change the default value. How can I do it? I don't work :@ [CODE]Imports Microsoft.Win32 Public Class Form1 Dim regstr As RegistryKey = Registry.ClassesRoot Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As …

Member Avatar for RenanLazarotto
0
153
Member Avatar for sirlink99

I received this error when I tried uploading my game to a website (yes I found one). Java Plug-in 1.6.0_15 Using JRE version 1.6.0_15-b03 Java HotSpot(TM) Client VM User home directory = C:\Users\Adam ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this …

Member Avatar for sirlink99
0
148
Member Avatar for ben25x

i have searched everywhere and i cannot find a simple c example for creating a simple click button, where if the user clicks on it, the program prints something to the screen, or something. any help would be very appreciated.

Member Avatar for Ancient Dragon
0
2K
Member Avatar for ilvista

hi I'm having trouble with php and mysql I'm getting this error [CODE] [Sun Jan 30 17:43:40 2011] [error] [client 127.0.0.1] PHP Warning: mysql_query(): Access denied for user 'root'@'localhost' (using password: NO) in /var/www/t/view_tg.php on line 29, referer: http://localhost/t/ [Sun Jan 30 17:43:40 2011] [error] [client 127.0.0.1] PHP Warning: mysql_query(): …

Member Avatar for ilvista
0
3K
Member Avatar for bbinais

hi, this is my php code i need pagination for this page.. help me please.... [CODE=php] include('connection.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Expires" content="Wed, 01 Jan 2020 00:00:01 GMT" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Script-Type" content="text/javascript" …

Member Avatar for pritaeas
0
168
Member Avatar for gyannitin

Hi, I am fetching from a table and updating it back. I am fetching and populating the form. User will modify the form and then update the table. Everything looks fine but update and delete query is returning '0' Here is a code snippet: [CODE] qid = (Integer.valueOf(iterator.next().toString())); answer = …

Member Avatar for gyannitin
0
75
Member Avatar for emaduddeen

Hi Everyone, I have a form with multiple tabs that allows the user to insert data into a customer table. The ID is an Identity column. After a row is inserted into the database I would like to retrieve the ID number for that row that was just inserted into …

Member Avatar for gr8fasushi
0
6K
Member Avatar for JRADCL9092

Hello, I am trying to create a "stock Price Program" for an assignment that will allow you to type in a stock symbol such as "goog" in the client side and the server side will respond with a price for that stock symbol, this price can either be hard coded …

Member Avatar for JRADCL9092
0
143
Member Avatar for MasterGberry

Ok. So this patch i made has been in beta testing. For some reason my C++ version does not always write the files. but it shows that it patched sucessfully......lists the correct directory where it should be writing the files. They just dont show up. The c# version works though …

Member Avatar for MasterGberry
0
281
Member Avatar for lamiv007

Hello, Can anyone help me embed a .mht file into a php page? I don't want it to be downloaded, but visitors should be able to browse that mht file.

Member Avatar for drstorm
0
1K
Member Avatar for gunneronaspooky

I'm just trying to come thru with a passing grade at this point because there was no instruction. I can't even get the program that was given to me to work, even though I copied it verbatim from the text. Please help me figure out what the error is so …

Member Avatar for -ordi-
0
140
Member Avatar for onlinessp

Here i have a problem please help me. I had made and console application named "input.csproj".On debug it created "input.exe" and the following line of code i have used. [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace input { class Program { static void Main(string[] args) { string a=Console.ReadLine(); …

Member Avatar for james6754
0
242
Member Avatar for aznlitomik3

Hi, I forgot how to do the decimal precision aka magic formula Like after you run the program it give you 4 decimal places but i only want 2 decimal places Hope someone can help!! Thank You!! [CODE] #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; void …

Member Avatar for VernonDozier
0
226
Member Avatar for sk8rock_15

[B][COLOR="Red"]how do i add the numbers in label1 and label2 and i want it to appear at label3?[/COLOR][/B]

Member Avatar for jhai_salvador
0
115
Member Avatar for ntrncx

i am beginner that studying c++ i used to use codeblocks but last months i use netbeans, studio express has bad text editor for beginners:P all this time i am using cygwin(always failed) recently i saw on google that with mingw and msys i can compile release and run my …

Member Avatar for ntrncx
0
173
Member Avatar for scias23

Has anyone here tried putting a combobox to a bound datagridview? The selected value of the combobox will depend on the value of the corresponding column in the database. I have a datagridview. When the user clicks the edit button, the application fetches the records from the database and binds …

Member Avatar for scias23
0
353
Member Avatar for ilikesimple

Hi I am working on a website that users can use to create their own blogs. But I have hit a problem. Whenever I try to create a new file with the members username in. The rest of my script works perfectly. Can anyone see a problem with my code. …

Member Avatar for ilikesimple
0
152
Member Avatar for vegaseat

Does anybody have a tested function in C or C++ that sends text to the printer in a Windows Console Application? I would be very appreciative! It would be nice, if I could specify the font. Yes, I can google!

Member Avatar for abdullah0
0
221
Member Avatar for stevetaylor15

hi guys, i'm running a recordset read as below and within that running commands against a 2010 exchange server. i wanted to know what you thnk the fastest method there is of doing this?Is the best mehod to put the connection to the exchange server outside the rdr.read, and then …

Member Avatar for paperless
0
247
Member Avatar for Dheerajpro

i have taken one text field and want coding to print text wrintten in text field on button

Member Avatar for Dheerajpro
0
114
Member Avatar for taylby

Hi I have a base form that subsequent forms are inherited from. It is a form that is designed to have an appropriate look and feel and really doesn't do anything else. The other froms just inherit it as per: [CODE]public partial class frmLoad : frmPeakBase [/CODE] The only other …

Member Avatar for taylby
0
152
Member Avatar for Rishabh876

I made a c++ program but my teacher rejected it because i had used goto function everywhere. she told me that i can use do while instead. so i started replacing goto with do while. after spending so many hours on my desktop when i tried to run it , …

Member Avatar for daviddoria
0
168
Member Avatar for sj5536

hi i want read text file and write in such way that each word in the separated by 2Spaces if they are separated by more than 2Spaces keep those 2space as it is and filled remaining space with xxxxxxxx plz suggest to how go to this problem and give some …

Member Avatar for javinpaul
0
126
Member Avatar for DaveTran

I have a 1D array. Each element in the array is arranged to emulate a 3D index: [CODE] for (int x = 0; x < depth; ++x) { for (int y = 0; y < height; ++y) { for (int z = 0; z < width; ++z) { int index …

Member Avatar for Momerath
0
140
Member Avatar for Mr.BunyRabit

Hey I have attached my program to the thread. I have an access database called "Database". I have 3 textboxes. "name" "age" and "language" as an example. When the accept button is clicked, i want that information to update to the database. I can only do it with a datagridview, …

Member Avatar for Mr.BunyRabit
0
289
Member Avatar for initialise

Hi all, I could really use some help with a multithreaded server/client application that I'm building. I'm first experimenting with basic concepts and then am going to implement the results within a larger application. However, I find myself stuck on a particular issue. Initially, I transfer a file from the …

Member Avatar for initialise
0
175
Member Avatar for Korenai
Member Avatar for Korenai
0
101
Member Avatar for kohoko

i want to get a random value from the set of values like{1,2,5} how can i do that is that possible i m not that familiar with using random function so plz xplain a bit how to use it if it can be used in this case

Member Avatar for kohoko
0
199
Member Avatar for Vivek_1986

When i'm trying to create a new SQL Server Database in VB.NET 2005 through Server Explorer i'm getting following error (no matter what authentication i select): [COLOR="Red"]An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the …

Member Avatar for reeeeeee
0
179
Member Avatar for RenanLazarotto

I've found this a little hard to find, so I decided to share with you guys. This small code will allow your app to accept arguments. Just copy the whole code into the main sub (I didn't tested elsewhere) and edit the code inside the for to do what you …

Member Avatar for anoopkh
0
1K
Member Avatar for paulablanca

Hi! I am creating an entrance examination and what I want to do is get all the questions which belong to the same Year Level (e.g.first year) from a table and display the first question into a rich text box and when the next button is clicked, the second row …

Member Avatar for paulablanca
0
2K
Member Avatar for cj333

I modify a php comment system. I want add it after every article witch are query from database. this is the php part [CODE]<?php ... while($result = mysql_fetch_array($resultset)) { $article_title = $result['article_title']; ... ?> <form id="postform" class="postform"> <input type="hidden" name="title" id="title" value="<?=$article_title;?>" /> <input type="text" name="content" id="content" /> <input type="button" …

Member Avatar for cj333
0
205
Member Avatar for eskimo456

Hi there I have made and run several different graphics programs and applications. The applications I have made so far always use the full processor and graphics card available. The game for instance may run at 5000fps or some really high number. I am assuming this is not how games …

Member Avatar for eskimo456
0
153

The End.