132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lleighob1011

My assignment is rather lengthy and kind of confusing to explain. I have to write a code to sort of create a book store. It needs to create a struct named book and have the user enter the book number, price, and copies sold. There must be at least 5 …

Software Development c++
Member Avatar for ithelp
0
134
Member Avatar for opposition

Hey, I am trying to read in a random number of ints from a file into an array of pointers, while also incrementing the size of the array to match the number of new ints... I have come up with this piece of code which somehow works, but doesnt store …

Software Development c++
Member Avatar for ithelp
0
81
Member Avatar for Sci@phy

Hi all. I've written my own class Complex, that stores complex numbers. I've overloaded a whole bunch of operators so that you can work with them like with normal numbers. Then i wanted to overload 'new', but I tried it before overloading, and it "seems" to be working. I can …

Software Development c++
Member Avatar for kux
0
93
Member Avatar for cutedipti

h! friends i am not gettin output for below program.. it shows [B]segmentation fault[/B]...:-O can any one suggest me on this.... [code=c] #include<stdio.h> #include<string.h> int main() { char *str1="United"; char *str2="front"; char *str3; str3=strcat(str1,str2); printf("\n%s",str3); return 0; } [/code] thanks:)

Software Development c
Member Avatar for ithelp
0
93
Member Avatar for theory

I am programming in vb6 and am trying to cause ctrl-a to "select all" in a list box, but am not having much luck. Does anyone have any ideas on how this might be accomplished? Thanks, theory

Software Development visual-basic
Member Avatar for CommGuy
0
234
Member Avatar for jmn0729

Is anyone interested in helping an RHCE learn python. I'm reading right now, but I have some scripts I need to write that will help a University "Linux Security" class. The scripts will be used to grade case studies. Thanks, RHCE #805008527832836

Software Development python
Member Avatar for jmn0729
0
115
Member Avatar for leverin4

This is a VERY basic program to calculate the area of a circle, triangle, or quadrilateral. The interface we run the program on is STOP, so we can only use numbers to run the program once it is compiled. This is the reason there aren't any strings or anything like …

Software Development java
Member Avatar for stultuske
0
83
Member Avatar for Ixeman

Ok Well, in vb6 it's completely easy. For an example, im trying to convert this to vb.net but im kinda struggling. For Example, i don't know what the new get and put statements are in vb.net. [code] Dim aS As String Dim aF As String Open App.Path & "\s.exe" For …

Software Development vb.net
Member Avatar for Ixeman
0
217
Member Avatar for EkoX

How can i playing wav file on my application? Im using vb.net 2005. Thank you very much...

Software Development vb.net
Member Avatar for Ixeman
0
164
Member Avatar for Prathvi

I am developing an application to Windows Mobile(WM 5). Using CAB am installing the application on the mobile. My problem is that I have to use a different FONT in my application. Can anyone provide me the code to install the font using c++/vc++? What i know regarding this is …

Software Development c++
Member Avatar for Prathvi
0
274
Member Avatar for JONZ

Can anyone add some codes in my program so that it could output a receipt which would display the name of the items bought with their price..:) [CODE]#include<stdio.h> int item_details (); int payment (int x); int add_item (int x); int main () { int choice,price; printf("Enter 1 to buy.\n\n"); printf("Enter …

Software Development c
Member Avatar for Ancient Dragon
0
213
Member Avatar for Agni

Hi, Below is my test code, i have a list of names in a file, i read the names and i have to insert them as menu options in the menubar. Since its a dynamic menu and people can add new menu's it has to be read from a file …

Software Development python tkinter
Member Avatar for Agni
0
242
Member Avatar for gopi17

Hello there.....i just learnt how to use the the oleDb commands to insert into the a database i created from vb.net,but the problem is.....i cannot insert anythin else than OleDbType.VarChar or i dunno how to insert anything else this is my code......i need help to insert the value of my …

Software Development vb.net
Member Avatar for Elmo_loves_you
0
247
Member Avatar for Eswar.P

How can i set screen height based on resolution ? and i have a gridview in my page.when screen height is 768 page size of gridview is 7. screen height is 864 page size of gridview is 10. screen height is 960 page size of gridview is 11. screen height …

Software Development vb.net
Member Avatar for Teme64
0
100
Member Avatar for monkey_king

