199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kissiwat

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 …

Member Avatar for Infarction
0
111
Member Avatar for akadri

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

Member Avatar for katharnakh
0
94
Member Avatar for GreenDay2001

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 …

Member Avatar for vitrag
0
92
Member Avatar for matrimforever

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

Member Avatar for ~s.o.s~
0
2K
Member Avatar for nasduck

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.

Member Avatar for iamthwee
0
89
Member Avatar for The Tao Of Bill

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 …

Member Avatar for iamthwee
0
236
Member Avatar for Ries

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

Member Avatar for Ries
0
95
Member Avatar for techkar

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 …

Member Avatar for iamthwee
0
132
Member Avatar for charlesguo25

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

Member Avatar for charlesguo25
0
100
Member Avatar for rowly

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 …

Member Avatar for Ancient Dragon
0
109
Member Avatar for Iron_Cross

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 …

Member Avatar for Ancient Dragon
0
199
Member Avatar for Reiko

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

Member Avatar for Reiko
0
112
Member Avatar for Fenerbahce

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

Member Avatar for ChadW
0
83
Member Avatar for Latifa

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 :)

Member Avatar for jdarvwill
0
128
Member Avatar for praseena

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

Member Avatar for sn4rf3r
0
115
Member Avatar for GreenDay2001

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.

Member Avatar for GreenDay2001
0
89
Member Avatar for rinoa04

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.

Member Avatar for rinoa04
0
75
Member Avatar for naureen

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 …

Member Avatar for Ancient Dragon
0
100
Member Avatar for ivirtua

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 …

Member Avatar for sn4rf3r
0
249
Member Avatar for mahe4us

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

Member Avatar for mahe4us
0
140
Member Avatar for new_girl

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 …

Member Avatar for new_girl
0
130
Member Avatar for Line

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 …

Member Avatar for Line
0
100
Member Avatar for blairwitch

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 …

Member Avatar for Salem
0
72
Member Avatar for jaden403

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 …

Member Avatar for jaden403
0
126
Member Avatar for lavicool

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 …

Member Avatar for lavicool
0
122
Member Avatar for gopan

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 …

Member Avatar for Inanna
0
166
Member Avatar for kimw

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 …

Member Avatar for Ancient Dragon
0
99
Member Avatar for MNR

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 …

Member Avatar for iamthwee
0
642
Member Avatar for gampalu

Does anyone know where to download the library from LAPACk to run under C++?

Member Avatar for ~s.o.s~
0
82
Member Avatar for confused!

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 …

Member Avatar for ~s.o.s~
0
297
Member Avatar for NuGG

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 …

Member Avatar for NuGG
0
165
Member Avatar for nisaa15

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 …

Member Avatar for The Dude
0
183
Member Avatar for jack19

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

Member Avatar for happygeek
0
97
Member Avatar for PPaul1

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 …

Member Avatar for masijade
0
167
Member Avatar for Utkarsh Kukreti
Member Avatar for NPatty

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

Member Avatar for masijade
0
94
Member Avatar for BombAppetit

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 …

Member Avatar for BombAppetit
0
124
Member Avatar for balekic

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 …

Member Avatar for balekic
0
84
Member Avatar for welbyobeng

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 …

Member Avatar for sn4rf3r
0
173
Member Avatar for DavidB

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 …

Member Avatar for sn4rf3r
0
143
Member Avatar for kissiwat

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 …

Member Avatar for Ancient Dragon
0
105
Member Avatar for dev.cplusplus

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 …

Member Avatar for Ancient Dragon
0
648
Member Avatar for super_rookie

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 …

Member Avatar for Ancient Dragon
0
99
Member Avatar for boujibabe

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 …

Member Avatar for ~s.o.s~
0
91
Member Avatar for Eadams20

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 …

Member Avatar for Eadams20
0
278
Member Avatar for jonblow

I need good free toolkit to working with .flv video format. Join files, splitting etc. Is anyone knows? Thanks for help!

Member Avatar for Lord Soth
0
118
Member Avatar for EnderX

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 …

Member Avatar for Lord Soth
0
171
Member Avatar for jeffrey296

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 …

Member Avatar for cms271828
0
138
Member Avatar for EnderX

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 …

Member Avatar for Lord Soth
0
185
Member Avatar for Mouche

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

Member Avatar for Mouche
0
150

The End.