132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for fishman

Hi I am trying to teach myself C++ coding but am having a problem with classes and objects. I need to pass my objects to a function which may use various object attributes in calculations but may also change the original values of these attributes. My code is: #include <cstdlib> …

Software Development c++
Member Avatar for Narue
0
10K
Member Avatar for jhdobbins

Here is a chunk of my program... without the class and header file... I am wanting to take that little graph thats in the middle of the code and have the user input a starting point and an ending point... the class is a stack class with all the functions …

Software Development c++
Member Avatar for jhdobbins
0
201
Member Avatar for crazyfans86

Hi, I have to write a program in C programming to plot a sin curve using array. i would appreciate if someone could give me and give me some hints on how about to do that. thanks. :D

Software Development c
Member Avatar for Narue
0
123
Member Avatar for jtf27

Hi Not sure if this is the right section of the forum for this question. I am trying to shorten the background in this header I am working on. I do not know java at all so I am less then a newbe perhaps a wanabe (smile) here it is …

Software Development display image java
Member Avatar for server_crash
0
174
Member Avatar for edemko

hello I have a problem: I can't generate a html from a text file. :o There is a text file : one.txt (or dat or something else ) and I want to generate a html, called one.html or the name can be the first word in the text file. Please …

Software Development html-css perl
Member Avatar for bprakkmr
0
178
Member Avatar for dummy

Question: I am trying to determine the efficient person in a group, given a same set of tasks to each person. For example: Two sets of task, each estimated to be done in 100 hours. John took 80 hours for the first task and 120 hours for the next task. …

Software Development first-post
Member Avatar for Rashakil Fol
0
92
Member Avatar for Analogsleeper

Hi, I have a somewhat odd and complicated question. Some background: I am trying to open up a file which contains formatted numerical data, find certain elements, and then overwrite these elements with corrected data. So, my plan was to just iterate until I found the data, use .tellg() to …

Software Development c++ ios
Member Avatar for Dave Sinkula
0
150
Member Avatar for hfaucette

Does anyone know if this is possible? //in header struct Output { double *var1; double *var2; double *var3; } //in main std::vector<Output> output(512); and then be able to populate each member of the Output struct in the "output" vector? Something like: for (i = 0; i < 512; i++) { …

Software Development c
Member Avatar for bumsfeld
0
154
Member Avatar for maxmouse

Hello, I have a data file that has names of varying lengths that are listed in columns. ie: [CODE] Ranjit Singh Dean Johnson Ken Whillans Karen Thompson Peter Robertson Rich Gardener Sandeep Jain Ken Whillans John Thompson Cher Cher Karen Patel John Jacobs Davinder Singh Dean Johnson Sandeep Jain Karen …

Software Development shell-scripting
Member Avatar for maxmouse
0
138
Member Avatar for lortfan

Ok i am have so many questions to ask but i will start off slow for now. What items do i need to get to start off like book and software. I would like to go into the game disign and programing which ever one. And i have been told …

Software Development c++ career
Member Avatar for nemesisrobot
0
170
Member Avatar for MFal

