Beginners - January 2014 (Page 37)

dynamic array/pointer
 
unsigned int* hci_buffer; unsigned int hci_buff_size; hci_buff_size = HCI_DAT_PKT_LEN * HCI_NO_PKTS; //!used ...
[12 replies] Last: unsigned int *hci_buffer = new int {}; //Means need to add {} at the ... (by S G H)
Cannot define a class (unknown type name 'class'
 
Hello, I've taken about a year break from c++ and I decided to get back into and it's fighting me :( So I'm trying to declare a class Configure , and I jus...
[1 reply] : There's nothing wrong with that blueprint. You'll have to post the ac... (by Disch)
by JohnJH
Overload operator for Car class
 
I need to overload this operator for my class Car.. It should compare each attribute for the object, and cout the things which are the same. ex. ...
[1 reply] : Duplicate thread here: http://www.cplusplus.com/forum/beginner/121277/... (by Catfish666)
How to sort 2D arrays in C++ ?
 
Hi! I want to ask how can I sort top 10 numbers that appears most. before sort-http://postimg.org/image/6la0fajl9/ after sort-http://postimg.org/image/e5nyth7...
[1 reply] : > How to sort 2D arrays in C++ ? #include <iostream> #include <itera... (by JLBorges)
What sorcery is this?
 
May anyone please explain this line to me? char* P_SampleCharacter = "Hello"; I am greatly surprised with that line of code. This is how I interpret...
[5 replies] Last: The type of a string literal is ' array of const char ' #include <io... (by JLBorges)
by DELB
Getting errors for IndexOf function
 
#include "stdafx.h" #include <iostream> #include <string> #include <locale> using namespace std; int IndexOf(string& text, string& pattern) { // where appe...
[2 replies] Last: Thanks man. (by DELB)
.net framework
 
I was downloading MS Visual Studio 2010 and also encountered the software downloading .net framework. Meanwhile, I have also heard some other frameworkds out th...
[3 replies] Last: Nope it wasn't and it was good explanation :) Just wanted to get a nov... (by fahmankhan75)
finding perfect cubes :)
 
This snip of code will only find the perfect cubes 1, 8, and 27. when the user enters 100. It doesn't realize that 64 is a perfect cube. I can't find the proble...
[1 reply] : You ran into some floating-point inaccuracies. pow((double)64, (doub... (by long double main)
question about class
 
I am having a bit of troubles fully understanding classes. To my understanding this is what the general structure of a class looks like. class example { ...
[9 replies] Last: @xismn Ok, that will do it! Thank you all! (by feare56)
were to start with graphics and c++?
 
i am quiet good at console applications and can make most simple programs but i have been doing this for 4-5 months and i rely want to move onto graphics could ...
[2 replies] Last: http://www.cplusplus.com/faq/intro/#gui (by Duthomhas)
"xyz does not name a type" error
 
Hi, As shown below, I am trying to make a tictactoe game. It is not complete yet. I am trying to use the code from this tutorial: http://www.cplusplus.com/f...
[1 reply] : C++ is case-sensitive. This means that class and Class and CLASS ... (by Catfish666)
by DELB
GetTickCount() memory question
 
class Interval { private: unsigned int initial_; public: // Ctor inline Interval() : initial_(GetTickCount()) { } // Dtor virtua...
[3 replies] Last: Oh, I see. However, what bit of that class prevents it from going to ... (by DELB)
Problems with linked lists
 
Before reading this, the code is in Spanish. Hello everyone, I'm new making structures and I like it. I have a project to do and the link below show you an i...
[1 reply] : If you are going to set a variable to null or initialise the variable ... (by Smac89)
Finally enter the distance from Lofty to the tree to the nearest foot
 
Hi, I'm trying to understand and learn C, reading the book From novice to professional5th edition. In end of 2nd chapter is this one code. What I don't understa...
[1 reply] : [quote=mato9099]What I don't understand is why the last input haven't ... (by Smac89)
App audio
 
I have an app where I want to listen to my brainwaves through the earphones. Everything works fine, except how do I connect the live brainwave stream to an audi...
[no replies]
SDL setup problem
 
After following each step of lazyfoo.net and another youtube video for the latest sdl2.01 for code::blocks i have the following problem :Error SDL/SDL.h no such...
[no replies]
Specfic program crashing
 
I don't know why but this always crashes when I try to run it. It compiles just fine though. Since I'm learning from a book I don't know how to randomize yet s...
[1 reply] : Randomizing is super easy. #include <random> //Library for random n... (by Mats)
Declaring a multidimensioal array with variables?
 
I was writing a program with a 2D array (see below #include <iomanip> #include <iostream> using namespace std; // ------ Prototypes ----------------...
[2 replies] Last: The problem is that you can't declare an array with dynamic size. To d... (by Mats)
by Fuzz
Reading and writing files and examining characters
 
Write your question here. I have two files, one with text that needs decoding "encoded.message" and one for an output file "output.txt". I want to import and...
[4 replies] Last: Ignores whitespace, requires input file to be redirected to the progra... (by Smac89)
console game
 
I am currently making my first console game to challenge myself but I am getting stumped on a couple of things. Please ignore my empty voids as I want to attemp...
[6 replies] Last: @feare56 No, i didn't change anything else, just added the include. I... (by whitenite1)
January 2014 Pages: 1... 3536373839... 44
  Archived months: [dec2013] [feb2014]

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