General C++ Programming - November 2012 (Page 39)

Constructing a 400 bit Prime
 
p=400 p=12q+1, q is a prime as well NTL_CLIENT int main() { ZZ x, y, r; // declaring variables ZZ Gen1, Gen2;// generators ZZ a; ZZ prime, q...
[no replies]
COCI Solution Explanation
 
I have been doing the competitions at the COCI, and reading the solutions for them. I have come across one section of code in a solution that I do not understan...
[no replies]
Special characters on mac?
 
Hey rrybody, I was wondering how to put 'special' characters from the OEM 437. Is it even possible since it seems that its only for windows? Im trying to print ...
[1 reply] : Bump (by Angeljruiz)
Float -> int speedup conversion
 
The basic & regular conversion method (int) is a good one, but also it may cause data lost (always truncates the float or double data.) For example : float f =...
[4 replies] Last: I'd say it's not correct. Look at this: http://musicdsp.org/showone.p... (by coder777)
C++ 11 Video: Rvalue Reference Explained
 
This video explained rvalue reference under the contexts of its two major usage: Move Semantics: http://www.youtube.com/watch?v=wTMna3OtWQE&list=PLE28375D4A...
[no replies]
by Gadir
two while loop problem
 
Hello everybody, I have two big text files and i want to compare 6. line of first file to 53. line of second file. The problem is when i compare their lines(...
[2 replies] Last: i have solved this problem with the help after second loop i had to w... (by Gadir)
IEC559, can't understand NaN,infinity..
 
I read that: if the exponent is all ones, and the mantissa is all zeros, the value is considered “infinity.” If the exponent is all ones and the mantissa ...
[3 replies] Last: You should think of NaN as exactly that, not a number, not a mathemati... (by kbw)
copy ctor
 
Hello.When are copy c-tors called? Thanks in advance!
[6 replies] Last: I read it.the first example was complex (by hooshdar3)
Unknown error
 
Hello.... I've tried adding the name of some countries into country list. So I have to allocate a layered address of char (pointer) to do this properly. And run...
[4 replies] Last: Ah... Yes !! The error has been detected & solved !!! This is (maybe)... (by Imadatobanisa)
default/copy ctor
 
Hi.Why do I get errors on: include <iostream> using namespace std; #include <conio.h> int i = 0; struct widget{ widget(){cout << "default ctor called" <<...
[4 replies] Last: I thought that the constructor that takes no argument(i.e, can have ma... (by hooshdar3)
List iterator of a structure containing a template type.
 
I have a little c++ experience, but I still struggle with some of the syntax sometimes. I created a template class and am having some problems. The following co...
[4 replies] Last: As per JLBorges suggestion, I added 'typename' before the line in erro... (by dwil0000)
Template Friend Error
 
Sorry to post so often but I've never really worked with templated friend classes so I'm not sure if I'm doing something wrong or not. According to all the sour...
[2 replies] Last: template < typename T > struct treenode ; // declare treenode<> temp... (by JLBorges)
Issue with Pointers
 
Hello! I wrote a program to do what I thought was correct. However, I was informed that I actually didn't use pointers at all. I was told I accomplished the co...
[5 replies] Last: Thank yall for taking a look at my issue! This forum thing is pretty h... (by Rebel yell)
Your C++ 2D Engine ?????
 
Hi, everyone !! This is my first post. (Because I'm just a newbie ?? :)). Any disappointing point (!!!), please tell me, I'll improve my writing & myself.... :t...
[4 replies] Last: +1 what you said, TheIdeasMan !!! Wow, many negative points !!! Anyt... (by Imadatobanisa)
Issue With Code
 
Hello everyone, First of all, I would like to just point out that this is my first post in the cplusplus forums and If I may be posting in the wrong place or...
[5 replies] Last: Hello everyone, I figured out my issue thanks to all of you. Samuel m... (by prototype151)
Fontconfig - Windows XP, MinGW?
 
Has anyone ever build Fontconfig on windows before. When I try to configure it for my system in MSYS (./configure), it tells me it can't find pkg-config. The...
[no replies]
by abera1
help to calculate
 
Student Textbook Purchases Report
[6 replies] Last: @Jackson Marie I disagree a bit, declaring variables all together on ... (by TheIdeasMan)
by Prog24
Removing Punctuation and Whitespaces
 
For this program I had to input a file from a .txt document and check if each line is a Palindrome or not. This program works how I would like it to work beside...
[3 replies] Last: Then, this is a perfect time to learn. Trust me, people will start to ... (by oldcrow)
Binary Tree Insert Logic Error
 
All right, so I was finishing up a BS Tree today and I came across an odd logical error that I cannot figure out. The recursion isn't working and I'm not sure w...
[3 replies] Last: I had to create a second insert function for the treenode<T> class. It... (by Woody1193)
Tic Tac Toe program, if statement to change 2d array contents
 
For a class project we have to create a tic tac toe game using c++. I have wrote a program that works, but have time before it is due so was thinking of making ...
[3 replies] Last: You can still use numbers ( but not coords) for user input. if the bo... (by TheIdeasMan)
November 2012 Pages: 1... 3738394041... 51
  Archived months: [oct2012] [dec2012]

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