132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
:) 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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
[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++ ![]() | |
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 … | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
Is there any way to pack framework in application,if yes how :?: Software Development microsoft | |
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 | |
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 … | |
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 | |
I found this nice online book with exmples [url]http://www.byteofpython.info/[/url] Software Development python | |
![]() | 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 … ![]() |
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 | |
hi my name is srikanth.can anyone briefly explain the concept of polymorphism to me in java context. thank you. Software Development java | |
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 | |
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++ | |
Can anyone tell me the limit of number of controls that can be used on the form Software Development vb.net | |
_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 … | |
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 | |
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++ | |
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 … | |
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.... |
The End.