General C++ Programming - May 2009 (Page 15)

problems using _rmdir()
 
Hi, i'm having trouble using _rmdir() It keeps giving an error code 13 (Permission denied) even though i've used _mkdir() to create the directory earlier in th...
[6 replies] Last: Thanks for that the code below worked a treat! { CreateDirectory... (by daveh2009)
char to int
 
Data is input from a text file containing on each line an alphabetic name followed by a numberic value. After the data is input via an istream object, the numer...
[3 replies] Last: You are currently defining name as a char, which is a single character... (by firedraco)
How to pause a program in C++
 
Hi, I want to pause a program in C++ until I press a key to continue. Could anyone please help me how to do that. Thank you so much
[8 replies] Last: I suggest you read the thread pointed by helios... quite informative ... (by Lorena)
Forward Declaration error
 
Help need with c++ forward declarations I am new to using forward declarations. I thought I had understood quite a bit of it until I got this error. Seems the...
[8 replies] Last: Sorry fellas, Think i am jus running high on adrenalin today... I w... (by Sundar0206)
array copying
 
Im trying to write a program that sorts an array into different sorts.What im trying to do is write a copy function that copys a the original array into a new a...
[6 replies] Last: The "fixed" code is looping until i becomes >= some uninitialized vari... (by kempofighter)
by nanger
how to print in such format?
 
I have a loop in every loop-step I want to print namei and valuei into a txt file the format is as below between the name line and the value line there is ...
[1 reply] : Why not accumulate the data in two separate stringstreams and write th... (by kempofighter)
by flux00
#include patterns on medium sized programs
 
Hi I was just wondering what the best pattern for managing a medium sized program (~10K lines). I've programmed in c# and java for years but their style is obvi...
[1 reply] : That's fine. The other option is to add your directory tree to the ... (by Duthomhas)
O(n) sort function
 
I've recently come up with a linear time sorting algorithm. It is rather restricted in what it can sort, as it only works with integer types, but it ran faster ...
[6 replies] Last: Right. For instance, if the array had two elements: 0 and 2^32-1! (by helios)
const char* to string
 
There is class alt::String (with small changes to the standard string class). It contains the public function Wrap: void String::Wrap(const char* Cptr) Cle...
[2 replies] Last: CheckPW will call PWSever::Hash unsigned int Hash (const alt... (by VictorH)
Frward declaration templating
 
Hi guys I had a post going sometime before this error .. But could nt follow up on it.. Pardon me for that.. I am trying to do a bit of forward declarations ...
[2 replies] Last: oops.. sorry to have not put it ere.. i have included it in the actual... (by Sundar0206)
displaying the output
 
Im having trouble displaying the output for a heap sort i coded Note:Im displaying the relevant code. #include<iostream> #include<iomanip> #include<cstdl...
[5 replies] Last: ah... on linux i mean gcc actually.. i was talking about MS VS IDE.... (by writetonsharma)
by rstech
C++ Error(s) while compiling code
 
This is not a homework question, although it is school work. But this specific code is not due for homework. On all the work I complete I run into the sam...
[4 replies] Last: Yeah. It spits out a bunch of strange 3 page long garbage on some... (by guestgulkan)
Question about #includes
 
I was wondering if there is a standard convention to where to have all the #includes? I keep putting all my #includes in my .h files which I think they are real...
[12 replies] Last: Cool I look forward to seeing the article too! (by translore)
Dev-cpp compiler error with class function definitions
 
I have a program that where I have main including a file call list.cpp which includes list.h. list.h includes all c++ headers and has using namespace std; in it...
[3 replies] Last: You should never #include .cpp files, only header files. Well tha... (by daman371)
functional error
 
Ok, So I'm working on an all in one Chemistry calculator. spare me on the logistics of how hard this is of a task. That aside. I've some problems getting the fi...
[2 replies] Last: ah thanks :D (by Seraphimsan)
by lundbd
fails when popping a string
 
Hey, we are working on a program to evaluate strings to make expressions for example: 3 4 5 + * This when properly evaluated will make the expression (3*(4+5))...
[no replies]
streams
 
In a program supplied by a course instructor, the following function is called with: ShowMenu() // (parameterless) The (abridged) definition is as follows...
[2 replies] Last: void ShowMenu(std::ostream& os = std::cout ) The bold part means tha... (by helios)
Need input/guidance on an odd computer issue
 
Basically, I have this problem with my computer that happens (only sometimes) when my computer has been in screen saver mode where the mouse just freezes and yo...
[3 replies] Last: If you're on Windows, look in your system options. There's a "power s... (by Disch)
Graphics in DOS
 
I'm creating a DOS program and want to convert it into a somewhat graphical interface. No mouse, but using arrow keys and having some drawn boxes on the screen....
[9 replies] Last: http://en.wikipedia.org/wiki/Ncurses#External_links Good luck! (by Duthomhas)
by vRltwE
Borland C++ Builder to Netbeans C++
 
Hi, I need to work in a project done in Borland C++ Builder but I want to use Netbeans to code now. What is the principal difficulties that I will find t...
[2 replies] Last: And in case to migrate from Borland C++ Builder to Visual C++ Express?... (by vRltwE)
May 2009 Pages: 1... 1314151617
  Archived months: [apr2009] [jun2009]

This is an archived page. To post a new message, go to the current page.