Beginners - May 2011 (Page 13)

by cstorm
String input Problems
I've noticed lately I've been having lots of problems with string. I use a lot but it usually ignores the first word of the string I type in. If I try to outpu...
May 23, 2011 at 6:55am
[1 reply] : The common pitfall is mixing cin >> x; and getline(cin,x); but tha... (by coder777)
by Ragnos
Fatal Error LNK! Help, please!
Hello! I've been scouting around this website for quite some time until I finally decided to join up. I've been programming for a little while now with the hel...
May 23, 2011 at 6:49am
[1 reply] : It's likely the wrong type of project. Make sure you choose 'console' ... (by coder777)
c++ running a exported dll function from a injected dll
So I have this dll I made Here: #include <windows.h> BOOL APIENTRY DllMain(HMODULE hModule, DWORD ulReason, LPVOID lpReserved) { UNREFERENCED_PAR...
May 23, 2011 at 6:42am
[1 reply] : You need header file(s) where all the accessible functions/classes are... (by coder777)
2D collision: AARRRGHHH
For the last two days I've been trying to get a (seemingly) simple algo working: A detection system for my own Breakout clone. I use y = ax+b as function for...
May 23, 2011 at 5:41am
[17 replies] Last: Well I guess I'll use that for now. I'll look into Box2D later though!... (by xander333)
Reading from text file and displaying it on screen
I currently trying to read from a text file after which the contents of the text file will be display on the screen with some formatting. Codes compile with ...
May 23, 2011 at 4:11am
[2 replies] Last: Hi, this is the txt file I trying to read in, which I want to format... (by jellyfish)
Only picks choice 1?
In my code, everything I choose for the first pick goes directly to choice = 1. How do I make it so that if you type 2, it goes to choice 2? include ...
May 23, 2011 at 3:08am
[9 replies] Last: I found out what will work, cin.ignore(); cin.ignore(); return 0... (by kyranstar)
Spanish tutorial
Hi everyone, i'm trying to get my friend into C++ programming and i really like the tutorial of this site. But he only knows spanish, i want to know if there...
May 23, 2011 at 2:43am
[no replies]
by Bulova
passing structures into functions
Hi I've been messing around trying to pass structures into functions. my structure looks like this struct menutype{ int id; char name ; ...
May 23, 2011 at 2:16am
[1 reply] : You pass your custom types into functions much like you pass normal ty... (by matsom)
Reading same int or HWND etc from diffrent .cpp
Hello, I'm trying to learn about header files,I know that I can use variables and definitions of functions in it, but one thing I can't understand is that how ...
May 23, 2011 at 1:39am
[2 replies] Last: Oh my.... programing can be easier than you expected sometimes :) Tha... (by Mekolle)
Processor Warm-up
Hello, I'm trying to get some benchmarking results for two versions of a program I've made. A heuristic method is executed over a large amount of data sets. ...
May 23, 2011 at 12:49am
[1 reply] : Are you performing disk I/O to obtain these data sets? If so, the syst... (by helios)
Template class
Hi, I have a template class called Array that comprises a type and a nontype parameter. I have the following code for my constructor. template <ty...
May 23, 2011 at 12:38am
[5 replies] Last: int arrayIndex, x; ¿What type is x? ¿what type it should be?... (by ne555)
Login System
Hello, I am attempting to make a simple login system, and I am not sure how to go about this but the first question I have is how would I prompt to the user to ...
May 22, 2011 at 10:40pm
[1 reply] : You gotta be creative with this, you could have it create a small file... (by notajew)
Simple question about preprocessors on emacs
Hello! I am using emacs editor and compiling through terminal on Mac OS X 10.6.7 in my learning of C++. I am using the book Teach Yourself C++ by Richard Riley...
May 22, 2011 at 10:39pm
[3 replies] Last: Then why the need for the using namespace std; ? To make available... (by Moschops)
by Timbo1
SDL
I am trying to create a basic TicTacToe Game in SDL and so far have come up with the code below. Currently I have the board set up with 9 buttons that when you...
May 22, 2011 at 9:18pm
[2 replies] Last: Duplicate thread: http://www.cplusplus.com/forum/general/43509/ Check ... (by closed account D80DSL3A)
small advice
hey guys! -i have declared a variable called total inside of main -i want to use total inside of the functions prototypes that are before main is that ...
May 22, 2011 at 9:17pm
[4 replies] Last: OP said his variable was inside main . I believe use of global variab... (by anonymous23323124)
by Justis
Complicated reading from file
I've searched this forum and the internet quite a bit and I'm still not exactly clear how I would go about doing this. I tried using fstream and getline to read...
May 22, 2011 at 8:48pm
[1 reply] : To read a number, use operator >>. If there is no number in the file, ... (by hamsterman)
assignemnt help!
ok. i have been working on my assignment since morning and i feel tiered and confused. here is the assignment! Computers have been used to test students o...
May 22, 2011 at 8:29pm
[2 replies] Last: thank you so much :) that really helped yes it could be fixed by usin... (by alfreddoozz)
Pointer to Function
Im working on an example utilizing pointers to functions. In the code, first they declare a function: void qsort(void *lineptr , int left, int right, int (*c...
May 22, 2011 at 7:52pm
[7 replies] Last: right (bold is the cast), but still invalid - the compiler will not al... (by kfmfe04)
help this is urgent
hello! guys i am new here i am learning c++ in my university and i have an assignment for 2morrow. in this assignment i am asked to make three functions (which...
May 22, 2011 at 7:42pm
[4 replies] Last: i will try that ! thank you so much for your help really appriciate it... (by alfreddoozz)
by GUY25
What's wrong with my code?!
Hi all - I'm at a loss with this code! It's supposed to take a string in form of DDMMYYYY then output as DD Month YYYY so if you input 23012010, it would out...
May 22, 2011 at 7:19pm
[4 replies] Last: There's no problem with substr ; the problem is that you're using it ... (by Moschops)
May 2011 Pages: 1... 1112131415... 48
  Archived months: [apr2011] [jun2011]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.