199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yasmena

im having a problem in resizing an image on the Fly and i just need to know is there anything wrong with that line <img src="image_resize.php?image=<?=$arr['picture']?>&max_width=200&max_height=120">

Member Avatar for R0bb0b
0
70
Member Avatar for justinlake888

I am working on a code and I want it to ask if I want it to enter another number... when I hit "y OR Y" it repeats but the code. I don't know how to make it output "bye" when I type "N or n". Can someone please help …

Member Avatar for stilllearning
0
114
Member Avatar for launic

I'm trying to go through a directory and put all of the files into a vector of strings. My problem is that the name of the file is stored, but not its location. Because of this, when I go to open the file later in another function, it doesn't recognize …

Member Avatar for stilllearning
0
98
Member Avatar for StainlessSteelR

I am having a hard time with my homework and I was wondering if someone could help. I have to create a program that uses a while loop to ask questions about a hotel. It first ask the number of the top floor then asks How many rooms are on …

Member Avatar for VernonDozier
0
191
Member Avatar for patricksquare

[code=c] x=0; t=0; int t2=0,t3; while(t<=ref) {t3=t2; for(x=0;x<jbn;x++) { if(t==cpy2[x].at) { if(q>=cpy2[x].bt) { t2+=cpy2[x].bt; tt[x++]=t2; cpy2[x].bt=0; qq++; } else if(q<cpy2[x].bt) { t2+=q; cpy2[x].bt-=q; cpy2[x].at=t2; qq++; } } else break; } t++; if(t3==t2) {t2++;} }; [/code] assuming the values are cpy2[0].at==1 cpy2[0].bt==2 cpy2[1].at==2 cpy2[1].bt==3 cpy2[2].at==4 cpy2[2].bt==4 q==2 qq is just an …

Member Avatar for WaltP
0
112
Member Avatar for Ellisande

How do I write it so if I have ifstream file("file.txt") that has rows of characters like 60 REGULAR NONE GREEN BEGIN REGULAR NONE REGULAR NONE GREEN END that I can read one line at a time and do whatever I need with it.

Member Avatar for VernonDozier
0
95
Member Avatar for anbuninja

so im working on my assignment and it says Percentage of ticket revenue which goes to administrative costs. This input will be entered in percent format (see sample runs below); your program must convert this to a decimal fraction. For example, the user enters 25% as 25, not .25; you …

Member Avatar for anbuninja
0
140
Member Avatar for ChroNoS

I am trying to replace a string with another string in a string, but it is just not happeneing and is driving me crazy :@ and I am really confused :confused: Here is the snippet : [CODE] Dim strHex2 As String strHex2 = strHex.Text Dim Mystring2 As String Dim GG …

Member Avatar for Teme64
0
219
Member Avatar for slayman89

Thank you in advance, i have starred at this for a couple hours now and i have come to no conclusions. First off, this is an assignment to teach us how to use header files, this is the header that we were provided with: Complex.h [code=syntax] #ifndef Complex_H #define Complex_h …

Member Avatar for slayman89
0
100
Member Avatar for BINDERJ2

[code]#include <iostream> #include <iomanip> #include <cstring> using namespace std; int main() { char name[40]; double date1; double date2; double date3; double h1; double h2; double h3; // Name of pole vaulter cout << "What is the name of the pole vaulter? "; cin.getline(name,40); // Month1, Vault1 cout << "What was …

Member Avatar for BINDERJ2
0
113
Member Avatar for #include<DAN.h>

I was just wondering if there was another way to out put text besides cout? I know this probablt sounds weird because cout works perfectly fine and stuff, but I just want to know if all of the input/output has to be done in a cprompt window? Dose anyone know …

Member Avatar for Duoas
0
5K
Member Avatar for FlashCreations

Hello Everyone, I have a little problem with my PHP script. I have created a very detailed system using PHP and wish to upload it to a computer running XAMPP on my network. Because the file will be uploaded to a normal computer all of my PHP files will be …

Member Avatar for FlashCreations
0
249
Member Avatar for Dr_Pepper

Hello, my question is how can I read decimal from txt file? For Example expression "2.0 1.3 +" - postfix to calculate it. The one that I have right now work for integers but when it starts reading it chops of the decimal part. I can figure out what i …

