199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DaveWalsh1984

Ok, first of all this is the first time I've used the forums on this site cos only recently joined. I've been studying computing at college for about 5 years and graduated from Sunderland Uni in 2006. Throughout the time I was at college the programming languages we were studying …

Member Avatar for kb.net
0
343
Member Avatar for mancode1007

[ICODE] #include<stdio.h> struct student{ int id; char name[30]; int mark; }; void main() { FILE*fp; struct student stud; int id_no; fp=fopen("data.txt","r); printf("enter id no : "); scanf("%d",&id_no); while(fscanf(fp,"%d %s %d",stud.id,stud.name,stud.mark)!=EOF) { if(id_no == stud.id) printf("%d %[^\n] %d\n",id_no,stud.name,stud.mark); else printf("Error !\n"); } fclose(fp); } [/ICODE] Hello Everyone,I am stuck at the …

Member Avatar for jephthah
0
2K
Member Avatar for disturbedfan

[code] #include <cstdlib> #include <iostream> #include <string> using namespace std; string name = ""; int main(int argc, char *argv[]) { cout << "Hi, whats your name? "; cin>>name cout << end1<< "Well Hello " << name.c_str() << "Please provide me two numbers on 2 seperate lines "; cin>>number1; cin>>number2; cout(number1+number2) …

Member Avatar for Radical Edward
0
109
Member Avatar for argus512

Hi People, I have been given to work on this program written some 15 years ago for data acquisition but i cannot figure out how to get this to compile as i am getting a lot of compilation errors. Any insight would be highly appriciated. Thanks in advance argus [code=c] …

Member Avatar for Ancient Dragon
0
185
Member Avatar for TechExpressInc

I have a PHP page and I want to indent text is there a way?? I have put the spacer.gif for somelines. But if I put the spacer.gif where I ask for input it comes up miss-algin? <tr><td><p>Tribute Information</p></td></tr> <tr><td><img src=Images/spacer.gif width=35>To someone special:</td></tr> <tr><td valign=middle><p>Name: </p></td><td colspan=5 valign=middle height=30><p><input …

Member Avatar for langsor
0
248
Member Avatar for The Buzzer

hi guys, hi bosses, I am in real trouble. I have to finish my program by tonight, look out to my threads and give me a solution pls. I will be greatful to those who will give me a quick reply. Cheers

Member Avatar for The Buzzer
0
66
Member Avatar for Umair.P

Hi there. i am new to C# programming. I am developing an updater that would update our product. I want to program the close button so if clicked the application should not close but rather hide. I have a notification icon from where the user can call it back. I …

Member Avatar for selvaganapathy
0
120
Member Avatar for gispe

hi ppl, im havin a problem with declaration of functions, its givin me errors on the functions i made. [code=cplusplus] // empleados.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> using std::basic_iostream; char menu (char); void ingresar_legajo_hijos (int &, int &); void ingresar_horasTrabajadas_valorHora (int …

Member Avatar for gispe
0
127
Member Avatar for coolkeg

hi guys, I'm new to C language and am currently using an online tutorial, ive been doing prety well on my own until now. Basicly the problem is with the "while" command, when i copy and paste the code im working with from the tutorial site into a word pad …

Member Avatar for Aia
0
138
Member Avatar for Oreo1982

