132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Acidburn

Hello, I've created a file and put datat into it, only problem is that throughout the operation of the program the file is "amended" and bits are added to the file. However I'm wonder if theres a way to delete the file contents so next time someone starts the appilcation …

Software Development c file-system
Member Avatar for Drowzee
0
118
Member Avatar for SpS

In the function declarations, the argument identifiers are optional. In the definitions, they are required (the identifiers are required only in C, not C++). #include<iostream.h> void f(int); int main() { f(10); return 0; } void f(int) { } This works fine..where is 10 going??..how the compiler handles this??

Software Development c++
Member Avatar for chrisbliss18
0
158
Member Avatar for ghostfacelz

hi... ive tried alot of things already...and i know what the problem is, just not sure how to fix it. ive isolated it to this part of the code thats giving me problems... and i think that its because the register cant hold the number (hence the overflow error) [CODE] …

Software Development assembly
Member Avatar for ghostfacelz
0
188
Member Avatar for effigy

Hi everybody, I want to print screen my form, if I press Print Scrn button, its can to print at the printer.How can I do? Give me pls.

Software Development printer visual-basic
Member Avatar for jwshepherd
0
184
Member Avatar for Rearden

First, I am running on linux and when i use the java command to run a program (i.e. java foo), it just sits after it finishes. how can I get it to fully close(specifically, the program I am posting at the end of this post) Second, is there an equivalent …

Software Development first-post java java-swing
Member Avatar for Rearden
0
153
Member Avatar for nspireing

I am looking for a way to create a menu bar with java ive found a few really good programs that basicly wusiwug a menu bar for you but implementation and the trial version only that comes up and blocks your options is annoying. i even willing went to the …

Software Development java
Member Avatar for server_crash
0
165
Member Avatar for katew

i am having a problem to store the item and call from it.It is like you already created a text file,then you need to assess item from it.the item is in disorder. :sad:

Software Development java
Member Avatar for katew
0
311
Member Avatar for perlsu

Hi I got the error for possibleseq array . The error is java.lang.NullPointerException. As java doesn't support pointer, when want to use dynamic array, how I can use. The array length cannot know exactly . It depends on the possible subsequences. So, Do I count the possible sequences in advance …

Software Development java
Member Avatar for perlsu
0
131
Member Avatar for nikto

I have a vector of objects of the Virus class. This vector is called 'Viruses.' I have a deque of objects of the Host class. Each Host class object has a deque of pointers to Virus objects, i.e., deque< Virus * > currentInfections Each Host object is randomly infected with …

Software Development c++
Member Avatar for nikto
0
160
Member Avatar for rks01

what is the code for making an array of objects? i would greatly appreiciate any replies thank you.

Software Development c
Member Avatar for Drowzee
0
107
Member Avatar for mysterio

[B]1. User will enter the ISBN, The system will trace the title and price of the book automatically. The system should check whether the book is in the stock or not. If it is not, please let the user to enter again. 2. Allow a customer to buy more than …

Software Development c c# c++
Member Avatar for Stoned_coder
0
157
Member Avatar for bumsfeld

I have read vegaseat's "Projects for the Beginner" sticky and got really interrested in the eqaution solver for physics or mathematics problem. I just need a little Python hint how to get this started.

Software Development mathematics python
Member Avatar for vegaseat
0
118
Member Avatar for CutCrusader

Thanks a lot for the help on my last question. I have another problem that I need help with. I need to generate the check digit for an ISBN number. Like if the input is 076372339 the function should return 8. To find the check digit, which is the last …

Software Development python
Member Avatar for vegaseat
0
131
Member Avatar for bumsfeld

I know Python has adopted Java's decorator, but I can not make much sense from the reference manual example. It would be nice if soemone could give a good example of the implimentation of a Python function decorator.

Software Development python
Member Avatar for vegaseat
0
109
Member Avatar for MillStrike

I'm kinda new to c++ and can only do very simple applications. Could someone explain why this code works: [code] #include <iostream> using namespace std; int main() { bool inword = 0; unsigned int numwords = 0; char *str = "this is a test string for my project"; char letter; …

Software Development c++
Member Avatar for Drowzee
0
172
Member Avatar for Lunaticrr

How do I get my text boxes to automatically highlight the default text so users can start typing without having to delete or highlight it themselves?

Software Development visual-basic
Member Avatar for Lunaticrr
0
109
Member Avatar for renar

Help me with this Simple Problem using structure in turbo C. Basic Program The Problem:Using structure 1) Consider the given data in the student Class Record a.) Enter for the name of the student and student number (10students). b.) Enter the class standing and prelim exam. c.) To Compute for …

Software Development c data-structure
Member Avatar for chrisbliss18
0
118
Member Avatar for skeet123

I am having a problem with a recursion problem. I have been reading alot of threads on this subject here and other places. I think I understand what recursion is. I am just having a problem trying to figure out this problem. I am suppose to write a helper function …

