Beginners - August 2013 (Page 14)

Linking files
 
I have a .cpp file and a .h file in my .h file I have difinitions... #ifdef DEFINITION #define DEFINITION #define THIS_THING #endif I have probably 2...
[7 replies] Last: Yeah I always wondered about that I would read .h files and see #ifnde... (by timprograms)
Clear screen...
 
Hey I'm on a linux and I want help with deleting text... clear the screen no system(); Then color screen red... Also how can the programmer tell how big the s...
[17 replies] Last: sudo apt-get install ncurses-devel I think... I don't use Android ... (by Duthomhas)
pointer to instance of class?
 
I'm working on a chess program. The way the program works now is sort of inefficient. Its easier to explain with an example. I have classes for squares and ...
[16 replies] Last: Yea, I've used it with posix threads before but I never knew that was ... (by Smac89)
Problem with argv
 
I'm running a linux... actually an android with Terminal IDE installed(amazing app) and I created this program with command line arguments... I run it no erro...
[11 replies] Last: Thank you for you help it worked with the 2d array (by timprograms)
Can someone explain what's wrong here?
 
I've gotten utterly lost in the world of pointers and arrays. I'm trying to make a very simple game. The first step is getting a "unit" to move across a grid...
[3 replies] Last: Okay guys, thanks a ton for the advice! The thought had occurred to m... (by INeedAHero)
API for C++ GUI Programming
 
Hi all and thanks in advance. Can you suggest me an API to realize a GUI with C++?? I try to create a simple project with win API but I see that there's a lot ...
[3 replies] Last: Ok thanks a lot (by Giacomino)
by etneri
Changing a Record
 
I'm having trouble with a function I'm trying to add to my program.. It's working with the output, but it's deleting the entire record from the structure whe...
[1 reply] : I believe you will be getting a seg fault on line 25 because the point... (by Smac89)
Problem with a tutorial
 
Hi guys I am new to C++ but I have completed some basic tutorials and started a tutorial to make my own text based RPG. The link to the tutorial is http://www.p...
[11 replies] Last: ahh that makes sense now, thanks superdude. (by TheWidowMaker)
argument for class template
 
I am struggling to properly use class templates (lines 47, 48) please help. thank you. #include<iostream> #include<vector> #include<string> #include<...
[2 replies] Last: Thanks AbstractionAnon. Works great now. I appreciate it. (by G8rCre8or)
Please help
 
I am getting two error messages here and don't know why or how to solve. First error message is warning C4091: '' : ignored on left of 'void' when no variable ...
[3 replies] Last: Thank you Kinley and ne555. Works great now. I appreciate it. (by G8rCre8or)
C++ programs communicate with binary file.
 
I have never made a 2 programs before that can communicate with each other. But I am interesting in trying this. But I am not sure about how to make them commun...
[3 replies] Last: It's really very rare for programs to need to communicate like this, e... (by LB)
Won't compile
 
This is just a syntax problem. I have three programs here - Unit.h, Unit.cpp, and Game.cpp. Game.cpp includes Unit.h. The issue is with passing the two-di...
[11 replies] Last: Ahhhhh, finally...it compiled (char, not int haha) Thank you so much ... (by INeedAHero)
Array Indexing Question
 
Hello, I am very new to C++ and have started to teach myself from a book; which I am enjoying mostly. Ok to start of this program(below) was inside my C++ book...
[7 replies] Last: So I've got a terrible book then. Dam it. Well yeah I agree you; with... (by SoftMOUNT)
Why do you have to add & sign when initialising a pointer
 
Why do you have to add & sign when initialising a pointer. Like the &sign is for a reference. Right? Why do you have to make a reference to initialise or assig...
[1 reply] : Oh sry I found the answer:A pointer holds the address of another objec... (by closed account EwCjE3v7)
DFS with C++
 
IS MY DFS CODE ALRIGHT??? CAN anyone plzzzz check????????? will all the output be OK with my CODE??and one more question- is the forloop necessary here before t...
[no replies]
question about structure of a node
 
Can someone help me out? I am a little bit confused of what to do here. If a simple structure of a code looks like this struct node{ int data; ...
[2 replies] Last: Thank you very much :D (by Kimmydoo)
Just starting out, self taught.
 
So i am new at programming in C++. I really like it ant its a fun way to pass time. But i was wondering if anyone could give me some pointers as to how i should...
[11 replies] Last: yes i would say figuring out how to have a character move between two ... (by MarketAnarchist)
Classes with Headers not Working
 
Trying to learn to use simple classes outside of main.cpp, and I can't get anything to work no matter what I do. Here's my attempt. Test.h #ifndef TEST_H...
[5 replies] Last: Don't. "using namespace foo;" is the using directive . It has the s... (by keskiverto)
Is there anything obviously wrong with this open and read file code?
 
This code is causing different errors between the times that I run my program. It's pretty much exactly the same as the example on this websiteit. The errors...
[4 replies] Last: Err, so what is the best way to handle mixed strings and binary data? ... (by Gladdok)
Switching from SDL1.2 to SDL2.0
 
After just lerning the basics of SDL i want to swich over to SDL2.0. I found most of the basic new comands in the Introduction on: http://wiki.libsdl.org/Intr...
[3 replies] Last: *Update: After some googling I found SDL_BlitMap but still duno how to... (by theblackdog)
August 2013 Pages: 1... 1213141516... 51
  Archived months: [jul2013] [sep2013]

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