I have a gridview that gets data from an objectdatasource. the grid has a commandfield in which i show both the edit and delete buttons. i have figured out how to confirm the delete... [code=VBNET] If e.Row.RowType = DataControlRowType.DataRow Then Dim cmdDel As Button cmdDel = e.Row.Cells(0).Controls(2) cmdDel.Attributes.Add("onclick", "if(!confirm('Are you …

0
76
Member Avatar for besktrap
Member Avatar for besktrap
0
195
Member Avatar for blood08

How would you make PHP search a website for a certain word and then return a true or false? Is there a function built into php already?

Member Avatar for langsor
0
158
Member Avatar for ebiemami

It`s a very simple windows application but It should be run on a LAN. Here is what I want to make its a kinda game: Someone runs the application for the first time,others will join him from their own workstation (they r all on a same LAN) So now they …

Member Avatar for scru
0
126
Member Avatar for god_1896

[QUOTE]hi all; suposed to be this question has been solve, perhaps sory if i need to ask again. I found a code of send and email using with php classes; but there is something wrong with it. here is the whole code. [/QUOTE] [ICODE]class request { var $email; var $senderName; …

Member Avatar for langsor
0
139
Member Avatar for kungfoo

The Task The range R(v0, a) of a projectile fired with initial velocity v0 at an angle a is given by: Your task in this test is to write a function to calculate the range, then to produce a table of ranges for prescribed values of velocity v0 at an …

Member Avatar for VernonDozier
0
255
Member Avatar for jack00423

Hi ALL, I want to print some lines from file like example ===== RECOVER DATABASE ALTER DATABASE OPEN; ALTER TABLESPACE TEMP ADD ALTER TABLESPACE TEMP ADD STARTUP NOMOUNT CREATE CONTROLFILE REUSE DATABASE -- SET STANDBY TO MAXIMIZE PERFORMANCE MAXLOGFILES 16 MAXLOGMEMBERS 5 MAXDATAFILES 512 MAXINSTANCES 1 MAXLOGHISTORY 7260 LOGFILE I …

Member Avatar for pritishs
0
80
Member Avatar for gregorynoob

the problem is to find the minimum numbers to be popped from an array to make it sorted. so for example 12534756, you can pop all but one, but it's best to pop 5 and 7 cause it's the least needed to make it sorted. I'm having difficulties finding a …

Member Avatar for ArkM
0
104
Member Avatar for Venom Rush

Hi there I've never dealt with Ajax and I'm having a rather frustrating time with an upload progress bar I found on the net that's supposed to be really good. That's beside the point. I just wanted to know if there are any Ajax related packages out there that need …

Member Avatar for MattEvans
0
81
Member Avatar for Cosa

I am having trouble reading in data from a file. The data file store the information of albums and its respective track info eg 1234 //this is id number Scarlets Walk //album name Tori Amos //artist 24 //price 2 //stock Pop //genre Track A //track name 10 30 //track length …

Member Avatar for Cosa
0
122
Member Avatar for coderoobie

Hi happy people I've bin trying to sort items in a list box, the problem is obviously: It doesn't work Please, any modifications to the code below is fully and unconditionally allowed. [code=C++] void __fastcall TForm1::btnSortClick(TObject *Sender) { //sort ascending if (rdAscending->Checked){ bool swopped = true; int iEnd; int arr …

Member Avatar for coderoobie
0
170
Member Avatar for STUDENT#101

so this is what I have done [code] #include<iostream> #include<string> void menu(); using namespace std; char choice; void digcom (); void matrices (); int main () { menu(); return 0; } void menu() { cout<<"\tMENU" <<endl<<"MATHEMATICS(matrices select A)\n"<<"DIGITAL COMMS select B\n"<<"c TO EXIT"<<endl; cin>>choice; while(choice!='c') { switch(choice) { case ('A') …

Member Avatar for mitrmkar
0
170
Member Avatar for Ciubhran

Hello, I am having problems with Internet Explorer (as always) and AJAX. My code works with Firefox, but the page returns errors when trying to execute this script in Explorer: [ICODE] <script type="text/javascript" language="javascript"> var xmlHttp = false; function createPostRequest(url, parameters) { if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest(); } …

Member Avatar for chaosprime
0
139
Member Avatar for bharathi_n_r

Hi fellows, I have learned to create stored procedures,but dont know on how to implement it in my code...I have a dataadapter called ada and a dataset ds..The form consists of three textboxes and a combobox...I need the valuse from the database to the comboox...How to fill the dataset and …

Member Avatar for Elmo_loves_you
0
285
Member Avatar for Elmo_loves_you

Hi Everyone, I know this sounds silly but Ive been so caught up with designing efficient logins that interact with a database that Ive forgotten how to do it the hard coded way. I have to create a little application that interacts with a database, but it doesnt have to …

Member Avatar for Elmo_loves_you
0
80
Member Avatar for MDGM

Hi all, index.php = [CODE]<?php include('1.php'); ?>[/CODE] when a search engine finds and indexes this page, will it read nothing or will it read the contents of 1.php too? Im guessing because its a server-side script the document will be merged and then sent to the search engine so it …

Member Avatar for MDGM
0
104
Member Avatar for Shreyasi

Hi Geniuses, I need u r help again... I want to creat a confermation alert. this is my .js code function show_confirm(){ var c=confirm("Are you sure to do this"); } and this is my html code <input name="confirm" type="button" id="confirm" value="Show" tabindex="1" onclick="javascript:show_confirm()"/> Now my question is how I change …

Member Avatar for Shreyasi
0
89
Member Avatar for The Buzzer

hello coders, I am facing problem to filing my programm. it opens the intended file but problem is it is not saving any datas. I want to see the results in notepad or word. I am using windows vista and my soft is dev C++. I dont want to use …

Member Avatar for mitrmkar
0
142
Member Avatar for AirmanTheGreat

Howdy, Im getting the "'.class expected" error and I dont know what to correct. The code is [Code] import java.io.*; public class TeamHeight { public static void main (String[] args) throws IOException { double[] height = new double[11]; double sum = 0; System.out.println ("The size of the array: " + …

Member Avatar for AirmanTheGreat
0
212
Member Avatar for Narf!!!

Good morning, good afternoon and good evenings (to cover almost all posibilities) The error message is as follows in DEV-C++ compiler [QUOTE] Compiler: Default compiler Building Makefile: "I:\cpp\Makefile.win" Executing make... make.exe -f "I:\cpp\Makefile.win" all g++.exe include/Test.o include/Objeto.o include/ConjuntoBase.o include/IteradorBase.o include/ConjVector.o -o "TestEstructurasDiscretas.exe" -L"C:/Dev-Cpp/lib" include/ConjVector.o(.text+0x45):ConjVector.cpp: undefined reference to `vtable for ConjVector' …

Member Avatar for Narf!!!
0
94
Member Avatar for twgood

This is due Sunday, and I still do not have all of my errors out of the way to see if it runs correctly. Please help I am down to 16 from 20. Errors: ompiling 1 source file to C:\NetBeansProjects\SCHOOL1\JavaApplication55\build\classes C:\NetBeansProjects\SCHOOL1\JavaApplication55\src\javaapplication55\Inventory6.java:146: ')' expected getProductName(), getProductNumber(), getBaseAmount(), getBasePrice() getProductYear() ); C:\NetBeansProjects\SCHOOL1\JavaApplication55\src\javaapplication55\Inventory6.java:146: …

