dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

!!!!!!!!!!

 
dev.gamez.lv Forum Index -> Programmēšana
View previous topic :: View next topic  
Author Message
eXeM



Joined: 22 Mar 2005
Posts: 155
Location: Ape

PostPosted: Sun Jan 29, 2006 5:49 pm    Post subject: !!!!!!!!!!

Man te ir diezgan nomilzusi prob
kapee man piesienaas par shito

#include "fstream.h"

agraak viss bija ok.
bet tagad nesen ieinstaleeju ms visual stud 2005 un man saaka pa shito mest pazinjojumus aaraa..
ko dariit?
Back to top
View user's profile
anggelus



Joined: 23 Feb 2005
Posts: 383
Location: Rīga (LV)

PostPosted: Sun Jan 29, 2006 5:57 pm    Post subject:

es paņēmu to fstream.h no Visual Studio 2003 Smile)
_________________
No comprendo lo que dice.
Back to top
View user's profile Send e-mail
eXeM



Joined: 22 Mar 2005
Posts: 155
Location: Ape

PostPosted: Sun Jan 29, 2006 6:01 pm    Post subject:

Atradu !
#include "fstream.h"
vietaa vaig
#include <fstream>

un jaarauj caur namespaci

std::

ok. Very Happy
=============================
Es ar iedomaajos mosh kaukur jaanozog...
Back to top
View user's profile
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Sun Jan 29, 2006 6:54 pm    Post subject:

C++'ā ir pieņemts stl'a headerus prosta #include <xxx> veidā lietot. Tad viņi ieiet std neimspeisā. Bet ja lieto #include "xxx.h" veidā, tad std neimspeisa nav. VC2005 laikam atmeta to otro nelabo variantu, kas labi vien ir.

Ja gribi lai nav jāraksta std:: visam priekšā, tad lieto using namespace std; lai iekļautu visus std neimspeisa objektus tekošajā neimspeisā, vai vienkārši using std::string; lai tikai string objektu iekļautu tekošajā neimspeisā.
Back to top
View user's profile Send e-mail
loud



Joined: 01 Jan 2006
Posts: 38
Location: Latvia, Sigulda

PostPosted: Mon Jan 30, 2006 6:41 pm    Post subject:

Quote:
Tad viņi ieiet std neimspeisā. Bet ja lieto #include "xxx.h" veidā, tad std neimspeisa nav


hehee shito esmu mekleejis un lasiijis 2 dienas tieshi ko tas namespace dod, bet taa i liidz galam neesmu izpratis. Tagad pietika ar 2 teikumiem to izprast Very Happy
_________________
Here I am
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Mon Jan 30, 2006 9:42 pm    Post subject:

Tajos teikumus nav nekas pateikts par neimspeis būtību, bet gan tikai par to atšķirību inklūdojot divus dažādus failus. Neimspeisa būtība ir nepiedrazot scope (nezinu kā latviski iztulkot) ar nevajadzīgiem simboliem.
Back to top
View user's profile Send e-mail
Display posts from previous:   
dev.gamez.lv Forum Index -> Programmēšana All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group