Beginners - March 2009 (Page 7)

by omk
Reading all files in a directory
 
Hi, Im trying to go through a folder and read all files inside the folder into a string made inside a class. Reading in one specific file is not problems, but I...
[4 replies] Last: No, there's no standard way to do it. No, it's not old. It's a POSIX ... (by helios)
Expression Trees
 
I would like to get some recommendations on books/websites that have good info on this subject (Expression Trees) but in C, not C++. I'd be very grateful if ...
[1 reply] : http://en.wikipedia.org/wiki/Expression_tree (by helios)
about namespace using declarations
 
hi,I want to ask a question about namespace using declarations. In "C++ primer" ,they all be writen as using std::cin; using std::cout; using std::endl; ....
[3 replies] Last: I would strongly advise against intermixing using declarations with ... (by jsmith)
by Peyton
Taylor series approximation
 
Hi there, I have written the following code for a program which calculates and outputs the taylor series approximation for e^x. The formula is: e^x = Σ [x^...
[4 replies] Last: Wow that was a quick reply :D Yep x is a float, and the input can b... (by Peyton)
by sb112
How to mirror a string of unknown length?
 
I am a newbie. I have the Visual C++ 2008 Express Edition compiler. I am trying to mirror a string (aszx --> xzsa) of an unknown length using pointers and dyna...
[8 replies] Last: string's operator+=( char ) allows you to append a character to the en... (by jsmith)
Sending data to a .dat file
 
First of all, I am a beginner, so use the most basic language possible please. I am using C++, and we have a dataset, and we have to split up the even and od...
[3 replies] Last: Simply open the file and output to it like you would to std::cout. Ex... (by helios)
by julax
edit my sample source code
 
this is the source code of a program i want to run. however it could not compile. can you edit it for the errors inside? #include <iostream.h> #include...
[2 replies] Last: Your compiler will tell you where (approximately) the error occurs in ... (by jdd)
by muzzy8
line drawing and manipulation software
 
im a student at the University of Birmingham studying mechanical engineering. i have a programming coursework that i can't get to compile properly, im using sal...
[no replies]
Segmentaion Fault
 
mysql_query give me an error of Segmentation fault. Wat do you think is the problem on my code? char* get_file_to_push(const char* cellnum){ static MY...
[no replies]
detecting objects and methods
 
hey guys, i have a task which involves being given a source code and printing out the LOC in each object and each method along with total LOC in file and numb...
[2 replies] Last: hey ronnie thank you very much i believe this line file.seekg (0, io... (by nugwagon)
error of what?
 
please tell me what's the mean of erros 56 C:\Dev-Cpp\vfh\vfh.cpp invalid types `double* ' for array subscript 56 C:\Dev-Cpp\vfh\vfh.cpp no matching function...
[1 reply] : Line 24: cell_dir is a double *, but here it's being used as a double ... (by helios)
by masiht
how to print a matrix of 3x3
 
Hello , I have studied the arrays section here. Now I am trying to print a matrix .Can anyone please tell me how to print it ?
[2 replies] Last: Thank you Ronnie ! (by masiht)
by pueden
removing characters off of an unknown length string
 
i am in a c++ class and we have a problem that consists of retrieving information from a data file and looking through the file and pulling out all of the strin...
[4 replies] Last: thanks Ronnie. that helped out a lot. i finished my project now its ti... (by pueden)
by mudd2
confused w/ project
 
I need to make an inventory management system.. The problem is, I don't know where to start.. Can anyone give me ideas.. It does not need to be complicated.. ...
[1 reply] : Try a quick google search... http://en.wikipedia.org/wiki/Inventory... (by eker676)
by blankk
floating point invalid operation
 
hello i wrote the following code. void Swap(double &a, double &b) { double z; z=a; a=b; b=z; } void FindMO(double B , double AM ) ...
[4 replies] Last: :-) (by Duthomhas)
How to "pause" a program for a certain number of seconds
 
I know there is some way to pause for a few seconds that measures in miliseconds, something like something("5000"); for 5 seconds. What's the function I'm looki...
[3 replies] Last: Keep in mind that that is Windows-specific. If you plan to run your co... (by Duthomhas)
Cannot obtain correct answers to these questions
 
My teacher posted a study guide with no answers and I was hoping I could get some help to compare my work with what the correct answers are. The study guide is ...
[1 reply] : Sorry to be harsh, but if you haven't payed enough attention in class ... (by Duthomhas)
by kfex
Referance in function
 
I can't seem find this any where but i asked the question a few months ago about referance in function something like this int & thisIsAFuncction() { // co...
[3 replies] Last: It means the function returns a reference to an integer. (by jsmith)
by zydeoN
cin.ignore()
 
hello, why everybody puts cin.ignore() after a cin >> . Some people say that cin can leave a terminating character in the stream. Well, i didnt understand t...
[5 replies] Last: ignore() will flush the input stream, just like C fflush(stdin) , w... (by outsid3r)
by NaCo
Using a pointer to return an array from a function?
 
Hello, I am new to C++, and eventhough I am experienced with PHP, I am having some difficulties returning an array from a function in C++; It is good to know...
[6 replies] Last: All the input function is doing is camouflaging a normal array index. ... (by eker676)
March 2009 Pages: 1... 56789... 29
  Archived months: [feb2009] [apr2009]

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