199,114 Archived Topics
Remove Filter ![]() | |
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? | |
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 … | |
can everyone show me the differences between procedure and funtion / procedure and objec-oriented ? thanks ! | |
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, … | |
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 … | |
Okay, another easy one, but I can't remember how to do it. I have a table that I want to be able to update multiple records in. I thought I could just run an update query, but I have 2 yes/no fields and one text field that I want to … | |
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 … | |
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 … | |
I'd would like in a form with an input control, that the first autocomplete value is visible in the textbox instead of a blank field. Is it possible in javascript ? Thanks a lot | |
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 … | |
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. … | |
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 | |
Has anyone heaard of linux redirection? If so, how do I implement it into my code? Please help... Thanks. | |
Hi guys, I picked up a great new web gig… but may be in over my head. The boss wants to have his brokers log information into the private side of the website and have a graph update automatically so he can view real time statistics of sales and status. … | |
Hello! I am an experienced computer user who is now looking at getting into software design. My problem is this: I can't figure out what language to start with! I have hunted around the internet and was thinking about starting with JavaScript for the basic fundamentals of programming, but wanted … | |
HI, i hve to decide a Final Year Project within next 5 days. i thot of software agents or Learning oriented softwares... but im afraid of unexpected growth in their complexity. Can anyone suggest sumthin that can be developed over da span of an year with studies side by side... … | |
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, … | |
Hi I am trying to disable my pager linkbuttons during postback to prevent multiple clicking as this causes the application to fall over. I have tried to use the following code but it is not working. Anyone any ideas? [CODE] Private Sub DataGrid_ItemCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) … | |
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() … | |
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 = … | |
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 … | |
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 … | |
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 … | |
This forum is perfect - it's pure gold. You can find anything and it looks like there are a lot of people that jump to help. I do have an issue and if you can help please reply. I need a open source set of scripts to use in a … | |
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. | |
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 … | |
For my website, I'm trying to create a login form where visitors can type in their login/password, and have PHP check that login with HTTP Authentication (.htaccess). So instead of user typing in the direct URL and entering their user/password in the pop up box, they could simply do it … | |
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 … | |
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 | |
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 … | |
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 | |
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! | |
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 … | |
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 … | |
how do I reverse the direction of a slash? I am trying to reverse the slashes in the directory path of a windows system. I have tried so many things but then when I actually test it to make sure it works, it always fails, so I decided to try … | |
Hi I am having problems in getting Composition ? pls tell about it. thanks Manoj | |
hello, another stupid question but what is wrong with this? [code] infile.open("new.txt",ios::app); if (infile.fail()) { cerr << "Error"; exit(1); } [/code] ever since I've added the ios::app it keeps printing error and then haulting but from my resoruces if you want to append a txt file thats whats the syntax … | |
Im attempting to do bitwise operations on a character string and want to use the bitset template. I am having some trouble, it doesnt seem to like to be constructed using a char* string or std::string... I'm knew to this particular template. Here is what I'm attempting: std::bitset<3000> Line("abcdefghijklmnop..."); anyone … | |
:) Hi, I'm a newbie here. I just want to know how to change this code so it can count word instead of letter code: [code]#include <iostream> #include <fstream> using namespace std; // count letters 'a' to 'z' in string s void countLetters( string s ) { int pos, sum … | |
Hi everybody....I need to develop a web page that adds information to a database in a server. I wanted suggestions about the more used languages for this kind of projects. Thanks for your help and time! | |
Hi- I am completely new at programming. In fact, I haven't even started classes yet, just reading an old second-hand book on QBASIC. I've gotten to a part where it tells me how to get into QBASIC and how to write a sample program. At the DOS prompt, I typed … | |
What is a two way templatized linked list in C++? Does it mean using syntax below for classes and member functions definitons? [code] template<typename type_variable> [/code] | |
I want my application to be able to access an external help file. I also want the user to be able to install the program is his chosen folder. The problem this creates is that I don't know how to specify the Namespace for the help provider. I want to … | |
I have no idea how to use these two. I tried for 2 hours. And I also read the c++ books, but no luck. Can some body start me out. | |
I am in a slight dilemma at the moment i'm not sure whether to go down the a+/mcse route or whether to take the CIW courses instead. I have been doing some research to try and find out about them I would appreciate any opinions you have on the CIW … | |
I don't know if this is possible....... i have made a program containing 3 files 1.main.cpp----it includes both complex.h and def.h....main.cpp is simple menu 2.complex.h---class declerations 3.def.h-----definations of the member functions now i want to give my code to someone....is it possible in some way that.....i give only main.cpp and … | |
I need to use a class for a program that reads an input file, prints the file, sorts the list then prints the sorted list. This is for a Programming II class. I can see how to print and sort. My issue is the input file and the array. I … |
The End.