199,114 Archived Topics
Remove Filter ![]() | |
What am I trying to establish here... jolly good question :eek: Pretty simple piece of code really but can I get this wretched thing to do as its asked - can I as heck... All it needs to do is display the type of clothing to be worn in certain … | |
Folks, I want to know how to check whether a file exists for not?? One more thing: If we open an existing file in a write mode, then it gets truncated to zero length, so what the way out of this?? Should I use open('filename','w+') Regards, Asrar | |
![]() | well i am a high school student and we'll study pointers within next month and i am trying to understand it right now. but what i could understand is what is its use, advantages and for the most that pointer concept is not very clear to me. so i would … |
Hi, I need to write a n00b program that calculates the best deal customers can get when buying pizza. The premise is, although an extra large pizza may appear a better buy, you need to calculate the cost per sq inch of both round and rectangular pizzas to really know. … | |
I am a beginner on C++, and I have 3 programs at hand, who can show me how to write the prgrams for those problems, thank you very much:lol: : See the attached file. ![]() | |
You guys have got to be sick of these C++ noobs coming in here asking for homework help but thats what Im going to have to do because I am totally lost....I was following pretty good till we got to overloading and passing things polymorphicly Anyway the point of this … ![]() | |
Im having a problem that my while loop is not finishing even when the conditions have been meet. [php]$turn = "0"; while ($player['health_n'] > "0" OR $opponent['health_n'] > "0" AND $turn < "25"){ $turn = $turn+1; $hitfor = $youatk / $oppdef; if ($hitfor <= "0"){ echo "$turn. $opponent[name] blocked.<br />"; … | |
Hi experts, here in my project ,there is a situation like, to read an Excel file and store in a database using java. I have an excel file as 10 columns and this is a daily report by our sales team. So the requirement is to read that excel file … ![]() | |
Can somebody help me with this problem? It must use recursion however, and no iterative statements. Write a method called reverse that takes a single long integer argument and returns the result of reversing its digits. For example: System.out.print(reverse(-12); returns -21 and System.out.print(reverse(1234567)); returns 7654321 i know that (number % … | |
hello, i have a problem with printing records[i].M_F on the screen while reading from a binary file. i'll appreciate any help ! THank U [code] [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]"stdafx.h" [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdio.h> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdlib.h> [/COLOR][COLOR=#0000ff]enum[/COLOR][COLOR=#000000] sex {m, f}; [/COLOR] [COLOR=#0000ff]struct[/COLOR][COLOR=#000000] student { [/COLOR] [COLOR=#0000ff]char[/COLOR] fname[40]; sex M_F; [COLOR=#0000ff]int[/COLOR] S_AGE; [COLOR=#0000ff]double[/COLOR] W; }; student … | |
I've been wondering about console programming. Not the book example type stuff, but the 'real' console programming. Stuff that seems to use things like ncurses, or something like that I assume. I found a good tutorial on what I'm looking for: [url]http://www.adrianxw.dk/SoftwareSite/Consoles/Consoles1.html[/url] but I'm wanting something that goes a little … | |
Hi i have an assignment to write a Shopping List program in which there can be any number of products entered along with the price. Im not really doing to well with it an would apprecite any help. Heres my prgram so far [code] program ShoppingList (input,output); var numb:integer; prod:char; … | |
hi, 1-how can i do multiselect in calendar. 2-how many days between 2 dates? how can u calculate it? example : 10/10/2006 - 12/10/2006 there is 1 day between those 2 dates. thanks | |
Hi, I need help with my homework please, its due tommorow and i prommise to show my efforts in the next days :sad: [url]http://www2.filehost.to/files/2006-10-16_03/214316_cplus.jpg[/url] Thanks in advance :) | |
How can i get a selected value from combo box ? i used combo.selectedItem.But it is not working.will u pls give me a solution for this | |
![]() | Suppose I have created a class [B]new [/B]with arguments.I have declared this as object [B]new1[/B] in the main. [I]new new1(arguments)[/I]. Now what should i do if i want to change the values of [I]new1 [/I]object's arguments. ![]() |
Hello, I am interested in knowing your opinion in Java GUI development using AWT and Swing. Each have its own pros and cons. I am wondering which one is most preferable by java developer. AWT or Swing or Both? Please state your reason. Thank you. | |
hi guys, i am in final year of my bacelor degree. Its not a simple BCS honours that i am doing. Its infact computer engineering. It means i have studied robotics and now we are studing automation. SO Just 1 week remaining in choosing a project idea. Still i am … | |
Is there an open source script of some sort, or can how can I make something that takes a backup of a give MySQL Database and every day it daves a .gz of the database toa directory on my server, so it is backed up automatically every day....:cheesy: Thanks for … | |
Hi to everyone, I have been trying to activate "remember me" option in login page of my site. But I have some errors while executing this option. Can anyone help me to solve the problem or any correct URL for activating cookies. Thanks to all.. Bye.. | |
Hi Php gang! Got an amature question and hope one of you can kindly help me: (My tech guy is very sick and I need to have this up and running) I have a php site and the address ends with something along the lines of : mysite/directory.php?cat=123 We have … | |
Hey! I'm writing a program and currently having trouble with getting a written line typed in by the user to be copied correctly into another array... I'm using a for-loop to run through the original char-array, but if I type in "Hello" the program will give me this result: Param … | |
I would require a visualisation to respond to the music being played on the media player as well as the microphone input simultaneously using media player SDK and c++. In other words, the visualisation would need some way of differentiating between the sound coming from the microphone and the sound … | |
I have a basic Java file I/O question. I am trying to read/write from/to a text file (obviously) from within a function that is called by main(). Can you do the following within a function: [code] Scanner inFile = new Scanner(new FileReader("File1.txt")); PrintWriter outFile = new PrintWriter("File2.txt"); [/code] or does … | |
Hi all, I just joined the post. Iam new to C programming. I have a question regarding a problem i found in some book. The problem is i have a input file with student ID, 5 program scores, midterm and final score. i have to check for wrong input of … | |
Hello evrybody, I wanted some help regarding windows form in C# .. I have a label control where i need to put a linkbutton control inside the label control dynamically ,I am able to place a link button but not at the required position inside the label control.. I hav … | |
I would like to implement a function similar to the math function from excel, that is, given a vector and a value in the vector, return the relative position of that value in that container. However, my code [CODE]vector<double> vec; double x = 25.0; int pos = 0; for (int … | |
Hi, I have to make a snake game. i need an array to store allposition of the snakes body. i will also need a variable to store the number of parts in the snakes body. I know that i have to use the number of parts ++ but i dont … ![]() | |
Does anyone know where to download the library from LAPACk to run under C++? | |
Hello! I am a student taking an intro to programming class and I am completely LOST. The assignment is to write a program that simulates an adding machine. I have been working on this for 3 hours and so far I have only been able to get the first line … | |
I want some information about a browser, to be inserted automatically into a text box when a page loads. However quite how to do this im not sure. I have made the form and have a JavaScript which does the job, but I want to know how to get the … | |
HI, Im relatively new to XML and was wondering how I could use DOM to produce a "per shop" report showing a list of the items available in the given shop (shop 1 first then 2), the item description, stock level and calculate a total value of the stock level … | |
hi jack here,i want to which are the best websites who could offer me clear and total info and tutorials on c++ and c programming.. | |
I'm trying to show the balance and interest paid for each month. The balance should go down with each loop until balance is paid in full. The balance will go down but with the wrong amount I don't know how to put an loop in here that will say balance … | |
<code>Does anyone know how do I go about getting user's responces once they've entered their responce into a prompt box & assign it to a variable, to utlimately use their responces to concatenate it with other strings to make a sentence. I'm just having trouble assinging user's input to be … | |
greetings I am currently working on a vision system platform that inspects the marking and orientation of ICs. I have at my disposal is a PC, PIC circuitry, motors, steppers, their respective controllers, and a monochrome progressive scan cameras. The PIC controls all the functions for mechanism as it receives … | |
Hello all, I am a noob to C++ and would appreciate any help that I can get. I am taking a beginner's course and got this assignment: I have to take a users input (i.e. a sentence) and capitalize the first letter of the sentence and make sure each letter … | |
I NEED HELP PLEASE PLEASE PLEASE THE PROBLEM IS [B]Warning[/B]: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [B]/mounted-storage/home23a/sub003/sc21979-KVVZ/www/ghhookup/functions.php[/B] on line [B]28[/B] [PHP]<? $conn_id; $sql_res; $sql_res2; $sql_query; $HTTP_REFERER=$_SERVER["HTTP_REFERER"]; $REQUEST_METHOD=$_SERVER["REQUEST_METHOD"]; function sql_connect(){ global $conn_id,$sql_host,$sql_user,$sql_pass,$sql_db; $conn_id=mysql_connect($sql_host,$sql_user,$sql_pass); mysql_select_db($sql_db); } function sql_execute($sql_query,$wtr){ global $conn_id; $sql_res=mysql_query($sql_query,$conn_id); if($wtr=='get'){ if(mysql_num_rows($sql_res)){ return mysql_fetch_object($sql_res); } else … | |
Hi, folks. I input an RSS news feed on to my site and I use a PHP routine to parse the input. I barely know PHP; basically, I learned just enough to get the feed working. I would now like to make a small edit to the code and am … | |
Apparently this was originally posted in the wrong area :rolleyes: :rolleyes: Anyway.... bit of a cheek I know but if you're feeling ultra generous with your knowledge but can anyone write some code in C using if statements for the following: "A car costs a certain amount. If it is … | |
hi, I have the following problem, I working with the variable "COleDateTime". I have the following code: [code] DATE CurrentTime = COleDateTime::GetCurrentTime(); [/code] This returns the current time of the system Do you know how to add to this current time seconds, minutes, days? Also I need to get two … | |
i have this code to be written in C. i was to make an atm with a unique pin no. required. my prof gave me a copy of the program in c++ and asked me to "convert" it in C. how do you do that? there are so many seperate … | |
This program is supposed to take in four scores two are assignment scores and the other two are test scores it should only take in score that are 0 to 100 me test chain goes someting like this [code] //check for valid data if (test1<0 ||test1>100)&& (test2<0||test2>100)&& (assign1<0||assign1>100)&&(assign2<0||assign2>100) { printf("Error … | |
Here is my problem I am trying to write a program that will estimate the number of boxes of tile needed for a job. A job is estimated by taking the dimensions of each room in feet and inches and converting these into a multiple of the tile size (rounding … | |
I need good free toolkit to working with .flv video format. Join files, splitting etc. Is anyone knows? Thanks for help! | |
I'm trying to figure out how to change the font in part of a large text field in delphi. (At the moment, I'm working with a RichEdit field.) I know it's possible to set the font style for the component, but that changes all the text, which isn't what I'm … | |
Hello to anyone who can help me. I'm a freshman in comp sci and here is my problem: I need to have the user type in a number in a JOptionPane input box, and I need to change the number they input into a double. Here's what I have, it … | |
When calling the date function, or referencing database information from a 'date' field, is it possible to specify what format the date will be returned as? Windows has at least seven formats that I know of, two of which (mm/dd/yy and yy/mm/dd) are impossible to tell apart with my current … | |
![]() | I wasn't able to find anything on this... well, I wasn't sure what to search for. But I'm curious what the advantage of this: age = 3 print "Hello, I am %d years old." % age ...is over this: age = 3 print "Hello, I am", age, "years old." ![]() |
The End.