In my code i take an inputted number, which could be in hex with letters, and put each individual digit into a seperate space in an array. To change the letters in hex to numbers in decimal, i tried doing it two ways: (a is my array name, and i …

Software Development java
Member Avatar for server_crash
0
389
Member Avatar for gokul

Hi, i am heading to develop one chatting application in JMF with JAIN-SIP API.. In stead of refering some sites, they talked about Apache Ant and CVS... WHats that..? for what purpose we need that in the Java Application Development..? How to use that in that..? i saw some reference …

Software Development apache api java
Member Avatar for freesoft_2000
0
263
Member Avatar for wani_raj

is it possible to write a program which will shutdown the remote systme in c?

Software Development c
Member Avatar for Alvein
0
107
Member Avatar for Mahen

how can i create new libraries in VC++ 6.0 from DLL. Is there any tool i could use

Software Development c++
Member Avatar for Mahen
0
101
Member Avatar for wu7jian

hi guys i don't understand the following clause. LargeStruct *s=(LargeStruct *)0; here LargeStruct is defined as following: struct LargeStruct { double bigd1[MAX_ELEMENTS]; double bigd2[MAX_ELEMENTS]; double bigd3[MAX_ELEMENTS]; double bigd4[MAX_ELEMENTS]; }; could you explain that for me?thanks.why not just: LargeStruct * s?

Software Development c++
Member Avatar for wu7jian
0
168
Member Avatar for freemind

Here I paste a simple address book/telephone book. The linker spits the following error: g++.exe derived2.o -o "Derived2.exe" -L"C:/Dev-Cpp/lib" derived2.o(.text$_ZN2ABD2Ev[AB::~AB()]+0x3a):derived2.cpp: undefined reference to `vtable for AB' derived2.o(.text$_ZN2ABC2ESsSsSs[AB::AB(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)]+0x3d):derived2.cpp: undefined reference to `vtable for AB' collect2: ld returned 1 exit status …

Software Development c++
Member Avatar for freemind
0
246
Member Avatar for zauber

Hello, for some time I have programmed in java and python, and would now like to enter the C-scene. The only problem is: I'm more or less only interested in C and not C++. And it seems quite tricky getting hold of programming tips and tutorials which apply to c …

Software Development c c# c++ python
Member Avatar for Narue
0
153
Member Avatar for zeek

i just would like to ask for help regarding my code... my problem is this... the user must enter an 80-digit number...if he enters more than 80 digits, the error "\007Input number must not exceed a total of %d digits\n" will appear setting the iserror flag to 1 and breaking …

Software Development c
Member Avatar for Narue
0
454
Member Avatar for ciccio81

i have a problem :rolleyes: i have write this script ************************************** #!/bin/bash #use command mail for send a mail present in a directory # i repeat this for how many e-mail are stored in my directory # count number of file in directory nummail= ls | wc -l while [$nummail …

Software Development email shell-scripting
Member Avatar for shanenin
0
153
Member Avatar for kartik911

Hi, can anybody help me? i am relatively new to C Programming. My question is : How do you create a program which will take a filename as an argument, check whether the file is present and open it (if the file is not present create that file). Thanks -Kartik

Software Development c file-system
Member Avatar for Narue
0
276
Member Avatar for zauber

Hello, I started coding a little app for exploring the mandelbrot fractal. Hopefully someone here is familiar with it, and perhaps tried coding it in python. My problem is, as you will see if you try running my code, is that the generated image is NOT the mandelbrot (although it …

Software Development algorithm display image python
Member Avatar for vegaseat
0
151
Member Avatar for ^Simes^

[WARNING!] Long Post! [/WARNING!] I have recently got a Pocket PC phone and have managed to cobble together a DLL to display a simple text message on the Today Screen. What I really would like is the time displayed in a large font as I had on my SmartPhone 2002. …

Software Development api c display first-post smartphone windows-api
Member Avatar for Narue
0
111
Member Avatar for Mike182

Im adding a specialised formula to a calculator, and it uses the Ln/ln function which is often on scientific calculators, how do i get this function to work in c++? The formula is as follows: 'formula: pl * (10*diff + 10*creat +2*lines) ------------------------------------------ 150 * (Ln(pl/1.5))' Can anyone help?

Software Development c++
Member Avatar for Mike182
0
322
Member Avatar for angel22

I am taking a C++ class, but I am having a real trouble understanding arrays which confuse me completely. This is the first time I take a programming class, so I really need help. I do not really understand how arrays are read and filled or how to use for …

Software Development c++
Member Avatar for angel22
0
395
Member Avatar for tom_h_500

I just designed a nice little program that lets me scroll through a database I made with little fuss. Now I have bypassed the first error's I was getting (something to do with ADO) but now I face a new problem. I can easily run the .exe on my computer …

Software Development visual-basic
Member Avatar for Comatose
0
253
Member Avatar for xerop

Hello I do not know java however, I know that with java you can log IP addresses. If someone could, would they please write a script that could be embeded into an html file. This sript should collect the IP address and store it in a file. Thats all. Thank …

Software Development java
Member Avatar for server_crash
0
295
Member Avatar for MFal

I am writing a program to calculate a numeric palindrome, and to do that i have to reverse the digits of a number, and add that to the original. The best way i can think of to reverse the number would be to put each digit individually in an array, …

Software Development java
Member Avatar for server_crash
0
233
Member Avatar for actionwillspeak

Hello, I have a quesiton regarding my code. I thought it would be cool to try to implement the reliable UDP file transfer that everone does as a college student. I'm new to java, and im having some problems. Whenever i try to connect with the client, it refuses the …

Software Development client-server file-system java
Member Avatar for Sauce
0
544
Member Avatar for warangalboy

Hello , Im trying to dump the content from a url in bash shell script but was unable to get. im using the following code URL="[I]'some url[/I]=$var'"; > temp system "-dump -nolist $URL > temp"; Plz let me know how can i dump the content of the url

Software Development shell-scripting
Member Avatar for shanenin
0
380
Member Avatar for md16185

I know HTML, but not Java or Javascript... Is the .jar file the class or are they 2 entirely different things... Also, do ya save the applets as ".jar"? I'm new to programming..

Software Development java javascript
Member Avatar for JeffHeaton
0
169
Member Avatar for freesoft_2000

Hi everyone, I have a question about the use of properties. You see usually if you wanted to add a property you would do this [code] Properties systemProperties = System.getProperties(); systemProperties.setProperty("http.proxyHost", proxy); systemProperties.setProperty("http.proxyPort", port); [/code] But the thing is i have heard now that this property class may be deprecated …

Software Development java
Member Avatar for jwenting
0
323
Member Avatar for rpratt

Hi, I'm teaching a Java course this fall and was wondering if anyone has a favorite Java textbook. I'm planning on using [U]Java Methods[/U], but I'm not totally in love with it yet. Anyone have any input? It would be greatly appreciated! Thanks!

Software Development java
Member Avatar for xerop
0
387
Member Avatar for freesoft_2000

Hi everyone, I am trying to set the properties so that i can reach URL's using the Java URL class but usually i use this if there is a proxy [code] System.setProperty("http.proxyHost","proxy"); System.setProperty("http.proxyPort","80"); [/code] but after visiting some sites they said that if i want to connect to a URL …

Software Development google java
0
127
Member Avatar for vex

Ok I would like to use Deck in a third class. Deck myDeck = new Deck(); Then in paint I try g.drawString("" + myDeck[1].suit, 50,50); It says 'array required, but Deck found' If I try Deck[] myDeck = new Deck(); I get 'incompatable types' I hate asking for help BUT …

Software Development java
Member Avatar for server_crash
0
190
Member Avatar for mozira

In class we did a program on moving a round object up and down on a form,we finally figured it out but what i want to know is there are another way of shortening the coding instead of tesing using boolean :(

Software Development c++
Member Avatar for zyruz
0
230
Member Avatar for JavaFish

Hi I have searched this site for help with this and used an example of a lottery numbers program. However, I need to modify it slightly but can't seem to get it right. I would like to be able to generate random numbers between 0 and 100 (maybe negative oness …

Software Development java
Member Avatar for JavaFish
0
350
Member Avatar for bsunkel

Heya all, Is there a way to get the date and time that is set in the Cmos and not the date and time which is set in Windows. My Windows date and time is usually wrong. Thanks!

Software Development java
Member Avatar for mmiikkee12
0
231
Member Avatar for pablo21

Hi everyone! My name is Paul I have an OO project that I need to complete by the 15th of August and I have attempted to start it but i'm now stuck. If anybody can help me in anyway possible I would greatly appreciate it. Please find the specification below. …

Software Development java
Member Avatar for proghelper
0
213
Member Avatar for Vishal Aggarwal

I have a VB6 application that works with Oracle database. When I execute this application on Windows XP SP2 machine, the moment the application tries to establish connection with Oracle, the CPU usage goes to 100% and the application comes back in close to 3-4 hrs. The application finally launches …

Software Development oracle visual-basic windows-xp
Member Avatar for Comatose
0
99
Member Avatar for jhdobbins

just curious why this isnt working... its probably simple.. but its a friday so im allowed to not access my brain as much... anyways... i want to input a string then switch that to a char array then switch back and print reversed string this doesnt work... debugger stops it …

Software Development c++
Member Avatar for jhdobbins
0
139
Member Avatar for winbatch

Any tips for compiling templates on visual studio .net 2003? I have code that seems to compile fine on other compilers but am getting an LNK2019 on visual studio .net 2003. I am using template specialization (Dave S. helped me with this a few weeks ago). Before I post any …

Software Development asp.net c visual-studio
Member Avatar for winbatch
0
313
Member Avatar for freemind

Hi to everybody! Here I paste some simple exercise code that I wrote. The errors are pasted from the compiler log at the end of the source code. The add() function looks ok to me and I can't understand what the compiler wants from me :o Thanks! [CODE] #include <iostream> …

Software Development c++
Member Avatar for TomcatMCAD
0
434
Member Avatar for raevin

Hello all, I'm working on a program using MFC and VS6, and when I split my program into files (aka: move certain portions to a new file for easier reading and such), I get this error: [code] error C2065: 'IDD_DIALOG' : undeclared identifier error C2057: expected constant expression [/code] Here's …

Software Development c++ microsoft
Member Avatar for raevin
0
224
Member Avatar for Amor

EMERGENCY I TRIED WRITING A PROGRAM THAT: THROUGH CLASS DAY SETS,PRINTS,RETURN WEEK DAY THE PREVIOUS AND NEXT DAY ,AND SHOWS THE CORRESPONDING DAY OF THE DAY IN A WEEK LIKE : [COLOR=DarkRed]DAY:5 IS SUNDAY DAY: 34 IS WEDNESDAY ......ETC...........[/COLOR] [COLOR=Navy]PLEASE HELP HELP I NEED TO SUBMIT THIS IN 4 DAYS. …

Software Development java
Member Avatar for freesoft_2000
0
172
Member Avatar for Drowzee

Do you always have to put file access in the view? I think it would be more appropriate in the document, and it works fine to implement a CFileDialog object from the document file. Considering all the parsing and data storage I've got to do, that makes sense to me. …

Software Development c storage
Member Avatar for Drowzee
0
129
Member Avatar for rks01

hello all . well its pretty simple but i need to get this for loop sorted before i can move on. #include <iostream.h> void square(); void circle(); void arrow(); void diamond(); using std::cout; using std::endl; void square() { //first line for (int e = 1; e >= 9; e++) { …

Software Development c++ display
Member Avatar for rks01
0
156
Member Avatar for mav1

I am working on displaying the amount ofodd numbers in this array. It always says there is 5. That is not correct. When I use the debug it shows that it is placing a different value in the myArray and using that to determine the amount of odd numbers. Please …

Software Development c++
Member Avatar for The Senate
0
226
Member Avatar for reezin14

I was wondering if anyone knows if any Python books that are availible,and where I might be able to purchase them?

Software Development python
Member Avatar for shanenin
0
252
Member Avatar for Walrus Bites

I have looked through the forums for this and found several hits but none of them truly answered my question. How can I make a Python program an executable file that does not require my friends to have Python installed on their computers?

Software Development python
Member Avatar for shanenin
0
276
Member Avatar for HLD77

I am trying to change existing icons on a toolbar. The icons are placed under "img" directory. When I replace an old icon with a new one and build\start my project, I don't see the new icon. Can somebody let me know what am I doing wrong ? Thanks a …

Software Development
Member Avatar for cambia
0
264

The End.