General C++ Programming - February 2013 (Page 33)

by DrZoo
Pointers Help
 
I'm working on an exercise for pointers. I'm supposed to calculate the primes from <= x. Inside of m...
[4 replies] Last: What every one else said, plus this: And one should never use doubles... (by TheIdeasMan)
c++ problem
 
int num; cout << "Enter a number: "; cin >> num; If user inserts a char, i want t...
[2 replies] Last: You can also do it without the string or stringstream libraries. #inc... (by MrHutch)
Unusal use of using keyword
 
Hi All, I am trying to get involved in the open source community and have offered to participate ...
[2 replies] Last: Thanks JLBorges, Gave me the necessary information I needed to discov... (by devLinuxApp32)
reading till end of file problems
 
I have been working on this program for a couple of days now and I still cant seem to get it to do w...
[1 reply] : I don't really understand your code but if your file has pattern like... (by rmxhaha)
Five Dice Roll: Vectors
 
My issue is that my program dies whenever it attempts to readout the average and sum of the rolls. I...
[3 replies] Last: I promise I'm not that stupid, but I guess I am... Luckily enough par... (by HerpDeDerp)
by xismn
Strange Linking error
 
Hello, and thanks for looking at my question! Let's cut to the chase : I've got an LNK2019: unresol...
[4 replies] Last: Solved. Turns out I was an idiot. A #define sneaked it's way into one ... (by xismn)
by cob
void value not ignored as it ought to be
 
Hey guys! Just relearning c++ and i'm running into this error. I remember addressing it in high sch...
[2 replies] Last: Thank you so much! I knew it was something simple like that. srand ... (by cob)
Help with pulling integer sizes within a function
 
Hi, I'm struggling with this lab assignment and I hope someone could give me some tips. I'm tryin...
[4 replies] Last: Would it be possible to provide an example on how I could go about doi... (by ovaltine99)
printing permutations of digits of a number
 
I have been trying to write a recursive function to print the permutations of a n-digit number. Th...
[3 replies] Last: // permutation2.cpp : main project file. #include "stdafx.h" #incl... (by Adikish)
reading in a file and storing it in a string.
 
So, before I go any further, let me explain... I know how to do this in c++ with fstream and std::st...
[16 replies] Last: Same as in C++: perform the input, then test if it failed: int c; // ... (by Cubbi)
A nice method to display permutations of digits/characters
 
#include "stdafx.h" #include<iostream> #include<stdlib.h> using namespace System; using namesp...
[no replies]
error in search...simple dictionary codes..
 
guyss need help for search....there is no content when i search word in the dictionary.txt....this i...
[1 reply] : ifstream write("dictionary.txt", ios::in); ofstream read("dictionary.... (by shacktar)
using a # from a string
 
I have a string based program, and you need to use the first input as the operation (i.e add, subtra...
[3 replies] Last: can you list a few examples illustrating various components of the inp... (by SIK)
C++: Can I print different colors simultaneously?
 
For school, I decided to simulate Conway's Game of Life. Things went very smoothly until I decided t...
[10 replies] Last: correct me if im wrong, but isn't that all win32 code? so it can't be ... (by closed account Dy7SLyTq)
by koga
why do we use these ->
 
Im working with some frame work for a university project and : player1->passCardToPile(*pile, 1,...
[5 replies] Last: a->b; (*a).b; They are same. The first one makes perfect sense in ter... (by CroCo)
by ET21
Setting up an Invalid Response
 
Basically the whole purpose of this program is to prompt the user to use a calculator. Choices 1-6 a...
[10 replies] Last: [quote=ET21]Just a simple operation takes a lot of coding. This isn't ... (by LB)
alter the user input
 
I have this code here that counts the number of alphabetic letters the user's input,the number of ch...
[7 replies] Last: Oh I could try do that.......might take me some time though....I'll tr... (by greenleaf800073)
by LFDC
Error overloading operator + class template vector
 
Hi all! I'm trying to implement a vector class in C + +. However when I go to actually run the main,...
[7 replies] Last: According to this thread, the new T should work but it can still thro... (by kempofighter)
by ET21
Area of a Triangle
 
Edit: I figured out how to do everything and it works, but my area for the triangle part keeps givin...
[4 replies] Last: Sorry for the late response, but I was able to get it bout 5 minutes a... (by ET21)
Pointers to structure
 
Hi friends here is my code please have a look at end i'll tell you what is wrong #include <iostr...
[2 replies] Last: It can also be done without using pointer arithmetic: employee user ... (by toum)
February 2013 Pages: 1... 3132333435... 43
  Archived months: [jan2013] [mar2013]

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