64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for toko

i was wondering whenever you create a file in c++ where does it go cuz i've never seen anyone specify the root..

Member Avatar for toko
0
95
Member Avatar for toko

Okay, i have written a code to figure out the area of all different shapes but i can't get it past hte pasrt where the client chooses what they want to find the area of. this is my code: [CODE]#include <iostream> #include <cmath> using namespace std; int getChoice(); int circle(); …

Member Avatar for toko
0
300
Member Avatar for Cerberus

Hi all. How do you get values from an appended url string using JSTL? For example: redirect.jsp?pageid=23 -how would i get that value? Thanks.

Member Avatar for Cerberus
0
75
Member Avatar for Fool

i have to decide a program to "satisfy" my crazy private tutor .This program reads in 2 input extremely large postive integers. It will then output their sum. However , as C++ got limit in int, so i think i need to use string variables to represent the values..then use …

Member Avatar for Fool
0
317
Member Avatar for SheSaidImaPregy

Hello, I need to remove letters and characters from a request.querystring in order to convert it into an integer. This is only extra precaution from people screwing around in the address bar directly. I have enough protection in place to protect errors. Let's say that I want to retrieve a …

Member Avatar for sauru_garg
0
359
Member Avatar for Linda1

I am very new to C++ and one of my homework assignments involvemulti dimensional arrays. I was able to initialize and input and display the array (4x4) but the last step is to swap the data of the row to that of the column. Tried different ways and unable to …

Member Avatar for Linda1
0
128
Member Avatar for thompsongunner

I'm trying to get a grasp of inheritance in Python but am having problems. I am trying to create a derived class but want the derived class to only provide an initialized instance of the base class. Specifically I would like to inherit from [inlinecode]OrderedDict[/inlinecode] as shown in the following …

Member Avatar for jrcagle
0
289
Member Avatar for Llama

I want to make a code that searches a text file and finds a certain string, and then changes that string to another string. First im going to have it input the whole file, and i am couting it too, so that i can make sure it worked. But it …

Member Avatar for Llama
0
155
Member Avatar for WhitePunk

i have a code of a projectile but... can these code be shorten or not??? i need new version of this and some times if i played this one some error was done hope you could help me to fing the error Option Explicit Dim Angle, Theta, y, x, t, …

Member Avatar for preetham.saroja
0
161
Member Avatar for Prozeen

Hi all, I would like to save my project's code in a text file when the project runs (so that I can keep track of any changes) I know how to open/print/write/close a text file, but how would I capture the code that is running? Any ideas/links/thoughts? Thanks.

Member Avatar for Prozeen
0
114
Member Avatar for liphoso

Can any one help..... I am relatively new to programming and I would like to learn a bit of C++. I dnt want to purchase a book as yet (mainly because i cant afford one at the moment). Can any one refere me to a site from which I will …

Member Avatar for eranga262154
0
82
Member Avatar for Prozeen

Hi, I am displaying a dialogbox to the user. If the user clicks the "Cancel" button I want to show a message box, then I want to continue displaying the dialogbox. The best I can come up with is...[code]Do comdia.Filter = "*.doc" comdia.InitDir = "C:\" comdia.filename = "file01" comdia.ShowSave On …

Member Avatar for Prozeen
0
237
Member Avatar for zandiago

[CODE] #include <iomanip> #include <cmath> #include <fstream> #include <string> #include<string> #include<iostream> using namespace std; int main() { int num1 = 0; int num2 = 0; char again = 'y'; while (again=='y') { cout<<"Please enter two numbers to compare "<<endl; cin>>num1>>num2; cout<<"The two numbers entered in order were "<<num1<<" and "<<num2<<endl; …

Member Avatar for zandiago
0
7K
Member Avatar for jrcagle

I'm writing a lesson on debugging for my students. They will have already had a lesson on how to read code and do walkthroughs, either manually or using the debugger. They currently know about [B]if[/B], [B]while[/B], types, math operators, and have some experience with but no formal training in functions …

