General C++ Programming - April 2013 (Page 34)

database connectivity
 
hey , i am using this code for database connection but it is giving error #include "/opt/re...
[2 replies] Last: can you please help me how to give a database connection to a c++ code... (by ramsavi)
Insertion Sort Runtime Error
 
I am trying to run this program for Insertion Sort, But some how I am getting some problem: #inc...
[2 replies] Last: Standard C++ allow only arrays which size is known at the compile time... (by MiiNiPaa)
Wrong data type
 
How would I check for proper data type when someone is to input a value into the program? Ex: i...
[4 replies] Last: template <typename T> inline void validated_input(T& value) { whi... (by MiiNiPaa)
by Dk786
advice on file i/0 please
 
hi, so im reading in binary numbers from a text file in c++. So the first line of binary numbers go ...
[4 replies] Last: @Bourgond Aries thanks i found out how to use bitsets thanks for your ... (by Dk786)
Problem Merge Sort For Large n
 
My programs gives a segmentation fault for large n (n=9999999). It works fine for small n. Where n =...
[4 replies] Last: I have changed my code and declared the Lists on heap but still it giv... (by Farrukh12)
Last piece of data is copied
 
Hello, after finally deciding to change the code around a bit from my previous forum post, I got it ...
[9 replies] Last: http://stackoverflow.com/questions/729692/why-should-files-end-with-a-... (by cire)
Compile Error
 
I'm trying to compile my program, but I keep getting the error: employee1.cc: In function ‘v...
[17 replies] Last: http://www.cplusplus.com/forum/general/98655/ (by crimsonzero2)
Help this is due soon!
 
I am not sure how to get the numbers to print in ascending order when I input them into numbers1.txt...
[3 replies] Last: atoi/sprintf are totally unnecessary; the stream overloads are just fi... (by keskiverto)
Please help
 
I am having problems with some of the cases listed bellow code...any help you be great. for example ...
[2 replies] Last: All these would be fixed if you apply the method i suggested in your o... (by writetonsharma)
Selection, Insertion, Merge sorting using Linked List
 
I've been fussing around this particular problem for two days now and I can't seemm to get my head a...
[1 reply] : Algorithms are not easy to understand and implement. Don't take the wh... (by writetonsharma)
What is the use of cerr?
 
In the following Code: // EX6_10.cpp // A program to implement a calculator #include <iostream> ...
[4 replies] Last: I see thank you very much. But the thing is its from my book "Ivor Ho... (by Anmol444)
difference between delete p and delete [] p in following program.
 
I know delete p deallocates memory pointed to by p and delete p deallocates array. But what's the...
[8 replies] Last: Thanks a lot Disch! (by Rehan FASTian)
Prime numbers over 1000
 
I tried making an array of 30...but nothing is coming out. Tried a combination of a while/for loop....
[2 replies] Last: ok...I'm new so I haven't searched far. Thanks Zaita. (by HaloMonkey8)
ifstream.fail() behaves not as described?
 
Hi, i have read today that fail() should return true "when some error other than reaching the End-Of...
[1 reply] : Each I/O operation has its own requirements for setting the stream sta... (by Cubbi)
Help with calling the reduce function
 
The program works, but the rational number doesn't print as reduced. I guess i have to call the redu...
[3 replies] Last: never mind i guess i was thinking to hard actually i was trying reduct... (by gabym39)
OpenGL initialization
 
I am struggling very hard to start a very simple project with OpenGL 4.0 I have used different book...
[8 replies] Last: ok looks like it was very difficult I made it using MSVC 2012 and I am... (by Donanza)
please help
 
I have to write a program to compute average grades for a course. The course records are in a singl...
[no replies]
by Smac89
Dynamic memory bug
 
I created the 2d array called activity in the following data structure. Although I have initialised ...
[1 reply] : Whoops I spot the mistake...line 12 (by Smac89)
In a Function template
 
Do I have to use T as a parameter type in order for the compiler to deduce it? For example this: ...
[5 replies] Last: I understand that except I just wanted to know. Thanks for clearing up... (by Anmol444)
Dev C++ on Windows 8
 
Hey, I was using Dev on windows 7, but I got a new computer which had windows 8 on it, unfortunately...
[2 replies] Last: If you like Dev but want a newer version, try Orwell Dev C++. Does it ... (by closed account 18hRX9L8)
April 2013 Pages: 1... 3233343536... 53
  Archived months: [mar2013] [may2013]

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