Beginners - July 2013 (Page 15)

by Exempt
Array of base objects filled with derived objects..
 
I was just trying to figure out why this code doesn't work and what would be the best way to go about doing this? NPC** oEnemies = new Pig* ; NPC is the b...
[7 replies] Last: Ah, i see what you mean peter, thanks for clearing it up. Initialize t... (by Exempt)
by dday9
Project not building
 
I'm a vb.net guy and I'm trying to learn C++. I understand the OO concept very well, and I consider myself a decent programmer. Currently what I'm using is Micr...
[13 replies] Last: but you forgot line 54... can you spot the error? think int math vs... (by Manga)
Removing first letter of string
 
How can I remove the first letter of a string? Thank you!
[3 replies] Last: #include <iostream> using std::cout; using std::string; int main(){... (by metulburr)
Send and receive integer from .txt file
 
How can I send and receive integer values with a .txt file using fstream? Thank you!
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ (by MrHutch)
Problem with boolean function
 
Hi All, I'm trying to create a password program that does the checking in a separate function. Apologies for the formatting, I don't know how to indent my c...
[7 replies] Last: if you only have two conditions for lets say where your wrote: bool... (by gobiking)
Inheritance constructor problems
 
I am having trouble executing constructors using parameters in three level inheritance. The following code will explain: class base { public: base(int ...
[6 replies] Last: The reason why it isn't working is because I used virtual public whe... (by alastairl)
writing data to a file
 
This code runs but it is supposed to write the information to a file. I called it "corpsalesfile.txt" and created a blank project in the same folder as my progr...
[2 replies] Last: leave out the opening of the file at line 129. The file is already ope... (by SilvesterThe8th)
What is the Quadtree Algorithm?
 
Ive read a lot about this, and I want to use it in the game im making at the moment, but I dont really understand it. I understand that it splits into four squa...
[no replies]
10 per page display
 
I am working on struct array and the challenge is I have to Display 10 records at a time. How can I have my program display 10 records at a time and continue ...
[6 replies] Last: using namespace std; struct perInfo { char fname ; Int age;... (by dragonblaze)
fatal error
 
im writting this code: #include<iostream> using namespace std; void funct(int (a) ){ int q; for (q=0;q<3;q++){ cout<<a ;}} int main(){ int a ; a =1; a =2...
[4 replies] Last: i rewrote the programm and there's no problem...nevermind (by davethan)
Attempting to make a factorial program has ended poorly
 
Hello, I'm trying to teach myself to code and I've always found the best way to learn was through doing. However in my attempt to make a fairly straightforward ...
[9 replies] Last: There's another problem in your for statement: for(x = f; x=0; ... (by MikeyBoy)
by Tomhet
Lua 5.2 resume is crashing
 
the title tells everything... the crash place is in "ala_lua_co.h" header #include<cstdio> #include<ala_lua.h> extern"C"{ void __stdcall Sleep(unsigned l...
[1 reply] : I solved... the problem was about collect garbage... so I just turned... (by Tomhet)
low level programming in c++
 
(aside from the speed increase if you were to optimize c/c++ code and the closed source options with c/c++) I am trying to figure out what you can do in c++ th...
[7 replies] Last: This situation is occurring right now, which can be observed by huge a... (by tath)
String question
 
How can I get the first or second letter of a string? Also how can I add letters to a string? Thanks for your help!
[3 replies] Last: std::string s( "ABCDEF" ); for ( std::string::size_type i = 0; i < s.... (by vlad from moscow)
CSV import manipulation
 
So I'm working on something for my dad's company, the general idea is that we download sale data into an excel pivot table, we then export that data (via a csv ...
[4 replies] Last: I find Access very powerful for the kind of problem you're describing.... (by AbstractionAnon)
This is not acting how I want it
 
The second menu overlaps the old one, how do I fix this? AppendMenu(Men1,MF_POPUP, (UINT_PTR)Options1, "Game Type"); AppendMenu(O...
[1 reply] : nvm I figured iut out (by Johnny111111111)
I am stuck on this problem
 
Hi everyone, I have been racking my brain for a couple days now on this homework assignment and I am still lost. This chapter is about memory management. ...
[3 replies] Last: thanks for the input guys, after taking a small break I realized how e... (by Gkneeus)
Variables in TXT
 
So I posed this question earlier but maybe I didn't explain it well enough. Basically, I have a txt file with pairs of coordinates for different locations. The ...
[5 replies] Last: I fixed a couple of minor errors in Stewbond's code. (added main, cha... (by AbstractionAnon)
Strings of a different animal...
 
I'm having the worst time understanding strings. For instance, if I want to read from a file "029894 23874 27695784 39089058340" then all I have to do is set up...
[2 replies] Last: how do I accomplish this with strings in C++ Begin by using actual C... (by Cubbi)
by fuat
Code writing help
 
Hi everyone,i have this program for an school assignment. the goal of program is that encodes the user name part of a given e-mail address and creates a passwor...
[no replies]
July 2013 Pages: 1... 1314151617... 53
  Archived months: [jun2013] [aug2013]

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