132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
what is the code for making an array of objects? i would greatly appreiciate any replies thank you. Software Development c | |
[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 … | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
can everyone show me the differences between procedure and funtion / procedure and objec-oriented ? thanks ! Software Development c | |
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 | |
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: … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
Has anyone heaard of linux redirection? If so, how do I implement it into my code? Please help... Thanks. Software Development c | |
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, … | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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++ | |
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 | |
Hi I am having problems in getting Composition ? pls tell about it. thanks Manoj Software Development java |
The End.