Beginners - January 2011

Decryption code (1,2)
 
So I was making my encryption / decryption program a little while back and someone gave me this code: size_t j = pdphrase.find_first_of('a');...
[38 replies] Last: Alright. I may just drop this project for now seeing as its way to dif... (by tehrealbinglebob)
Pointer to structure member access
 
I thought I had this stuff down, but I was writing some code and got an error when compiling. First here is the code you need to know about: contributions...
[4 replies] Last: i didnt know that. or rather, i never thought about what was happening... (by acorn)
by vls610
Getline string
 
Hello, I keep encountering an issue in my read file function, I'm trying to use pass the code from an input file as a string, but I keep getting the message" no...
[1 reply] : You can't use getline() with char arrays. Use an std::string instead. ... (by Zhuge)
by fvez
Reading information from a text file
 
Hello. I'm a newbie learning C++ and i've run into a problem with reading info from a .txt file. This is what I have so far: Inny >> getline(cin,railroad...
[7 replies] Last: #include <fstream> #include <iostream> #include <iomanip> #include... (by fvez)
Trouble with my first program
 
I am making a Reimann sum calculator for my first "real" program (that is other than hello world and such) It is currently unfinished since i still have to l...
[4 replies] Last: Ill postpone my program then, for when I'm a bit more advanced, thanks... (by closed account 98U9GNh0)
Inventory Setup
 
hello everyone lately i have been having a problem with making an inventory in my c++ rpg game this game uses SFML/opengl(later on) and im wondering how i...
[8 replies] Last: class Player{ private: inventory meaningful_name; }; (by ne555)
by JayCee
Qt and me??
 
Having seen a little about QT on the web my question as a newbie to C++ is should I be looking more closely at Qt, eg is it a new IDE for C++ or is it a totally...
[15 replies] Last: Qt is great for developing cross-platform GUI apps. My main beef with... (by jsmith)
Interactive prompt like IDLE
 
I have done a reasonable amount of programming in the past and am trying to use C++ more mainly for educational reasons but also for speed. :) One of the thing...
[2 replies] Last: Ok that's what I wanted to know. Thanks (by rsymons)
illegal pointer use. what should i do?
 
hai everyone. I'm stucked in the middle of my programming. I'm trying to read data form the file, and then create the classes as well as feature vector format f...
[5 replies] Last: [co de] "Your code goes here" [/cob de] Line 49: count <<" "<<li... (by ne555)
Aggregate has incomplete data type?
 
Following suggestions I received on this site, I've been trying to work with multiple files and applying OOP concepts. When trying to compile, the following war...
[2 replies] Last: Thanks, it works now :D But I thought that the point of header file... (by Davitosan)
Failing to set arrize size with var
 
Hey guys, Thanks up front for your help, this seems like a ridiculous problem but I'm stuck on it (drat!). Anyway, I have a structure and I'm trying to...
[2 replies] Last: Okay, thanks a lot moorecm. (by dhume878)
Calling The Constructor
 
I was messing around with my variable which is of type bool . I tried calling the variable's constructor after I had already defined it, like this: bool My...
[2 replies] Last: OK. Thanks for the reply, Disch. (by closed account zb0S216C)
by cytmtn
strtok
 
Why is it that changing the following line: char str ="- This, a sample string."; to char * str ="- This, a sample string."; in the re...
[2 replies] Last: Got it, thanks! (by cytmtn)
calculation
 
Hey everyone I am really new to C++, I was wondering how I could make this code simpler.Thank you void calculate(int x, int y) { x = y − x; y = y − x; ...
[7 replies] Last: Thank you (by beaver55)
Having trouble with doubly linked list
 
I am brand new to C++ and I need to make a doubly linked list using 3 classes. I was given the 3 header files for the classes, and I need to create 3 complete ....
[no replies]
Should I Allocate This On The Heap?
 
I'm building a small concept game. The player holds a torch( flash light if you're American ) that requires batteries every time the torch's batteries die. In t...
[4 replies] Last: OK. Thanks, hamsterman. (by closed account zb0S216C)
First program a disaster...
 
Hello all, I have always been into the tech side of things...networks / pc's etc. but used to program basic on my cbm64 when i was like 10. felt like i...
[10 replies] Last: LIFE TO THE ANTITHESIS OF THE NON-PURVEYORS OF THE SYSTEM!! it h... (by ultifinitus)
getting a strange output in the console
 
I am also not able to get my letters to convert to numbers #include <iostream> #include <string> #include <iomanip> using namespace std; //prototypes ...
[11 replies] Last: thanks. (by twentfiveu)
Composition question
 
Hello all, I am new to this forum and new to programming. In class, we recently went over composition and I am still having trouble getting my program to execu...
[2 replies] Last: Thanks Moschops. I have seen your posts around the beginner forum and ... (by camou562)
use objects in class
 
Hello i have one class created by me: Point. I want to create another class triangle and want to use point objects for vertexes of triangle, so I want to create...
[3 replies] Last: thx :) (by theimmortalbg)
January 2011 Pages: 123... 42
  Archived months: [dec2010] [feb2011]

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