Member Avatar for jrcagle
0
100
Member Avatar for preetham.saroja

hai, Its very urgent.can somebody tell m,how to add two textboxes and then display the result in the third textbox ,using keypress -in javascript.... regards....

Member Avatar for preetham.saroja
0
170
Member Avatar for MrShoot

Hi, this is my first forum message so I'll make a brief introduction. I'm from Canada and I am Computer Science student. I enjoy working with computers, specially web programming. It has come to my attention (and also a school requirement) to learn Python. So here I am with my …

Member Avatar for Ene Uran
0
161
Member Avatar for ray_broome

Ok, i have a database where i'm storing information on plants and in one of the tables is a plants table: here's the first few fields in the table plants: [code] plant_id, family_id, genus_id, species_id, auth1, auth2, ... [/code] plant_id is the pk, family_id, genus_id, species_id are foreign keys. soon …

Member Avatar for ray_broome
0
194
Member Avatar for zandiago

Write a c++ program that will read in, from a file entitled "word.txt", an unknown number of single words (no spaces ). The program will then print out the word, move 2 tabs to the right, display the word with the first letter removed, move 2 tabs to the right, …

Member Avatar for zandiago
0
413
Member Avatar for vyadagiri
Member Avatar for stymiee
0
64
Member Avatar for amorphis_gr

i hace a class in c++ bcw [code] class Student { public: private: unsigned int sIdNum; char sSurname[20]; char sFirstname[20]; char mathid[10]; };//Student [/code] i need a function that fills a Student type dynamic array from a bin file called binfile1.dta the array starts with size[30]. And then do the …

Member Avatar for Ancient Dragon
0
128
Member Avatar for zandiago

Good day. I recently purchased a TI-84 calculator and realized that it has some programming commands as a c++ compiler would. Is it possible to load a c++ program on a ti-84 calculator...thx

Member Avatar for zandiago
0
99
Member Avatar for plusplus

I have a frame, inside it a few labels and text boxes. At some point while the program is running I want to move that frame to a different position. Is it possible to move it with all the lables and textboxes without moving each label and textbox?

Member Avatar for plusplus
0
121
Member Avatar for plusplus

The way I understand it, is that rowdata and coldata can be used to keep some data for some specific row or column. What if I want each cell to have some data go with it, how can I do this? I need this to identify what each cell contains.

Member Avatar for QVeen72
0
693
Member Avatar for parthiban

Hi all, I learned that "local static variable" with in a function is not allowed in JAVA as in C++. I guess it violates the rule of "static" as it's should not depend on objects but is there any alternative way avaiable to accomplish that ? (i.e scope is restricted …

Member Avatar for parthiban
0
369
Member Avatar for DeadJustice

I didn't think I'd need help again, but I'm pretty sure its not as bad as last time. I'm trying to increment the time in Time2.class, and that compiled. The problem is I can't make a class to use it as per the assignment, and that's because I used void …

Member Avatar for DeadJustice
0
2K
Member Avatar for Silo45

[code=assembly] mov ax,35000 mov bx,4096 div/idiv bh [/code] why is it that i get a dividle by zero error when i do this. What Ive done so far.. [b][u]DIV[/u][/b]: Please double check i might have messed up. ax = 88B8h bh = 10h [b][u]IDIV[/u][/b]: Please double check i might have …

Member Avatar for Silo45
0
309
Member Avatar for somers

I am looking for some help with the fibonacci in Mips. Yes, I am a student (part time). Yes, I have made an attempt which is below. Yes, I have tried looking for help, hence me finding this forum. I have the values for the previous value, $t3, and the …

Member Avatar for somers
0
488
Member Avatar for eddy518

I have to ge t the result using call by reference. I'm receiving 4 errors??? from my understanding, I have 'declared' total before main. Quite frankly, I'm not getting why not declared it on display_output nonetheless?? and why total is still not being recognized?? Thanks in advance for the help! …