Member Avatar for ArkM
0
130
Member Avatar for Gary_nel

Hi , As posted on a previous tread , i am very new to this whole programming thing...(just starting out) I am trying to write a small program to copy folders and every thing in it to a different location? The Platform is Wince .net (4.2 embedded). I can create …

Member Avatar for Ancient Dragon
0
146
Member Avatar for cperepelitsa

I'm making minor adjustments to a sample program called [b]pdemo[/b] that comes with Dekang Lin's [b]minipar[/b] parser, but I'm having trouble compiling the darned thing without seeing a royal mess of "undefined reference" variables. I'm not particularly well-versed in C++ (I'm far better with higher-level languages), though, so I'm sorry …

Member Avatar for ArkM
0
153
Member Avatar for Mylena

Hello, This is just an extraction from the code. The code below works really well in Mozilla Firefox, but does not work with the <a> and <font> tags in any other browsers. When I remove <a> and <font> tags, it works in other browsers... If anyone can spot the problem, …

Member Avatar for Mylena
0
109
Member Avatar for sharad.kohli

Hi please help me,I am kind of new at php. This is what i have to do please ,provide me with a code if some one can 1)I have files named like 10.txt,9.txt,7.txt etc..//only text files 2)higher the number of the file hisger the priority 3)i just want to use …

Member Avatar for sharad.kohli
0
102
Member Avatar for Sky Diploma

