199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
[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 … | |
[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) … | |
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] … | |
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 … ![]() | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
Anyone know how I would set an image for the cursor in Pygame? | |
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? ![]() | |
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 … | |
[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; … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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') … | |
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(); } … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: " + … | |
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' … | |
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: … | |
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. … | |
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 … | |
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..... | |
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 | |
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'. … | |
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 … | |
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. … | |
how can i pass html array to php code please need some help here | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … |
The End.