199,114 Archived Topics

Remove Filter
Member Avatar for
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?

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 …

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 …

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 !

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, …

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: …

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 …

Member Avatar for MrRx7
0
80
Member Avatar for sgtrock40

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 …

0
84
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 …

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 …

Member Avatar for chrisbliss18
0
172
Member Avatar for FlyBoy767

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

Member Avatar for tgreer
0
103
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 …

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. …

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

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.

Member Avatar for SpS
0
112
Member Avatar for karengocml

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. …

Member Avatar for Dortz
0
129
Member Avatar for Soupy

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 …

Member Avatar for Dortz
0
145
Member Avatar for bonstubon

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... …

Member Avatar for Dortz
0
107
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, …

Member Avatar for Stoned_coder
0
102
Member Avatar for iloveorangesoda

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) …

Member Avatar for dexterz
0
212
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() …

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 = …

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 …

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 …

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 …

Member Avatar for hitesh_black
0
100
Member Avatar for rakoon13

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 …

Member Avatar for rakoon13
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.

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 …

Member Avatar for Ancient Dragon
0
108
Member Avatar for vartotojas

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 …

Member Avatar for tristan17
0
137
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 …

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

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 …

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

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!

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 …

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 …

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 …

Member Avatar for G-Do
0
188
Member Avatar for paradox814

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 …

Member Avatar for leelee
0
192
Member Avatar for Manojsah

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

Member Avatar for Manojsah
0
178
Member Avatar for Acidburn

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 …

0
62
Member Avatar for ramcfloyn

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 …

Member Avatar for ramcfloyn
0
161
Member Avatar for haruhiko

:) 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 …

Member Avatar for Drowzee
0
105
Member Avatar for luisator

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!

Member Avatar for jbennet
0
90
Member Avatar for pookeesha

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 …

Member Avatar for jaedma
0
992
Member Avatar for djbsabkcb

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]

Member Avatar for djbsabkcb
0
133
Member Avatar for Toulinwoek

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 …

Member Avatar for Toulinwoek
0
395
Member Avatar for m7r23

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.

Member Avatar for m7r23
0
142
Member Avatar for Kennedy_f

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 …

Member Avatar for bkendall
0
191
Member Avatar for SpS

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 …

Member Avatar for Dave Sinkula
0
93
Member Avatar for sifuedition

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 …

Member Avatar for sifuedition
0
162

The End.