Software Development c
Member Avatar for skeet123
0
136
Member Avatar for sifuedition

What is wrong with this: [code] for(int b = 0;b < c.length();b++) { temp[b] << S.Pop(); // or temp[b] = S.Pop(); } [/code] to have a string made up of the contents of the stack? When I do this and cout << temp, temp is blank. This iterates through the …

Software Development c++
Member Avatar for sifuedition
0
90
Member Avatar for boyzz

how to store the data read from the txt file, and store it into different array? for example, name,age,address i know how to read them differently, but don know how to store it... :cry: FileReader fr = new FileReader("abc.txt"); input = new BufferedReader(fr); line = input.readLine(); while (line != null) …

Software Development java
Member Avatar for boyzz
0
327
Member Avatar for vjw757

im about to sign up for some college classes.. one is either going to be java or c++ for beginner. I dont know anything about these languages. Can you guys help me choose?

Software Development c c# c++ java
Member Avatar for chrisbliss18
0
439
Member Avatar for vps

hello everybody i am writing a jni for some api's in c++ in linux i sending vector as parameter and returning a vector through the same function. all i need to do is read a file put all the lines in vector. pass the vector object as parameter to function …

Software Development api java java-jsp
0
110
Member Avatar for sifuedition

What is happening here? [code] void palindromemgr(ifstream& in, ofstream& out, Stack& S) { string c; //candidate while (true) { cout << "entering first loop" << endl; //debugging line if (in.eof()) break; in >> c; cout << "this is the value in c :" << c << endl; //debugging line for …

Software Development c++ file-system
Member Avatar for sifuedition
0
151
Member Avatar for thare

can everyone show me the differences between procedure and funtion / procedure and objec-oriented ? thanks !

Software Development c
Member Avatar for thare
0
122
Member Avatar for m7r23

I think I pretty much set up my enum right to the below. I just dont know what to do with it. PRoblem Description A type named Color declared by "enum" to contain only black, blue, purple, red, white, and yellow. For each set of inputs, output their sum, average, …

Software Development c
Member Avatar for Rashakil Fol
0
81
Member Avatar for winbatch

Why doesn't this compile? I am trying to use multimap and am unsuccessful. [code] #include <iostream> #include <map> #include <algorithm> using namespace std; int main() { multimap<string,long> test; string a="BLAH"; long b=8; pair<string,long> c( a, b ); test.insert( c ); return 0; } CC Test.cpp -o Test "Test.cpp", line 11: …

Software Development algorithm c++
Member Avatar for winbatch
0
367
Member Avatar for MrRx7

Hello this is my first post on these forums. For a little back ground into this, I recently installed a Linux server with the purpose of recording matches via a program called HLTV. Now what I want to do is take the individual .dem files compress them one by one …

Software Development first-post shell-scripting
Member Avatar for MrRx7
0
80
Member Avatar for Acidburn

Hey guys its me again! I'm stuck on a logic thing of where to put some code. Basically I want to take an input from the keyboard and store that into an array using a class whilst combining it with the other stuff that the class does. [code] void hangman::getletter(char …

Software Development c++ encryption
Member Avatar for Drowzee
0
101
Member Avatar for nir_kar

hello people i was wondering if anyone could come up with a program that could excatly compute the amount of time that it takes for a simple arthimetic operation. I mean lets assume that there is a simple addition program, is it possible to find the exact amount of time …

Software Development c
Member Avatar for chrisbliss18
0
172
Member Avatar for purplegerbil

Hi, Is it possible to measure the width of a line of text saved into a variable. i.e. strData = "XXXXXX" length = 12 strData = "iiiiii" length = 4 Any font can be used as the data isn't going to be output on screen. The reason: I have a …

Software Development visual-basic
Member Avatar for purplegerbil
0
489
Member Avatar for Puckdropper

Hello, I've been trying to write a program for a class I'm taking, and have gotten stuck on part of the assignment. The program is to: >9> Create a template for a safe array. The user will be able to designate the element type and the size of the array. …

Software Development c++
Member Avatar for prog-bman
0
148
Member Avatar for SpS

I came across this line when i was as reading a tutorial i.e. compiler increases the compilation speed by performing in-memory compilation....what does this statemant mean??.....and what is the normal way of compilation

Software Development c
Member Avatar for CrazyDieter
0
114
Member Avatar for Jack321

Has anyone heaard of linux redirection? If so, how do I implement it into my code? Please help... Thanks.

Software Development c
Member Avatar for SpS
0
112
Member Avatar for JoBe

Hello ladies and gents, I'm reading about the algorithm partial_sum and there are two different versions of this. The first one just calculates cumulative numbers like this: [code] #include <iostream> #include <numeric> #include <vector> using namespace std; int main() { int a[4] = {10, 20, 30, 40}, b[4]; partial_sum(a, a+4, …

Software Development algorithm c++
Member Avatar for Stoned_coder
0
102
Member Avatar for Tomas Lopez

I'm writing this program for a class and when I tried to compile it I get an error can anyone help me out I can't see to find the problem. Here is The program with the error: [color=blue]1: #include <iostream> 2: using namespace std; 3: 4: 5: 6: int main() …

Software Development c++
Member Avatar for Tomas Lopez
0
88
Member Avatar for paradox814

so basically this is what I am doing: myClass a,b,c; a = myClass( ... ); b = myClass( ... ); c = a+b; this is simple enough, but now I have to overload the operator... [code]myClass myClass::operator+ (myClass f) { myClass temp; temp.value1 = value1*f.value1; temp.value2 = value2*f.value2; temp.value3 = …

Software Development c++
Member Avatar for Rashakil Fol
0
93
Member Avatar for Manojsah

Respected Viewers, Hello, I am Manojsah a new java learner. Right now i am learning Data Structure using Java. I am facing lots of problem there in STACKS, LINK-LISTS, QUEUES and especially INFIX POSTFIX PREFIX. So, its my humble request to all please help me and guide me how to …

Software Development data-structure java
Member Avatar for Kate Albany
0
126
Member Avatar for CutCrusader

alright, I'm new to this community and I have been reading the beginners posts, and I am still having trouble. I need to design a function for a class. It needs to convert decimal numbers to base 16. So for example if the input is 705083, then the function should …

Software Development python
Member Avatar for CutCrusader
0
99
Member Avatar for glamo

i am trying to make a chat applet ,first problem is that it is working for only single system,i want to know how to connect it with network and second there is some problem in my code it os showing some error which i am unable to debug. so help …

Software Development java java-swing
Member Avatar for hitesh_black
0
100
Member Avatar for mohansameer

Whenever I try to place Msflexgrid component on the form,it show me the message,"You don't have the liscence to use this control. Please send me solution for that,or tell me the other method to show the grid,as I only want to show the information in the grid form.

Software Development vb.net
Member Avatar for readraj
0
245
Member Avatar for Coach_Nate

Trying to get this to compile is driving me nuts! Any help is greatly appreciated. I think it's having trouble linking the header to the .cpp files. It's my first program in Dev C++ - I'm used to using Visual Studio. Here's the source for the header header: [code] #include …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
108
Member Avatar for Thong_Ispector

I wrote a simple program that displays a picture. On my computer it looks fine. On my neighbors it is bigger than his screen.. Both computers show the same resolution under properties His machine has onboard video... Oh, the program is fine on my laptop as well. Image is 500 …

Software Development image laptop video visual-basic
Member Avatar for Thong_Ispector
0
112
Member Avatar for sam1

hi first i apologise if this is not the place to post this thread. :) Is it possible to create a couronne game like the one in minilip : [url]http://www.miniclip.com/couronnedeluxe/index.htm[/url] using c++ or any other programming language as java etc. thanx

Software Development c++ first-post
Member Avatar for bops
0
98
Member Avatar for Drowzee

I've been working on a char to hex converter all day, and it's working. Except for one part. I've got an unsigned short I want seperated into the two hex values. I've been beating on this stupid bit of code all day, and it's just not working. The hex representation …

Software Development c
Member Avatar for Drowzee
0
163
Member Avatar for Ancient Dragon

Is there a c++ std:: function that will trim trailing spaces from std::string? I know how to do it myself, but I was wondering if anyone knows of something in <altorithms> or elsewhere? Thanks

Software Development c++
Member Avatar for Ancient Dragon
0
117
Member Avatar for Toulinwoek

With the release of Visual Studio 2005 set for [B]November 7, 2005[/B], I thought I'd conduct a little unofficial poll as to how people plan to respond to the release. Let us know what you think!

Software Development visual-studio
Member Avatar for Toulinwoek
0
88
Member Avatar for tristan17

hi people, I am a newbie to Java OOP,i cam across this example in a text book, but i just cldn't understand how the area is calculated. hope that someone can explain this simple problem to me the code is: public class TestPassingObject { // Main method public static void …

Software Development java oop
Member Avatar for tristan17
0
216
Member Avatar for Acidburn

Hello, I got my array sorted with different words in it [code] #include <iostream> #include <ctime> using namespace std; int main() { cout << "this program will chose a name from a list randomly" << endl; char holdingArray[5][5] = { "John", "Andy", "Matt", "Jane" }; char chosenBuffer[6]; // holds randon …

Software Development c++
Member Avatar for Dave Sinkula
0
103
Member Avatar for Avner .H.

Hello beautiful people..! i need a way to run a python program from another one... does anyone know what is the best way to call a process which runs another program in python, and when running that child process, causing the parent process to continue without waiting for the child …

Software Development python
Member Avatar for G-Do
0
188
Member Avatar for Manojsah

Hi I am having problems in getting Composition ? pls tell about it. thanks Manoj

Software Development java
Member Avatar for Manojsah
0
178

The End.