Member Avatar for ChaseVoid
0
132
Member Avatar for plusplus

what's wrong with this statement? adobau.RecordSource = "SELECT * FROM tblbau WHERE year(Bau_datum) => " & Jahr_beg & "AND year(Bau_datum)<= " & (Jahr_beg + intyears)

Member Avatar for plusplus
0
113
Member Avatar for nnobakht

Hey guys, i have a linkedlist called CDArtist and one called CDTitle. i have all the functions and classes written and working except one which i have no idea how to. I need to be able to delete a CD by the name of the title or artist but this …

Member Avatar for Ezzaral
0
186
Member Avatar for apchidara

hi every one I want to weite a pice of code that if specific condition happened I set the focus on a textbox. I prefere that have a colornotification as well. any one knows how to do that.in vb.net express

Member Avatar for apchidara
0
175
Member Avatar for divya.padukone
Member Avatar for world_weapon

Hello Everyone, I was trying to figure out why this particular mysql_query() doesn't return false and how to deal with it. First of all, I have a table (call it table1) with only one row in it. The one row has a 2 in the user_id column. So when I …

Member Avatar for world_weapon
0
147
Member Avatar for Eclipse77

Hi everyone, I'm new here and I'm looking forward to seeing how everyone codes in python. I'm a complete newbie, who has never done any programming in his whole life (except for the past 2 week). I read the guidelines about asking for help on assignments, and I wouldn't have …

Member Avatar for jrcagle
0
176
Member Avatar for toko

Okay i am trying to make a lock this is my code: [CODE]#include <iostream> using namespace std; int main () { char key [10]="abcd"; char answer[10]; cout<< "password:"; cin >> answer; if( key == answer) cout << "correct"; else cout << "incorrect"; return main(); }[/CODE] when ever i try to …

Member Avatar for toko
0
125
Member Avatar for parthiban

Hi all, I'm a beginner in JAVA studying SWING. I learned that if we want to handle an event for a event source(say JButton) we should implement corresponding Event Listener(say ActionListener) . I also understood that we should register the Listener with that event source. With that knowledge I tried …

Member Avatar for parthiban
0
106
Member Avatar for Pro2000

Hi guys, I wrote: [CODE] <?php $WACnt=33; while($WACnt>=0) { require("Wordsarray.php"); $enn=preg_replace("/".$normal[$WACnt]."/i",$tidied[$WACnt],$enn); $WACnt--; } ?> [/CODE] The browser said: [B][QUOTE][B]Warning[/B]: Unknown modifier 'g' in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] [B]Warning[/B]: Compilation failed: nothing to repeat at offset 0 in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] [B]Warning[/B]: Unknown modifier 'b' in [B]e:\appserv\www\chat\chat\Rooms_Func.php[/B] on line [B]223[/B] …

Member Avatar for Pro2000
0
195
Member Avatar for rghai6

Hi, i've been trying to create a program for implementing high/low pass filters on images. I get the data from a 24 bit .bmp file using the old file handling techniques. The file handling portion of my program works like a breeze, it is the arrays that are giving me …

Member Avatar for rghai6
0
124
Member Avatar for cowboys111

Hi i am writing a program to calculate the area of a shape using functions. I got the program to work fine when there was only one function and one shape however when i added the second one the program will still run both functions. That is even when i …

Member Avatar for ChaseVoid
0
105
Member Avatar for Prozeen

Hi, this is a mathematical question, but I'm doing it in VB so I thought I'd post it here... A person is shown a total of 10 numbers. When a number appears on the screen they have to type that number into a text box and if they get it …

Member Avatar for zmariow
0
2K
Member Avatar for n.aggel