Hi, I've been implementing my own array class, and I've finally started to use it. I do have one question, [CODE=c++] Array<int> ary1(3);ary1(0)=2;ary1(1)=4;ary1(2)=7; //just an array Array<int> ary2(3);ary2(0)=1;ary2(1)=2;ary2(2)=6; //just an array cout << ary1; cout << ary2; Array<int> ary3 = ary1+ary2; cout << ary3; //everything till this point works //is …

Software Development c++
Member Avatar for dougy83
0
93
Member Avatar for Kelly4270

I have a background that has the hover capability, but I want to get rid of the hover and make it one color. I know a little bit about this, but not enough to fool around with it too much. Can anyone help me? Thanks!

Software Development java
Member Avatar for Phaelax
0
81
Member Avatar for EDDYGATE

I have written a browser in java but it is only able to display saved web pages on my computer or html files created by me. It is not able to display a page when i type any URL in the address bar. Please help me Here is the code …

Software Development java java-swing web-browser
Member Avatar for Phaelax
0
103
Member Avatar for AutoC

Hi, Lets assume my preorder traversal gives me a unique tree.How do I get the tree from the preorder traversal? Any help is appreciated

Software Development c++
Member Avatar for Alex Edwards
0
135
Member Avatar for sInFuL69er

Hi everyone, I got a small problem with my JList with MULTIPLE INTERVAL SELECTION. When i click on a item it adds the price to the total and when i ctrl+click another item it again adds the price to the total Then problem is when i deselect one of the …

Software Development java
Member Avatar for Phaelax
0
142
Member Avatar for jyotiu

