49,761 Topics

Member Avatar for
Member Avatar for jobs

I am looking at the code which has the following: read(conf_fd,conf,100); Can someone tell me what these parameters are passed to read function?

Member Avatar for WaltP
0
90
Member Avatar for xeption12

Hello there :) I have recently started learning lists in C++, and I just do not understand what is the advantage of lists over arrays? I only see disadvantages, like: they're harder to implement, harder to manage, a little bit confusing, and so on... So, i know i'm a n00b …

Member Avatar for Jishnu
0
107
Member Avatar for jobs

I need to create a program and have it create a lock file so that only one instance of the program can be run at any one time. I came across this code: [CODE=c] for (tries = 0; tries != maxtries; ++tries) { fd = open("/tmp/some.lock.file", O_WRONLY|O_CREAT|O_EXCL, 0644); if (fd …

Member Avatar for Duoas
0
148
Member Avatar for balla4eva33

Given main: [CODE] #include <iostream> using namespace std; #include <stdlib.h> #include "minivector.h" #include "bubbleSort.h" #include "Fraction.h" int main() { int arr[]={99, 12, 50, 80, 1, 79, 20}; cout << endl << "bubbleSort ints" << endl; bubbleSort(arr, 7); for (int i=0; i < 7; i++) cout << arr[i]<< endl; double arr2[]={99.2, …

Member Avatar for balla4eva33
0
189
Member Avatar for peeta

hello every one this is first time in this forum and very first post. I am really interested in learning c++. I am mac user and before i start learning c++ could anyone Please tell me if i need different version of c++ complier or i will be fine with …

Member Avatar for darkagn
0
86
Member Avatar for web_master

hey i guess anyone here cud be able to help me....... i wanna start learning C++ n i dont know where to get a decent C++ compiler..... i have tried "Borland C++ 4.5" n i dont know why it shows wierd errors to me...... one of my friend who knows …

Member Avatar for Ancient Dragon
-1
118
Member Avatar for tootypegs

i have created a program that write protects USB devices, but can this be done for firewire?? i know there are no settings in the registry like they are for the USB write protection. Has anyone any ideas how i could achieve this? thanks

Member Avatar for Ancient Dragon
0
43
Member Avatar for Cyb3rAssasin

Hi I need help with a project im working on im wondering if there is a way to include a file in a program. Im making a prank program that hides in the background and plays a funny wav file. Is there a way to include the wav file in …

Member Avatar for Cyb3rAssasin
0
93
Member Avatar for alcoheca

Hi, Firstly, this is Win32 console related, otherwise I'd be reading up on the ncurses library.. My program is updating name:value pairs like [B]Name:John[/B] I wish to use WriteConsoleInput to inject the current value into the inputstream so that the user can edit the characters rather than start again. this …

Member Avatar for alcoheca
0
796
Member Avatar for toko

i got a new laptop, and when i try to run dev-c++ nothing happens and i am forced to shut the .exe down using task manager. I've tried running it under administrator but nothing seems to help. It installs fine but when i try running it it crashes. If anyone …

Member Avatar for yagiD
0
125
Member Avatar for kv79

Hi to all I have a little(big) problem of knowledge how to use Resource File. I thought when i open a Dev-C++->File->New->Resource File. The files who have extension on .rc . Can you give me any script about that? So if you willing to help me plz respond. Thank you …

Member Avatar for kv79
0
86
Member Avatar for kv79

Hi to all. I have no experience with project. [url]http://img98.imageshack.us/my.php?image=problemzc7.jpg[/url] How to connect these files in Dev-C++?

Member Avatar for kv79
0
183
Member Avatar for djsingh6000

Hi.. i wanted to make a project for my 12th boards and i chose the topic "Parking Lot Administration". I had started writing all the functions and everything.. but i needed it in BINARY FILE.. n i dont know how to do it.. MY ROUGH CODING IS GIVEN BELOW : …

Member Avatar for Salem
0
86
Member Avatar for sikky_deep

Hi Friends, I was developing a function for making entries to log files in c++ My function looks like this: [code] void makeLog(int log_level,char *arg,...) { char temp_str[512]={0,}; va_list ap; va_start(ap,arg); vsprintf(temp_str,arg,ap); .. .. } [/code] this function works well most of the time, but some time it generates a …

Member Avatar for sikky_deep
0
486
Member Avatar for sikky_deep

Hi friends, I m experiencing a problem in a pro*c module. Its a function in a pro*c file which is opening a cursor, and the equivalent of this pro*c code is a block in parse.cpp file line number : 1255 which is sqlcxt(&ctx1, &sqlctx, &sqlstm, &sqlfpn); the module got down …

Member Avatar for sikky_deep
0
2K
Member Avatar for vmanes

From the standpoint of writing the sorts of programs first and second semester C++ courses use (fairly simple command line programs), has anyone found any significant differences in the VS IDE or how C++ programs compile, compared to the 2005 version? thanks, VAl

Member Avatar for Ancient Dragon
0
115
Member Avatar for snipercat

I'm starting a project at work where I will be creating multile threads, within a C++ program. I have been out of the C++ community for a while, spending my time the last few years using Java. Given this, I am trying to learn what the standard interface is for …

Member Avatar for WolfPack
0
185
Member Avatar for superjacent

I think this is the right forum for this type of question as opposed to the C++ forum. I'm learning C++ via Windows Vista, console stuff, at the moment. I've also got Ubunto installed and trying to figure out which programs I need in order to write simple console type …

Member Avatar for superjacent
0
206
Member Avatar for Ensabahnur

Hey, guys. I'm working on a program that's supposed to take a phrase that the user inputs, then display the frequency of all letters appearing within that phrase, from most frequent to least frequent. So far, I've managed to get it to display the frequency of the letters in alphabetical …

Member Avatar for Ensabahnur
0
217
Member Avatar for 187

i have to write a program that checks a palindrome to see if it is in fact a palindrome but i get this warning warning C4800: 'char *' : forcing value to bool 'true' or 'false' (performance warning) and its not quite working any help would be great thanks. [code]#include …

Member Avatar for 187
0
357
Member Avatar for khenzel

Hello, i was wondering how i can get my program to function... piecing it together bit by bit. Problem i'm having right now... i'm trying to get my class to point to the array that i have built inside the main function: [code] char n=5; char rndseq[]={16,34,57,79,121}; int ntimes=100000; Prob1Random …

Member Avatar for khenzel
0
117
Member Avatar for amitkul

Hi I am currently working on serial port communication for win32 using C++. I want to know by how many ways the hardware handshaking is possible. I only know three ways 1) None 2) Software, 3) Hardware. Is there any other type or sub type of flow controll is available?