Member Avatar for peter_budo
0
135
Member Avatar for daviddoria

I have a very simple class [code] class Point { public: Point(); Point(double x, double y); double x_; double y_; } [/code] the problem is, I can't assign my class to another instance, ie: [code] Point A(2,4); Point B(); B = A; [/code] It says the lvalue must be modifiable. …

Member Avatar for Narf!!!
0
213
Member Avatar for Wiki_Tiki

Hi everyone, I'm busy working on a word processor in Visual C++ 2008 and I need some help with a Print option, and a Page Setup option. What I'm trying to do is print the contents of a RichTextBox control (txtdisplay), and can't find any way to get it to …

Member Avatar for mitrmkar
0
271
Member Avatar for jonabie

im a highschool student and i really need help bout this.... how can i make a program that will enter my name and display it automatically.....

Member Avatar for jonabie
0
73
Member Avatar for sanbal

I am creating a msi file in windows installer. When the msi is executed, it register some dlls in the registry. I renamed a dll in the code and i manually want to rename the dll in the registry. How can i do this Thanks in advance

Member Avatar for Ramy Mahrous
0
103
Member Avatar for karhong

Hi, I've created a partial class : Control for designing the shape of my polygon. It works well but there's one problem that I tried to find on net but I get nothing. I've created one int named 'size'. Then I created a function named 'Growing' for 'get' and 'set'. …

Member Avatar for Ramy Mahrous
0
426
Member Avatar for architact

Hello, I have designed a website that has some things for only registered users. I have javascript to hide these object if the user is not logged in using <body onload="a();">. But the problem is that when the page loads these items show up for a while and then hide …

