General C++ Programming - December 2013 (Page 8)

Purpose of the Pointer to Pointer
 
Hi, Can anyone explain what is the purpose of the "pointer to pointer" and give any real time examples for that. Thanks.
[1 reply] : google... http://stackoverflow.com/questions/897366/how-do-pointer-to-... (by mutexe)
No. of compilers installed
 
Hi, I get the feel to install and try different types of C++ Compilers. Currently I have installed: Visual C++ 2010 (Express) Visual C++ 2013 (Express) MinG...
[6 replies] Last: I see GCC is common among everyone ;o. @ Albatross: Well Borland com... (by Stormboy)
help
 
how to make a program which take 2*2 matrix and out put is ad joint matrix of 2*2???please help
[3 replies] Last: This is gonna help you......... #include<iostream> #include<conio> in... (by Hiten Sharma)
by Kubani
converting between text files and binary files
 
Hello, How to convert an ordinary text file into binary and how to convert that binary file back to a text file so that the first text file equals with the l...
[8 replies] Last: #include <iostream> #include <fstream> #include <vector> int main() ... (by JLBorges)
Virtual Function Performance
 
So a virtual function entails a function pointer lookup every time said function is called. I generally like to go by the rule "it's not a performance problem...
[1 reply] : The overhead of the vtable look up is just a couple of machine instruc... (by JLBorges)
Converting SDL Scancode to Unicode *2.0*
 
Hi, I'm trying to make my game engine as abstract as possible. How can I convert a SDL_SCANCODE* to it's Unicode equivalent? I never really had to do this...
[no replies]
counting individual vowels in a sentence
 
I'm trying to get this program to work that will count the frequency of each vowel. Surely i am over looking something silly. #include <iostream> #include ...
[2 replies] Last: yes either use ascii codes for each letter or just put single quotes b... (by quine)
my class have a string private and i need output string
 
#include <iostream> #include <string> #include <string.h> using namespace std; class Variant { private: string result; public: Varia...
[10 replies] Last: heres my new code: #include <iostream> #include <string> using names... (by Cambalinho)
delete a node in binary
 
hi everybody. Iam trying to delete a node(has no children). for some reason, it keeps giving me an error. any help is appreciated thanks void AVLtree<T>::remo...
[2 replies] Last: thanks (by hafamily)
Template Specialization or whatever it's called
 
I've run into a bit of a template goof that I can't quite figure out. So I have a function: template<typename T> T& getParam(std::string const &path) { ...
[7 replies] Last: See, that's what I thought, but removing typename gives me this respon... (by Thumper)
Class creation and storing angles
 
I have a quick question. I need a way to represent orientation in degrees. I made a class which automatically changes negative angles into positive ones (adds 3...
[9 replies] Last: You don't need inherited classes or anything else (like dinking with e... (by Duthomhas)
Highest Digit in a number(recursive function)
 
I have this example problem in my school coursebook. Could someone explain how this program works? It determines the highest digit in a number. #include ...
[4 replies] Last: The recursive principle is this: given a list of values, if I can do s... (by Duthomhas)
Do && and || cause branching?
 
Dear all, I read in the c++ tutorial that when the expression b1 && b2 is evaluated, with b1 and b2 two boolean expressions, b2 is not evaluated if it is not...
[1 reply] : Yes, since you're instructing the program to take different execution ... (by Cubbi)
Problem c++ emergency
 
Description Convert the decimal input number N (0 ≤ N ≤ 2 147 483 647) into a base B number (2 ≤ B ≤ 9). Input First, the number T of test cases...
[2 replies] Last: Hello, this can basically use to the ' itoa ' function. http://www.cp... (by cronopio)
What will happen when I declare like this a[a[i]]
 
Hi, Can Any one explain how the following code works exactly. #include <stdio.h> #define N 20 int main(){ int a ; int i; for(i=0;i<N;i++){ ...
[5 replies] Last: rich1@ Thanks for ur expalnation (by Ajaycpp)
Getline(cin, ...) doesnt work!?
 
Hello programmers, i have a very simple and trivial, but although a not simply to be solved problem: I have got a function: void getname(string name) { getli...
[9 replies] Last: I fixed it now; there had to be cin.ignore(0); Before the getline fu... (by jetkeynature)
Help me with struct?
 
I've an assignment to do which is involving struct used. But,I'm puzzled to do it cuz,what if the user cin another wizard name than the provided? It'll sum up,I...
[4 replies] Last: Here's another way to go about it using a vector: 1st the include fil... (by Largins7)
by quine
Reading one line from ".txt"
 
Hi everyone, First of all i want to point out that i'm a newbie in C++. I just started learning this year, i'm currently studying Software Engineering in uni...
[4 replies] Last: Many thanks to all of you, i finally solved it with your helps. Really... (by quine)
Display fonts with different size
 
Can anyone please tell me if I can use different font sizes in output screen
[4 replies] Last: No way to do this in the console. Console isn't meant for being pretty... (by TwilightSpectre)
C++ ISSUE HELP NEEDED
 
I wrote a program in C++,while compiling i got the error #include <iostream> #include <fstream> #include <conio.h> #include <...
[2 replies] Last: Line 21: You've got your syntax for your templates wrong. Compare them... (by Albatross)
December 2013 Pages: 1... 678910... 37
  Archived months: [nov2013] [jan2014]

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