Beginners - March 2014 (Page 68)

Is there any code available to dowload for beginners to go through and "repair"?
 
Hello to everyone at cplusplus.com, I am curious to know if anyone knows of any resources to .cpp files for download that are intentionally made to not work ...
[1 reply] : Yes, there are entire archives full of such code that have been around... (by LB)
File Operation (patient unresponsive)
 
The program reads a list of information about DVD's from a file. Im having problems with a function that counts '\n' and every five 'n\' its supposed to increm...
[7 replies] Last: Thank you MiiNiPaa! I was definitely going about this the wrong way. Y... (by Khillz3000)
by mlor3
Confusing code.
 
I dont understand how this code works. How did they get the variable z and why does proc1 print twice? #include <iostream> using namespace std; const int...
[1 reply] : 1) Please use code tags when posting code, to make it readable: http... (by MikeyBoy)
by Chiron
Help Please! Urgent!
 
I have an assignment tomorrow and I just finished writing the code for it. However when I run the code and am going through the DECRYPT steps, it comes up with ...
[19 replies] Last: "Lol", the guy running the program can't see your comments. I'll adm... (by Computergeek01)
by jidder
Boost asio/bind
 
Hi Ive made some modifications to the example code provided on the boost site just to get a better understanding of how everything works. What i cant work...
[3 replies] Last: That comment wasnt very constructive. Yet it challenged your incorr... (by cire)
Using Bitmap with C++
 
Hello, I'm trying to use Bitmaps with C++. Specifically, given a bitmap object, how can I save this to my hard drive? I've seen documentations like this here...
[no replies]
Where do I start, and what can I do? Ambition!
 
Young and ambitious newbie programmer here. I've decided I'm going to take up C++ programming with the ultimate goal of developing a game! I am aware that it wi...
[4 replies] Last: Well, I'll tell you how I got about about when I stepped into programm... (by The illusionist mirage)
returning value of function by static pointer
 
Hi.I have to create function that returns the next value in fibonachi sequence every time i call it.The argument of the function must be of bool type and by d...
[5 replies] Last: L B (8788) indeed! But i was seeing this mistake before. My specializa... (by exru)
Need help with checking if two numbers are almost equal
 
Hello, I need to make a program that says if 2 numbers are almost equal (if they differ by 0.1) and i have no clue at all how to do this! This is the code r...
[3 replies] Last: You have made some mistakes: 1) ideally 0.9 will be almost equal to 0.... (by MiiNiPaa)
by Alby94
Template's functions partial specialization
 
It is possible to obtain the partial specialization of function template? How to do? template<class T, class U, int I> void write(T a) { cout << "Pri...
[1 reply] : A function template can only be fully specialized, but because functi... (by JLBorges)
by Sam99
Output problem in template class
 
Whats problem here? I am getting garbage outputs. #include <iostream> using namespace std; template <class T> class vector { T* v; int default_capacity;...
[3 replies] Last: Fix it. Rethink architecture of your vector. Hint: it will be enough t... (by MiiNiPaa)
Problem with producing output
 
i want to make this kind of output using "for" operation AA ABBA ABCCBA ABCDDCBA ABCDEEDCBA but instead i got different output...im a noob so please...
[7 replies] Last: i get the output i want...thank you so much wow...you really good in t... (by saufi95)
by Sam99
Simple Vector problem
 
#include <iostream> using namespace std; int size = 10; template <class T> class vector { T* v; public: vector() { v = new T ; ...
[2 replies] Last: because you use that variable in a few others places that are outside ... (by mutexe)
Inheritance
 
I have a homework assignment about inheritance. When I do it with just one .cpp file everything works the way I want it. When I make a .cpp or .h file with the...
[8 replies] Last: Thank you. I knew it would be something basic. (by James Turnham)
by Chubby
how to access to member;
 
Write your question here. struct Point { int x; int y; }; struct Rectangle { Point first_point; Point sec_point; }; how can i...
[9 replies] Last: > why we have use const int? why not int? You may use an int, as long... (by JLBorges)
Print n first primes
 
Hey there guys Could you please tell me whats wrong with this code? Ive been looking for the error for like 1 hour and still I cant figure out whats missing....
[1 reply] : if(n%i==0); fact++; Notice ; after if. Here what is means: if(n%i==0)... (by MiiNiPaa)
by chofs
store calculated values in a vector
 
hey guys i want to knw hw can i store my calculated values of sum,hdistance and vdistance in a new vector so ican manipulate dem.....thnx in advance #inc...
[2 replies] Last: Do it the same way you got the data from the file. void calculate(v... (by Jaybob66)
Help with my assignment
 
Write a c++ program to display your name,department, and matric no.as lines of test. The sample out should look like ***************************** *****Depart...
[2 replies] Last: You don't know how to use strings? (by Uk Marine)
Setting Pointer address to NULL
 
I'm trying to set a pointers address to NULL after I delete the information stored in it. It may be an easy solution, and I actually hope it is, but I don't see...
[8 replies] Last: > http://yosefk.com/c++fqa/heap.html#fqa-16.12 This yosefk does not k... (by JLBorges)
I'm Newbie
 
anyone can introduce me what it was C + + via email?
[2 replies] Last: via email??? (by ak16)
March 2014 Pages: 1... 6667686970... 79
  Archived months: [feb2014] [apr2014]

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