Member Avatar for R0bb0b
0
150
Member Avatar for rezvi

Hi all, i m having a problem with inserting data in oracle db. When i use form action =(call self page) then data is inserting properly.But problem with when using form action=(Another_page).data is not insering into database.For ur kind infromation i m using oracle db and php for my application. …

Member Avatar for Shanti C
0
82
Member Avatar for knarffrank
Member Avatar for Shanti C
0
61
Member Avatar for guravharsha

Hi I am trying to send the mail to client containing message as a data retrieved from database in table format. I am retrieving data in below servlet. now i want to send all this data in jsp page in table format. from this page i am sending all this …

Member Avatar for ~s.o.s~
0
104
Member Avatar for THAPELO

Suppose we have to write a program where a mark out of 60 is entered and then the corresponding symbol has to be displayed. A message indicating whether the person has passed or not, should also be displayed. We decide to write the program in three steps. You should submit …

Member Avatar for Narf!!!
0
104
Member Avatar for Shariqhere

Hey guys! Just wanna ask you a simple question. How do I use the value of variable #2? Let me explain. The company I use gives me 2 variable values that i can capture. SEARCHTEXT and PARTNERID So this is the link I use: [url]http://doubleyourctr.com/offer1.php?searchvalue=SEARCHTEXT?partnervalue=PARTNERID[/url] And this is the code …

Member Avatar for Shariqhere
0
108
Member Avatar for winbatch

Hi, I have a swing app where I am using (among other things obviously) an editable JComboBox and a jButton. when the JButton is clicked, it does some processing and uses the value in the JComboBox as one of it's inputs. I'm finding that everything is fine when: - The …

Member Avatar for winbatch
0
203
Member Avatar for BPNavigator

Hi I'm new to Visual Basic and writting code for excel. My first attempt at writting a piece of code is to format a range of cells to display a particular date and time format. dd/mm/yy hh:mm. My problem is that I have written the code that uses a drop …

Member Avatar for BPNavigator
0
179
Member Avatar for snurd

VB6.0 The following is how I open the Excel file, what I need to know is how to see if it is already open, and also a new Sub to close the file. [code]Private Sub Command1_Click() 'Place statement here to see if already open, if so then Goto 1 Dim …

Member Avatar for snurd
0
1K
Member Avatar for snurd

VB6.0: Writing an argument to see if an Excel file is already opened before opening the Excel file, because if the file is already opened the Excel file opens as read only. If it's already open I want to skip to the next "goto" label (ie: "File Already Opened"). Thanks, …

Member Avatar for aktharshaik
0
397
Member Avatar for flhtc

Please excuse me if I'm posting something that's been asked 100 times. I've done some searching but can't find what I'm looking for. Also please forgive my greenness, I've only been at this for a week now. I've have extensive experience with shell scripting, some C++, although non of the …

Member Avatar for flhtc
0
114
Member Avatar for mruane

I intend on creating, or at least simulating, Artificial Intelligence in a birthday gift I am making in python. The basic package is planned to be a multi-purposed program mostly concerned with entertaining. I am attempting to create Sally, the programs 'brain' if you will. Basic Idea came from the …

Member Avatar for Alonechild101
0
150
Member Avatar for MDGM

Hi all, I am trying to edit [URL="http://www.dynamicdrive.com/dynamicindex8/ddwindowlinks.js"]this script[/URL] so that it not only changes offsite targets to _blank, but also changes their href from their original link, to [url]http://www.mydomain.com/externallinks/+origionallink[/url] Can somebody help me find out what is wrong with this script? It is editing the target and href of …

Member Avatar for MDGM
0
278
Member Avatar for GTROYA

I am looking to print some text files locataed in my local drive, i tried everything i know to do that but no luck so far Hope i can get a hand from here Thanks

Member Avatar for aktharshaik
0
1K
Member Avatar for sciwizeh

I did a brief search of the forums, and didn't find anything on collision detection that was 1) this general, or 2) had this kind of question I don't want bounding box! every place i look all game tutorials use bounding box, and that is not accurate enough for what …

Member Avatar for sciwizeh
0
169

The End.