Hi all, I have a html file, i need to extract name , address and phone no. from it. now name is in <span class="name"></span> add is in <span class="list_address"></span> phone is in <span style="display:none" ID="phoneVal11"></span> I have used following code for getting name,add and phone: [code] <?php function get_name($file){ …

Software Development html-amp perl
Member Avatar for KevinADC
0
156
Member Avatar for hervens

Hello I was wandering if anyone knows any good hardware programming tutorials, or books in c++ I'm not a c++ expert, but i feel very comfortable with the language, and read Sam's teach yourself c++ in 24 hours. What i basically want to do, is interresting stuff like, controlling an …

Software Development c c# c++
Member Avatar for dougy83
0
350
Member Avatar for R3B3L

[B]TEXT file csvSTOCKS.TXT contains the following:[/B] Stock 1,200,300,200,200 Stock 2,200,300,200,200 Stock 3,200,300,200,200 Stock 4,200,300,200,200 Stock 5,200,300,200,200 [B]I'm attempting to read each line in the text file and put it in the array of strings lines()[/B] [code=vb] Dim sr As StreamReader = New StreamReader("csvSTOCKS.TXT") Dim lines() As String Do While (sr.Peek …

Software Development vb.net
Member Avatar for waynespangler
0
1K
Member Avatar for cutedipti

H! plz solve a problem..............! See I want to take continuous four input from the user, out of which three are character type and one is of int type. So my problem actually is that, it accepts only three input i.e. 2 char and one int & for remaining char …

Software Development c
Member Avatar for cutedipti
0
111
Member Avatar for bamabambhole01

Hii, C++ is new for me. I have two problem A and B , I need solution of A in B and B in A . I made a pointer in A to copy solution of B but when I am doing same for B to A , it is …

Software Development c++
Member Avatar for bamabambhole01
0
94
Member Avatar for asifjavaid

Hi fellows, How can I set a value of any type in VARIANT const pointer? I am tried my best but vain. I am facing compile time error. Here is sample code [CODE]VARIANT *v=NULL; v->bstrVal = "Video.Bin"; another try VARIANT *pValue; //BSTR *fileName; const char* pName; pName = "Video.bin"; pValue …

Software Development c++ video
Member Avatar for asifjavaid
0
2K
Member Avatar for NinjaLink

I have to write a program that will read a file that lists the scores for two teams. 1st 2nd 3rd 4th Visitors 17 18 21 20 Final Score: 76 Home 21 22 24 16 Final Score: 83 Input file will look like: 17 18 21 20 21 22 24 …

Software Development c++
Member Avatar for vmanes
0
1K
Member Avatar for iamthwee
Member Avatar for selvaganapathy
0
159
Member Avatar for swbuko

I've got 5 arrays each with one number in them, but in order to sort them using the insertion method, I need to combine them into a single array. How do I do this? This is the last part of my program and can't figure it out!

Software Development c++
Member Avatar for VernonDozier
0
112
Member Avatar for predator78

[COLOR="Green"]Hello all, I'm new to the forum and also to python :D. Anyway I have been enjoying it quite a bit and wanted to start into something a bit more technical. So I though sockets would be a good start. I found a great sight , but the first script …

Software Development client-server python socket-programming
Member Avatar for predator78
0
146
Member Avatar for JustLearning

This is the header file provided by my instructor. [code] // // unsortedlist.h // #ifndef UNSORTED_LIST_H #define UNSORTED_LIST_H struct UnsortedListNode // Description of list node { char ch; // Stores one character input from file UnsortedListNode* nextPtr; // Stores address of next node }; class UnsortedList // Linked list implementation …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
182
Member Avatar for dimega

Hi there, How would I go about setting a date/time to 0? Basically I want the time to be 00:00:00 so that when I use the addseconds function of say 120 seconds it reads 00:02:00 Any help would be much appreciated.

Software Development visual-basic
Member Avatar for selvaganapathy
0
91
Member Avatar for balakrishnan.kb

what is the difference between virutual keyword in c++ and final in java

Software Development c c# c++
Member Avatar for Alex Edwards
0
108
Member Avatar for rockbd

hello!! i am a new programmer!! i started with turbo c 4.5. just installed borland Turbo c++. the used same codes as 4.5 but got problem with output screen. i cant see the programs output screen after the program ends!! can anybody tell me how to active it?

Software Development c++
Member Avatar for obj7777
0
155
Member Avatar for zwench

This is what it is supposed to do. If this helps. This file should read the records from the Graduate file first, in sequential order as the “View Student” button is pressed. When the program reaches the end of the Graduate Students records, it should modify the JFrame to display …

Software Development java java-swing
Member Avatar for zwench
0
179
Member Avatar for Will67

Hello i am a bit new in C++. i started to take C++ 4 days ago hehe and honestly i love it. now im trying to do is a 3x3 determinant and it is giving me a small problem i tried to find this. 1 2 3 4 5 6 …

Software Development c++
Member Avatar for Will67
0
744
Member Avatar for stormtr00per

I'm trying to write a program that will simply move a file from "FILENAME.TXT" to "CURRENTDATE-CURRENTTIME-FILENAME.txt" and am having problems. The error I'm getting is cannot convert from char to char[] Here is my simple code: [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { time_t now; char the_date[12]; the_date[0] = …

Software Development c++
Member Avatar for Ancient Dragon
0
122
Member Avatar for monkey_king

Hi I'm doing a templated matrix class, and I'd like to be able to pass a function pointer to a function that uses the rows. [CODE=c++] template<typename T> T sum(Array<T> &a){ // a simple function that return the sum of an Array T res=0; for(int i=0;i<a.length();i++) res+=a(i); return res; } …

Software Development c++
Member Avatar for monkey_king
0
8K
Member Avatar for Stefano Mtangoo

I want to subclass My App and I hit the wall. If I don't subclass it works! WHAT IS WRONG HERE???? [ICODE] import wx ID_NEW = 10 ID_OPEN = 11 ID_CLOSE = 12 ID_SAVE = 13 ID_SAVE_AS = 14 ID_PAGE_SETUP = 15 ID_PRINT_PREVIEW = 16 ID_PRINT = 17 ID_EXIT = …

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for qwix123

Hello, this is my XML: [CODE] <OPTIONS> <ROW NUM="1"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>144795</ID> <CUS_UK>20544</CUS_UK> <DESC_LONG>KELEME</DESC_LONG> </ROW> <ROW NUM="2"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>69449</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="3"> <ROW_NUM>1</ROW_NUM> <INVOICE_NUMBER>000001</INVOICE_NUMBER> <ID>4125</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="4"> <ROW_NUM>3</ROW_NUM> <INVOICE_NUMBER>000002</INVOICE_NUMBER> <ID>4152</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> <ROW NUM="5"> <ROW_NUM>3</ROW_NUM> <INVOICE_NUMBER>000002</INVOICE_NUMBER> <ID>69486</ID> <CUS_UK>15249</CUS_UK> <DESC_LONG>PETRIMEX</DESC_LONG> </ROW> </OPTIONS> [/CODE] What …

Software Development xml
Member Avatar for gravyboat
0
123
Member Avatar for vuyiswamb

Good evening Everyone My VS is behaving n an unnormal way. I have 9 Project in a Solution and i have set one of the Projects as a Startup Project and created a Setup project, after i Built it to create an exe, The Project that gets Started is not …

Software Development
Member Avatar for vuyiswamb
0
98
Member Avatar for Nefer

Hello, I am quite new with XSLT and I need to convert this xml: <?xml version="1.0" standalone="yes"?> <assesmentItem> <choiceInteraction responseIdentifier="correctresponse" title="title" discipline="discipline1" dificulty="dificulty1" timexpected="20" basetype="choice" cardinality="single"> <prompt>answer1</prompt> <simplechoice0 >response0</simplechoice0> <simplechoice1 >response1</simplechoice1> <simplechoice2>response2</simplechoice2> </choiceInteraction> </assesmentItem> into this one: <?xml version="1.0" standalone="yes"?> <assesmentItem> <choiceInteraction responseIdentifier="correctresponse" title="title" discipline="discipline1" dificulty="dificulty1" timexpected="20" basetype="choice" cardinality="single"> <prompt>answer1</prompt> …

Software Development xml
Member Avatar for gravyboat
0
148
Member Avatar for JoBe

Hi all, I have a class which contains a struct that holds some variables, string, int's. Now, one of the variables (string) in the struct is used to compare it with a name, if the name is in the struct, it has to be [COLOR="Red"]returned from my function [/COLOR]with it's …

Software Development c++
Member Avatar for JoBe
0
140
Member Avatar for leegeorg07

hi again i thought of a program simply to use to save time in checking my emails by somehow connecting to my login and downloading all the emails. this could later be expanded into using multiple accounts. can anyone give me a nudge in the right direction to start this?

Software Development email python
Member Avatar for leegeorg07
0
105
Member Avatar for melissajohn718

Write, compile and run a C++ program named that reads in one integer that represents a total number of hours and then displays the equivalent number of weeks, days and hours, all properly labeled. Have your program only do the calculation if the user enters a number less than 30,000 …

Software Development c c# c++
Member Avatar for Narue
0
182
Member Avatar for Duki

We're trying to get our C# program to work on linux. We just loaded into Mono, and it compiles fine but the form doesn't appear. Anyone know what? Does it have something to do with it being a "windows form"?

Software Development c c# c++
Member Avatar for Duki
0
165
Member Avatar for moshe12007

sorry about my english i make a game and i need to use on interrupt i/o(input), someone can to help me?? the code is : [ICODE] cout<<"Enter num : "; for(i=1; i<=100000000; i++){//its loop time // here the interrupt // when the user click some key its //stop the loop …

Software Development c++
Member Avatar for Salem
0
178
Member Avatar for daniel50096230

Hi,I had created a Combobox called cboStart at the GUI form...Now I would like to add the integer of 1 to 12 into the combobox,may I know how can I do it?

Software Development gui java
Member Avatar for javaAddict
0
156
Member Avatar for Jennifer84

For the code below I Select an area in a textBox that I will Mark Red. I will also change the Fontsize to [B]16 [/B]and make the selected text [B]Bold[/B] but are not sure what calls that is used for this. [code] this->richTextBox1->Select( 0, 10 ); this->richTextBox1->SelectionColor = Color::Red; [/code]

Software Development c++
Member Avatar for Jennifer84
0
131
Member Avatar for Adrian99420

Hi, I am developing a GUI using visual C++ 2005 express edition. I created a window forms (form1.h) with some buttons and codes. Next I added another new window forms (form2.h)with a single button. I wish to link the form2.h to form1.h with a single button click. I searched and …

Software Development c++ gui
Member Avatar for Naisan_Yazdani
0
107
Member Avatar for godloverails

Here is a data file like this,please help me update my code to omit all comments stored in the file.sample file looks like this: C:\\s1.txt #author:Single Ray #data:02-2-10 141.641, 567.614, 24.25 140.939, 567.736, 24.25 #start 140.053, 567.947, 24.25 148.985, 568.352, 24.25 #end .... Im sorry,forgot attach my codes,here is my …

Software Development c
Member Avatar for Salem
0
156

The End.