132,726 Archived Topics

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

Software Development c file-system ios
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 …

Software Development c++
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 …

Software Development c++
Member Avatar for Drowzee
0
105
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 …

Software Development qbasic windows-xp
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]

Software Development c c# c++ linked-list
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 …

Software Development
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.

Software Development c++
Member Avatar for m7r23
0
142
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 …

Software Development c
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 …

Software Development c++ file-system first-post
Member Avatar for sifuedition
0
162
Member Avatar for stranger

Well wrote the code but still I have some problems, so could someone help me plz. void ageCalculator() { char birth[BIRTH],output[OUT]; static int finished,d[2],m[2],y[4],days,flag; int i; /*initialization of arrays*/ for(i=0;i<11;i++) { birth='\0'; if(i<6) output='\0'; } printf("\n Age Calculator\n"); printf("-------------------\n"); /* code to get and validate the input*/ do { flag=FALSE; …

Software Development c
Member Avatar for Dave Sinkula
0
146
Member Avatar for Burndailer

Hello, I've a question about the helpfile in the menu of vb. I'm working now 1 year with this program on my notebook, but today i get suddenly a error when i choose help or index in vb6 menu. The error says : busy to try using a not compiled …

Software Development visual-basic
Member Avatar for Burndailer
0
84
Member Avatar for vps

hello everybody I am writing a jni wrapper for c++ api's the c++ dll is on linux, so i get a .so shared library. I am working on windows, using vc++ 6.0. can i include the .so shared library in my workspace in vc++. when i do it i get …

Software Development api c++ java windows-api
Member Avatar for vps
0
105
Member Avatar for SpS

Hi, Please see the code below. [code]void Allocate( char* s ) { s = (char*)malloc( 100 ); } int main( ) { char* s = NULL; Allocate( s ); strcpy( s,"Test");/*I know that this will fail. b'coz I still have a NULL pointer in s. Initially s was pointing to …

Software Development c c# c++
Member Avatar for winbatch
0
103
Member Avatar for SpS

I am back again with a new query...preparing for technical interview questions --------------------------------- Without using sizeof operator,can we find sizeof datatype.

Software Development c++
Member Avatar for Stoned_coder
0
444
Member Avatar for shanenin

I want to make a small backup script to copy files to cdr. Are there any python modules that can accomplish this?

Software Development python
Member Avatar for jbennet
0
166
Member Avatar for Toulinwoek

I know that if I have a program with a connection to an Access database, if I change the name of a table in the database, when I try to access that table from within the program, it's going to throw an exception. My question is, how do I cause …

Software Development dataset
Member Avatar for Toulinwoek
0
135
Member Avatar for tayspen

ok, so i want to mak a keylogger, so i can see how they work. I am TRYING to follow [URL=http://www.webtropy.com/articles/art4.asp?Keylogger]these[/URL] instructions. i am having a really hard time with the mouse functions. its saying mouseeventargs not found... if you know a better way to make a keylogger. Please let …

Software Development asp
Member Avatar for tayspen
0
117
Member Avatar for djbsabkcb

I am trying to write a program that reads in a file of numbers, writes to a file and displays the numbers in correct order. I don't fully understand how to read the file and pass that information into my class declarations in order to output before and after the …

Software Development c c# c++ file-system ios
Member Avatar for Stoned_coder
0
126
Member Avatar for sydneyrustle

Hi all, just need some help on my coding. I cant figure out what i'm doing wrong as far as i can see it should be working.... It s a very basic guestbook form and the cgi script seems to work but for some reason my reply page won't show …

Software Development email first-post open-source perl storage xml
Member Avatar for Rashakil Fol
0
1K
Member Avatar for Micko

Hello, I've been experimenting with different Python IDEs since I started to learn Python. I must say that WingIDE is the best I tried, but unfortunately it's not free and that 10 minutes use is killing me. So I decide to write my Python programs in DrPython which was recommended …

Software Development ide python
Member Avatar for vegaseat
0
189
Member Avatar for SpS

Is there any sequence of left shift and right shift operators that can divide or multiply a number by a number that is not a multiple of 2 i.e. can we multiply a number by 11 using a sequence of left shift and right shift operators .

Software Development c
Member Avatar for SpS
0
108
Member Avatar for j1979c

[B][FONT=Arial]err....... is there any command line in Dos to make it full screen, so that i can put it into a system(" ") line in my c++ console program? Thanks in advance.[/FONT][/B]

Software Development c++
Member Avatar for Electrohead
0
308
Member Avatar for Kind hearted

Hello all, I am ammature rpohrammer althought i started w2ith C from 1996 but got trouble with world. still like C++ and c. I have question right now which programming language is best for low leval programming . i am doing right now c++ have some experinace in c and …

Software Development assembly c++ microsoft
Member Avatar for SpS
0
126
Member Avatar for clam

Hi all, I have had some experience using pointers in C and C++, but not in VB6. I am using a function that requires as an argument (ByVal lPtrBuff As Long, ByVal lWriteSize As Long). I am assuming this means a pointer to the beginning of the data I want …

Software Development visual-basic
Member Avatar for clam
0
118
Member Avatar for Phantom Driver

Hi, I'm a college student at UAH that hasn't taken a computer science class in almost 2 years. I need this one to continue on with my major, but I can see that I remember a lot less than I'm suppose to. Basically, I don't understand what he's asking for …

Software Development c++ pdf
Member Avatar for Rashakil Fol
0
133
Member Avatar for tayspen

I am making a password manager. At the start of the program it prompts for a password. I want to give the user the option to specify this password to what ever he/she wants. Would i save it in an XML file. If so how.

Software Development xml
Member Avatar for tayspen
0
201
Member Avatar for sifuedition

Well, here is the gist of the problem. When I read in a file of integers, if there is a formatting character at the end, the last integer is repeated. For instance, in the code, it is reading i01.dat. If that file reads as follows: 2 3 4 5 with …

Software Development c++ file-system
Member Avatar for vegaseat
0
177
Member Avatar for tayspen

Ok so i want to create a file [CODE] File.Create("..."): [/CODE] I want it to be able to detect the user that is on so it automatically creates it on there desktop. Is this possible.

Software Development file-system
Member Avatar for tayspen
0
135
Member Avatar for winbatch

It seems that with vectors you can only delete via iterators. Since I can access and update by index [], shouldn't I be able to delete by index? The reason I ask is that when you delete via the iterators and the value exists multiple times, I believe it deletes …

Software Development c++
Member Avatar for Rashakil Fol
0
5K
Member Avatar for bsdpowa

Me again, this time I really have a problem. I'm trying to add an element before a certain element. Example: List: 1,2,3,4,5 Find: 2 Add: 45 List: 1,45,2,3,4,5 Now the thing is that when I find the number and try to add a new number it adds OK but then …

Software Development c++
Member Avatar for bsdpowa
0
369
Member Avatar for vps

hi everybody i am stuck. i am first time using beans. can anybody please tell me how a file can be copied from one machine to another machine usingg beans. i dont want to use servlets or JSP. regards vps

Software Development java
Member Avatar for jwenting
0
183
Member Avatar for aripaka

hi all, Can we create an exe for a Java application so that we can run it directly by executing the exe?

Software Development java
Member Avatar for freesoft_2000
0
176
Member Avatar for Toulinwoek

I'm having the following problem and can't find a solution: I have an app with four combo boxes, each of which gets its selection list from tables in a database. Each table has a form that can be used allow the user to populate that table. I have one Combo …

Software Development
Member Avatar for Paladine
0
141
Member Avatar for boki

Is there any way to pack framework in application,if yes how :?:

Software Development microsoft
Member Avatar for tayspen
0
291
Member Avatar for Toulinwoek

I have a question: How can I access a Windows system variable from within my application? For example, if I want to store my help file in the Windows folder (the variable "windir", how to I tell my program that? I could also just put the help file in the …

Software Development
Member Avatar for Toulinwoek
0
81
Member Avatar for joshSCH

Hi, I've created a GUI program that has JButtons for like a menu. I am trying to get the action listener to do a whole other method. EXample: view.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { menu(); System.exit(0); } But, It will not go to the method. It displays an …

Software Development gui java
Member Avatar for server_crash
0
174
Member Avatar for vikster

i am new to this concept of make files.. i would liek to know as to how to use it..... i was given an assignment to make a calculator using C and to also provide a make file... i have looked up on the net and have understood as to …

Software Development c
Member Avatar for bops
0
65
Member Avatar for shanenin

I found this nice online book with exmples [url]http://www.byteofpython.info/[/url]

Software Development python
Member Avatar for vegaseat
0
92
Member Avatar for kohkohkoh

i tried for sorting the link list for weeks already, and yet still couldnt get the output as what i want. i search through the forum and i found the coding "algorithm" (in blue color) for sorting...but it seems tooo alit bit toooooooooooo long. so far, i was trying to …

Software Development algorithm c++ display
Member Avatar for kohkohkoh
0
186
Member Avatar for higherGround574

if anyone knows of some good tutorials or links covering the how/to's of programming C completly off of linux command line... inputs would be greatly appreciated ... --thanx

Software Development c c# c++
Member Avatar for l3.azarmehr
0
93
Member Avatar for indianscorpion2

hi my name is srikanth.can anyone briefly explain the concept of polymorphism to me in java context. thank you.

Software Development java
Member Avatar for NPH
0
121
Member Avatar for clam

Hi Guys. Basically I was wondering if it is possible to Append to the START of the file, instead of the end? For a bit of background information, I have a lump of raw data in hex (they are samples collected from a microphone on a microcontroller then transferred to …

Software Development file-system visual-basic
Member Avatar for Thong_Ispector
0
222
Member Avatar for Judas

Can anyone help me with some goods sites that give detailed explanations of libraries available to c++

Software Development c++
Member Avatar for SpS
0
133
Member Avatar for jahowell01

I am getting lots of error messages from this program. What am I not doing. I followed the suggestions in my book as well as from fell dani members, yet I am still not able to get this program working. It is suppose to add, average, find the smallest and …

Software Development c++
Member Avatar for SpS
0
509
Member Avatar for SpS

Can anyone tell me the limit of number of controls that can be used on the form

Software Development vb.net
Member Avatar for SpS
0
192
Member Avatar for Ancient Dragon

_tempnam() always returns a filename in the "c:\\temp" directory, regardless of the parameters. This example was extracted from MSDN. I need to generate a unique filename in a directory other than c:\temp -- any ideas how to do that other than writing my own function? maybe a c++ solution? Note …

Software Development c++ microsoft
Member Avatar for Ancient Dragon
0
272
Member Avatar for c#dummie

hi, i've to set some conditions to my program. user has to enter a string of 9 letters + numbers eg. x1234567y OR 12 numbers eg. 111111111111 before hitting the ok button (this ok button in my 1st form will direct me to my 2nd form if i keyed in …

Software Development
Member Avatar for tayspen
0
182
Member Avatar for Domo

Hi all.. i am doing myC++ assignment and i got problem in adding, deleting, and modify records. It should be some problem, but i dunno what's wrong. can somebody give me some tips for doing this ? THanks

Software Development c++
Member Avatar for l3.azarmehr
0
135
Member Avatar for Micko

Hello, I'm trying to execute this simple code: [code] class Person: population = 0 def __init__(self, name): print 'Creating % s peron' % name self.name = name Person.population += 1 def __del__(self): print 'Destroying %s person' % self.name Person.population -= 1 prvi = Person('Asimi') drugi = Person('Mici') [/code] I'm using …

Software Development ide python
Member Avatar for vegaseat
0
245
Member Avatar for newjerseydr

I do: paramField.ParameterFieldName = "P1" ' Set a value to the parameter. paramValue.Value = strTemp paramField.CurrentValues.Add(paramValue) paramField.DefaultValues.Add(paramValue) ' Add the parameter to the ParameterFields collection. paramFields.Add(paramField) CrystalReportViewer.ParameterFieldInfo = paramFields strReportSource = strReportSource & "Transaction For Specified Account.rpt" CrystalReportViewer.ReportSource = strReportSource Then I get "Load report failed" Any suggestions? Thanks....

Software Development asp.net vb.net
Member Avatar for Paladine
0
104

The End.