[code=cplusplus] string countx(string sky) { int count=0; for(int x=0;x<=sky.size();x++) { if(sky[x]=='x') { sky.erase(x); ++count; } } stringstream ins; string bang; // Declare an input string stream. cout<<"count " <<count; ins << count; bang = ins.str(); sky=sky+"x^"+ bang; cout<<"Sky == "<<sky<<"\n"; return sky; } [/code] Writing a function that will take …

Member Avatar for Sky Diploma
0
99
Member Avatar for Jennifer84

When reading a txt file I am using .seekg to set the startpoint in the file to read from. linepos has a value: 1002106 First I wonder what this value stands for excatly. As I have understand this is how many characters forward in the file that will be the …

Member Avatar for Jennifer84
0
339
Member Avatar for wsee

Hi, I set HtmlEncode="False" and DataFormatString="{0:mm/dd/yyyy}" in boundfield of a gridview but the month became 00 (18/00/2008). After removing {0:mm/dd/yyyy} from DataFormatString, the month appeared again (2008-09-18 12:00:00 AM) of course together with the time portion that I wish to get rid of. Please help. BTW, whart is {0} stands …

Member Avatar for wsee
0
93
Member Avatar for chococrack

[code] void myClass<temp_Type>::myFunction(myClass<temp_Type>* &firstClass, myClass<temp_Type>* secondClass) { } [call] myFunction(*this, &secondClass); [/code] I think I am fundamentally challenged on the "this" qualifier. I want to pass a pointer to the current object(ie the object I am calling the function from), but am stuck trying to pass the "this". Are there …

Member Avatar for Narue
0
280
Member Avatar for jeevsmyd

Hiii I m just a beginner in C++...Was using turbo c++v3.0... Now just installed Visual c++ 2008 express edition.... Anyone please let me know the main differences between TC++ and VC++?.... how can i make a simple programme written in tc++ run in vc++..which are the modifications?... ".H" could be …

Member Avatar for Narue
0
172
Member Avatar for ShadowOfBlood

As a homework assignment, I was asked to write a program in C++ that calculates the sum of the even and odd integers in a list of integers given by the user. I think I'm on the right track, but I can't seem to get my loop right. Here's what …

Member Avatar for ShadowOfBlood
0
2K
Member Avatar for scott3487

I am trying to make a frame with a label and a button and cannot get it to work. Im not sure what im doing wrong. [code]import java.awt.*; import java.awt.event.*; import java.io.*; import java.lang.*; public class Program3 extends Frame implements ActionListener, WindowListener { private static final long serialVersionUID = 1L; …

Member Avatar for scott3487
0
142
Member Avatar for DevC++4.9.9.2

I am stuck, im trying to insert and print out this list of numbers from a file, however i just get an infinite loop every time... any suggestions? [code=c++] // This is the implementation file for class List #include <iostream> #include <stddef.h> // to access NULL #include "List.h" #include<fstream.h> using …

Member Avatar for DevC++4.9.9.2
0
157
Member Avatar for Rachmaninov

I made the game Mastermind using C++ and would like anyone who wants to test it and let me know what they think. It comes with instructions, but since I wrote them and I know how to play the game, they might not be clear. Note: If this post is …

Member Avatar for VernonDozier
0
6K
Member Avatar for sahdev86

hai guys...ive got prob wit my coding..can anybody help me....there is a syntax error in the code...if i delete id,type,price n desc...the code works wel...for ur information the id,type,price n desc wil display automatically wen user click the food picture...the user only keyin the email,roomno,apartment and quantity...but the db mus …

Member Avatar for PoA
0
110
Member Avatar for redZERO

Hi I'd like to use an array to store values of particular things. I would like names to correspond to each value in the array. What I was thinking was, should I perhaps create 2 arrays: String[] and int[]. Then, when I call data from say example_int[1] I call the …

Member Avatar for Ezzaral
0
112
Member Avatar for ApMignonne

I'm trying to make a program that will read names and numbers from a file, but I'm quite inexperienced in C++ in general, and most tutorials and help threads I read tend to make me confused. So far, I have used a test file with a text like "NameA 01234 …

Member Avatar for ApMignonne
0
106
Member Avatar for c++ prog

this code is a game that uses socket to be able to connect to each other so that there would be a 2player game.. but there something wrong here...here's the code..i'm using linux as my operating system ..this is the client side.. [CODE]#include <stdio.h> #include <iostream> //#include <conio.h> #include <stdio.h> …

Member Avatar for Salem
0
84
Member Avatar for chrissygirl

hey guys, im trying to write a program recursively that takes in how many times the user wants to flip a coin, and prints out all the possibilities. i am having a hard time figuring it out. id apreciate some input. here is the code i have so far... [code] …

Member Avatar for tessen
0
254
Member Avatar for MissPheth

I have a T_STRING error on line 101 line 99: echo(" line 100: <form name=name=add_new action=http://www.nwaoftexas.com/bm_pro/edit_prop.php?prop_id=$var enctype = \"multipart/form-data\" method=post><table id="second" width="600" align="center"> line 101: <tbody> line 102: <tr> line 103: <td align="center"><img alt="" src="logosoft2.jpg" /> </td></tr> line 104: <tr> line 105: <td class="heading" align="center"><a href="/bm_pro/index.php">Home</a> | <a href="/bm_pro/brochure.php?&amp;prop_id=$var">Create Brochure</a> …

Member Avatar for R0bb0b
0
193
Member Avatar for terme22

How do i get it to cout what the pointer points to and not the pointer address? [code] int main() { Item* items[10]; items[0] = new Item(5); items[1] = new Item(3); items[2] = new Item(4); items[3] = new Item(9); items[4] = new Item(2); items[5] = new Item(0); items[6] = new …

Member Avatar for chococrack
0
127
Member Avatar for sunveer

the below code is to allow user to enter many strings of characters until he enters a fullstop (.) Please tell me how can i calculate the total number of strings the user has entered. #include <iostream> void main() { char a[80]; int i,c=0; for(i=0;;i++) { cin>>a[i]; if(a[i]=='.') break; } …

Member Avatar for bhoot_jb
0
127
Member Avatar for STUDENT#101

hi all! how do I multipluy values inside the array I have tied the following but the compiler is giving me a error double a=(h[0]*b[1])+......

Member Avatar for Freaky_Chris
0
116
Member Avatar for matejkralik

Hello people, I need your advice, what to do. I use LINQ stored procedure to select all data from sql table to DataGridView: EtiketyLINQDataContext EtiketyData = new EtiketyLINQDataContext(); IEnumerable VypisDat = EtiketyData.Vypis("Cislo", "Typ", "Hrubka", "MaterialTyp"); LINQdataGridView.DataSource = VypisDat; The problem occurs with this line: `IEnumerable VypisDat = EtiketyData.Vypis("Cislo", "Typ", "Hrubka", …

Member Avatar for matejkralik
0
553
Member Avatar for Thirusha

My head is telling me that the answer to this question is going to be NO, but hopefully i m wrong. I have a servlet which gets redirected using RequestDispatcher to a jsp page, the jsp page has some html input fields. In the servlet i get the values from …

Member Avatar for Thirusha
0
115
Member Avatar for The_Bear

Hey everyone, I'm a new python user. I'm running SuSe linux development 10. My problem is with importing files. Here is my file - it uses the myro library for robot programming. /dev/rfcomm0 is the name of #helloWorld.py from myro import * init("/dev/rfcomm0") def hello(): forward(.5,.5) stop() hello() --- From …

Member Avatar for Stefano Mtangoo
0
182
Member Avatar for chinnareddy

hai i have few .bak files like (abc1.bak,abc2.bak) are stored in sample.xml file.I need to Retrieve those .bak files and store in c:\ drive plz help me...... thanks in advance chinnareddy

Member Avatar for scru
0
86
Member Avatar for StephanJos

Hi! Can anybody please help me to add many strings in one? I tryied this int a=4,b=5,c=6; string d; d = #a+" Hello "+#b+" bye "+c; I want that d = 4 Hello 5 bye 6 Please help me!

Member Avatar for Ancient Dragon
0
190
Member Avatar for chinnareddy

hai , i have a sever in that thare are Z and E drives are there.i have .bak files in Z drive.i need to copy all .bak files into E drive by using c#.net . plz help me........ thanks in advance.... regards chinnareddy

Member Avatar for scru
0
106
Member Avatar for archway

Hi Sorry, new to this. I understand when using a form to upload image files and information into a mysql database it is best practice to store the image in a directory and the image path in the mysql table. The following code stores the image into a directory and …

Member Avatar for archway
0
156
Member Avatar for core2d

I have this problem where you have a list of odd or even number of items in doubly link list and you have delete the middle one. For the even number one you delete the two middle elements, say you have 1,2,3,...,10 you delete 5 and 6, and for the …

Member Avatar for Sky Diploma
0
132
Member Avatar for ae012

hello! im trying to make a program where entered values should be displayed in a tabulated form. however, as far as i know, everytime we enter a value and press ENTER, the cursor goes to the next line. is there any way where in if a user enters a value …

Member Avatar for ae012
0
93
Member Avatar for jeevsmyd

hii friends..Am new to this community... am a computer science student... I need your help in creating a small c++ game... Its a project for me... I am told to do it in turbo c++... okay... the game is so simple... [U][I][B]A number memory game... random numbers should be displayed …

Member Avatar for Sci@phy
0
657
Member Avatar for shiniboy

[code=cplusplus] #include <iostream> #include <iomanip> #define _USE_MATH_DEFINES #include <cmath> using namespace std; double meanOf3(double value1, double value2, double value3) { double mean; mean = (value1 + value2 + value3)/3; return (mean); } int main() { float value1, value2, value3; double mean; mean=0; cout <<"Enter the first integer whose square root …

Member Avatar for Sky Diploma
0
138
Member Avatar for avsparmar

i am building a web chat application for mobiles. Registration form for new users currently includes username , password , re-enter password and a submit button to send all to a form bean. i am having problem to create a link or a button to send the input of 'username' …

Member Avatar for sbhavan
0
274
Member Avatar for sanwanion

well friends i am new to jsp please suggest me appropiate links to start with... all suggest the way to configure tomcat to run properly..........

Member Avatar for sbhavan
0
82
Member Avatar for viswa_007

I have got 2 problems... 1) How can I find the visible no. of rows in a datagridview and the index of the top row during vertical scroll.I am using visual studio 2005 windows application in c#. 2) How to refresh datagridview's particular no. of rows instead of refreshing the …

Member Avatar for viswa_007
0
98
Member Avatar for eddyhutchins

Hi again, I worked out my other problem. But now am having problems passing an array from one form to a textbox in another. I have taken items from a listbox and added them into an array. To pass the array into the following form I have used; [code] Form …

Member Avatar for LizR
0
110

The End.