Member Avatar for Salem
0
119
Member Avatar for eranga262154

Hi all, For later use I want to create dll file, internally using MFC. I used MFC because it is so easy to do my job. So used the MFC-DLL Visual C++ project and code my project. Its ok. Later add another Console Application which support MFC as well. I …

Member Avatar for eranga262154
0
188
Member Avatar for eesti44

I have a question. I have been studying C++ and it seems to be getting a tad repetitive. What I really would like to do is more with electronics but also with C++. My laptop only has USB ports. I never wanted to be a programmer but would like to …

Member Avatar for Jishnu
0
102
Member Avatar for eranga262154

Hi all, What is the easiest way to convert a CString into a standard C++ sting. Thanks

Member Avatar for eranga262154
0
271
Member Avatar for Max_Payne

I want to increment the [B]i[/B] without putting the whole statement in a loop. [code=c++] #prag... ostream &operator << ( ostream &output, const Course &xCourse ) { int i = 0; output << " " << i++ << ".| " << xCourse.code << " | " << xCourse.section << " …

Member Avatar for Ancient Dragon
0
89
Member Avatar for mb523

Hello, I am writing a program to determine if an inputted phrase or word is a palindrome. I am to use a separate function to input the string and another to check and see if it is a palindrome or not and return true or false. The first is a …

Member Avatar for vmanes
0
2K
Member Avatar for maxmaxwell

I have an assignment where I'm supposed to place a knight on a chess board, and using a random number generator, make it move. It cannot visit a space more than once. I've tried this several ways, and started over from the beginning more than once. this is how I …

Member Avatar for maxmaxwell
0
205
Member Avatar for Cyb3rAssasin
Member Avatar for superjacent

A programming exercise I'm doing requires that a program be written whereby functions are used to 1) fill an array, 2) show the array and 3) alter the data of the array. The arrays are to be passed as pointers to the functions and the use of [icode]const[/icode] keyword be …

Member Avatar for superjacent
0
149

The End.