hi, i am reading the book "The c++ standard library -- a tutorial and reference"{N.M.Josuttis} in the beggining of the 6th chapter it says{in regard to container initialization}:: [CODE=c++] std::deque<int> c( (std::istream_iterator<int>(std::cin)), (std::istream_iterator<int>()) );[/CODE]{the weird indentation is on purpose} instead of:: [CODE=c++]std::deque<int> c(std::istream_iterator<int>(std::cin), std::istream_iterator<int>());[/CODE] because [QUOTE="N.M.Josuttis"]In this case, c declares …

Member Avatar for n.aggel
0
114
Member Avatar for Exelio

hi all, i have the following xml file. <rss version="2.0" xmlns:media="http://tools.search.yahoo.com/mrss/" > <channel> <title>SWF media</title> <link>http://www.blogdigger.com/media/</link> <description>Recent .swf files found by Blogdigger</description> <item> <title>Dollar Bus Rolls Into Town</title> <link>http://feeds.feedburner.com/Chicagoist?m=1115</link> <description>some description</description> <pubDate>Thu, 23 Mar 2006 14:11:57 EST</pubDate> <enclosure url="http://www.kitschn.com/flash/MenuCoverPage-DrinksMenu09-05.swf" type="application/x-shockwave-flash"/> <media:content url="http://www.kitschn.com/flash/MenuCoverPage-DrinksMenu09-05.swf" type="application/x-shockwave-flash"/> </item> <item> <title>E-mail</title> <link>http://billarnold.typepad.com/poet_in_motion/2006/03/email.html</link> <description>description 2/description> <pubDate>Wed, …

Member Avatar for Exelio
0
188
Member Avatar for Qpido

I'm currently making a program that gives the person who uses it information about the costs for a shipment. The transport company changes it numbers quite often, so in Excel the numbers are easier to change. I want to have, let's say, C3 be displayed every time in VB in …

Member Avatar for Qpido
0
168
Member Avatar for SheSaidImaPregy

I am trying to alter some SQL to use parameters. I bypassed this earlier as it was just not working but am now heading back to tidy up. For some reason I cannot get this to work, keep in mind I am using Odbc: [code]SQLString = "SELECT * FROM Stories …

Member Avatar for SheSaidImaPregy
0
94
Member Avatar for alexasmith

I am in a beginners java class and I have an assignment that is really difficult (for me). the assignment is to prompt the user to enter a person's full name in the order: first middle last. Output will include: the prompt the original name the name in the form …

Member Avatar for peter_budo
0
146
Member Avatar for woopsor

I am new to JSP and am having trouble with an if statement. [code=jsp] <c:if test="#{authorizedProduct.product.product.orderMethod}=='H'"> <h:outputText id="orderMethod" value="#{authorizedProduct.product.product.orderMethod}"/> </c:if> [/code] The order method does equal H because it will display that if I don't put in inside the if statement. Can someone help me with my if statement syntax …

Member Avatar for woopsor
0
68
Member Avatar for kehar

Hi I have used three combo box in VB 6 form one for selecting date one for month and one for year. If the selection is say 12/07/2007 then I need it to be converted as 12/07/2007 under one field i.e date field of access database. So how can I …

Member Avatar for hopalongcassidy
0
114
Member Avatar for jyovasinedu
Member Avatar for nuBudDy

hi all, i have problem creating queries in access.this is because i do not know how to call the value from a variable in vb into the query in access. let say in vb i've created : [code] Public booking_date As Date Public fac_type As Integer . . . . …

Member Avatar for kehar
0
164
Member Avatar for Duki

here's my printing code: [code] Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage Dim printlinestring As String Dim horizontalPrintLocationSingle As Single Dim verticalPrintLocationSingle As Single Dim printfont As New Font("arial", 12) Dim lineheightsingle As Single = printfont.GetHeight horizontalPrintLocationSingle = e.MarginBounds.Left verticalPrintLocationSingle = e.MarginBounds.Top PrintPreviewDialog1.Document = PrintDocument1 …

Member Avatar for Duki
0
150

The End.