Beginners - August 2013 (Page 11)

get input and open in string
 
Hi guys my first post here as i find this site too much helpful :) I am trying to read write and edit txt files in turboc++ I want to make a program that ge...
[3 replies] Last: You'd probably want something like this: std::fstream myFile; std::... (by Nenekonesha)
Need help linking compiled boost libraries in a project
 
Hello, I've successfully compiled boost libraries under Windows using MinGW. I'll be using the static multithreaded libraries with Codeblocks. So far I've do...
[3 replies] Last: Oh, it worked. Silly me. I think when you tried it under Linux, it req... (by Krisando)
making a variety map using templates
 
I was trying to replicate Python's dictionary, where its like c++'s map, for the exception that any data type can be a key or value. In c++ however i have t...
[3 replies] Last: template <class T> T dict(T, T){ std::map<T, T> map; return m... (by BigBlackSheep)
help required: C++ source code to ADD and MULTIPLY matrices using classes, pointers, dynamic arrays, etc.
 
Hey guys, I need someone out there to help me with this program. It's kind of urgent. Basically , I need a code that can input two matrices of a given order a...
[2 replies] Last: This seems like homework. The purpose of homework is learning. You d... (by keskiverto)
HEy guys a lil help.
 
So this for a class asignment. Creating a linear search. This ia what i have but its giving me syntax errors when i try to complie to test. any pointers as t...
[2 replies] Last: ty vlad that worked perfectly (by nightwing)
Learning C++
 
Hello people :) I have been learning c++ for about 9 months and I gave created some games with SFML engine, but after game creating i decided to learn C++ langu...
[2 replies] Last: Wow, thanks A LOT. I was searching for site like this for ages :) (by Dainiusss)
What is a base type?
 
What is a base type? I presume it's the type before the variable name Ex. Int x = 10; The int is the base type If I'm wrong please correct me. Thank you
[12 replies] Last: The name of the book is given above as c++ primer fifth edition . So... (by andywestken)
Unsigned char array to string?
 
I'm working on an NES emulator and am testing my CPU core. The test I am using outputs the test results to RAM addresses 0x6000-0x7FFF. My RAM array is of typ...
[3 replies] Last: Because the test I am using uses 0x0A as a null character (or at least... (by Dartht33bagger)
how do you use the clear function?
 
complete
[13 replies] Last: Well it isn't a matter of which way is better, it's just that i haven'... (by SlenderMan)
Pointer anh Matrix
 
When I run it, it has some mistake but I don't know wher it was #include <iostream> #include <windows.h> #include <time.h> #include <iomanip> using namespace...
[6 replies] Last: I can advice book "Thinking in C++" by Bruce Eckel. http://mindview.n... (by vlad from moscow)
How to Hack
 
I've been learning C++ on and off for the past year. I'm an intermediate programmer if I do say so myself, but one thing I don't understand at all is hacking. I...
[2 replies] Last: To be a hacker, you really need to understand the low-level concepts o... (by Stewbond)
by Nedim1
SFML-error message and strange beeping noise
 
I've been learning the basics of SFML library,and i want to load a texture and make a sprite, i write the code and run it, and the window pops up(white color) ...
[5 replies] Last: Computergeek01 I tried commenting it out, I even tried erasing it, not... (by Nedim1)
'=' performs deep or shallow copy?
 
From what I learnt in Java, if you have 2 objects, and you use the default assignment operator between them "=", you only perfom a shallow copy where only the a...
[3 replies] Last: If you wanted to do a "shallow" copy in C++ (where you just copy the a... (by Stewbond)
Program not functioning correctly
 
So my program is meant to receive an input and then find that input at the earliest position in Pi, then simply tell the user which position it is. Unfortunatel...
[5 replies] Last: No problem, sometimes you just need another set of eyes. (by Stewbond)
Classes - "myBotMain.o:myBotMain.cpp|| undefined reference to `bot::setName(std::string)'"
 
Ok, so I'm new to C++ and want to see where I'm messing this up. I'm using code::blocks with Gnu GCC. myBotMain.cpp #include "bot.hpp" #include <iostre...
[6 replies] Last: Do yourself a favor and stop leaking resources. Every `new' must have ... (by ne555)
Program failing to run
 
I've been messing around on Netbeans and have come to a standstill with one of my programs. I don't get any red lines or obvious warnings, yet my .exe isn't tur...
[5 replies] Last: You don't need a new thread, I can give you the answer to that one. '=... (by Computergeek01)
by Ch1156
How to keep console from spazzing out when wrong input is entered
 
Im making a game and i cant seem to figure out how to get the input to keep letting me input if the user enters something wrong it just infinitly loops, i have ...
[8 replies] Last: Also should i use cin.clear() and ignore at the end of every function ... (by Ch1156)
Derived Classes in Arrays
 
I have a Class which multiple sub-classes inherit. I was wondering if it were possible to make an array of the master Class, but populate it with derived classe...
[11 replies] Last: "Legality evaluation" tends to have three responses: 1. "Fully law-com... (by keskiverto)
Problems Displaying Bitmap
 
I'm trying to follow a book to start doing some basic Windows programming and it's going poorly. The book gives examples of several ways to display a bitmap bu...
[2 replies] Last: Okay. I figured it out. The bitmap files for the first three weren't... (by egg management fee)
Good script lang. to learn in parallell to C++?
 
Hi. I am currently learning C++ during free time. But I feel like I probably should learn a script language too. What script languages are good if you want t...
[4 replies] Last: Ok thanks for the help :). I will take a closer look at both JavaScrip... (by Zerpent)
August 2013 Pages: 1... 910111213... 51
  Archived months: [jul2013] [sep2013]

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