maxoooooo Posted May 2, 2013 Share Posted May 2, 2013 დავაჭირე ც++ და არ ამოაგდო console application აი ნიმუში და შედეგი როგორ ვნახო? Quote Link to comment Share on other sites More sharing options...
მიშო Posted May 2, 2013 Author Share Posted May 2, 2013 დავაჭირე ც++ და არ ამოაგდო console application აი ნიმუში და შედეგი როგორ ვნახო? ctrl+F5 Quote Link to comment Share on other sites More sharing options...
maxoooooo Posted May 2, 2013 Share Posted May 2, 2013 არ მმუშაობს Quote Link to comment Share on other sites More sharing options...
მიშო Posted May 2, 2013 Author Share Posted May 2, 2013 ისე რატოა ეგრე შენთან? რა ვერსია დააყენე? ასე უნდა იყოს არ მმუშაობს სანამ გაუშვებდი შეინახე? ctrl+s Quote Link to comment Share on other sites More sharing options...
maxoooooo Posted May 2, 2013 Share Posted May 2, 2013 კი შევინახე მაგრამ არ უშვებს http://allshares.ge/download.php?id=D12AF75841 შენ რო დადე ის ვერ გადმოვიწერე და ამას დღენახევარი ვუცდიდი Quote Link to comment Share on other sites More sharing options...
მიშო Posted May 2, 2013 Author Share Posted May 2, 2013 კი შევინახე მაგრამ არ უშვებს http://allshares.ge/download.php?id=D12AF75841 შენ რო დადე ის ვერ გადმოვიწერე და ამას დღენახევარი ვუცდიდი რას გიწერს? ერორს აგდებს რამეს? შეიძლება კოდი გაქვს არასწორად Quote Link to comment Share on other sites More sharing options...
ოთო Posted May 2, 2013 Share Posted May 2, 2013 პროექტს რატო აქმნევინებ? არ ჭირდება ჰედერი და არაფერი, ესეც დიდ პროექტს არ წერდეს რამდენიმე ფაილი რო ჭირდებოდეს 1 ფიალი შემქენი .cpp იანი new txt იდან და ვსო მეტი არ გჭირდება არაფერი Quote Link to comment Share on other sites More sharing options...
მიშო Posted May 2, 2013 Author Share Posted May 2, 2013 მე რას არ ვაქმნევინებ თვითOნ არ ქმნის Quote Link to comment Share on other sites More sharing options...
maxoooooo Posted May 3, 2013 Share Posted May 3, 2013 წინა გვერდზე რო კოდია ის დავაკოპირე 1>------ Build started: Project: malxaiz, Configuration: Debug Win32 ------ 1>Build started 5/2/2013 10:33:59 PM. 1>InitializeBuildStatus: 1> Touching "Debugmalxaiz.unsuccessfulbuild". 1>GenerateTargetFrameworkMonikerAttribute: 1>Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files. 1>ClCompile: 1> All outputs are up-to-date. 1> malxaiz.cpp 1>malxaiz.cpp(1): warning C4627: '#include <iostream>': skipped when looking for precompiled header use 1> Add directive to 'StdAfx.h' or rebuild precompiled header 1>malxaiz.cpp(25): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source? 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.88 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========აი ეს #include <iostream> using namespace std; int main() { int x, y, i, counter = 0; cin >> x >> y; int size = (x+y)/2 + 1; int numbers; for (i=x; i<=y; i++) { if (i % 2 == 0) { numbers[counter] = i; counter++; } } for (i=0; i<counter; i++) { cout << numbers << endl; } return 0; } Quote Link to comment Share on other sites More sharing options...
ზუბა Posted May 3, 2013 Share Posted May 3, 2013 precompiled header-ი გაქვს ჩართული და iostream-ს აიგნორებს შენს cpp-ში, გახსენი stdafx.h და იქ ჩაწერე #include <iostream> using namespace std; და შენს malxaiz.cpp-ში კიდე #include "stdafx.h" Quote Link to comment Share on other sites More sharing options...
მიშო Posted May 3, 2013 Author Share Posted May 3, 2013 ხო გითხარი precompiled header გაუთიშე მეთქი. ამას უყურე და მიხვდები. Quote Link to comment Share on other sites More sharing options...
ზუბა Posted May 4, 2013 Share Posted May 4, 2013 ხო გითხარი precompiled header გაუთიშე მეთქი. რატომ უნდა გაუთიშოს მაგით ბევრად მოსახერხებელია include-ების ორგანიზება Quote Link to comment Share on other sites More sharing options...
მიშო Posted May 4, 2013 Author Share Posted May 4, 2013 რატომ უნდა გაუთიშოს მაგით ბევრად მოსახერხებელია include-ების ორგანიზება hello world-ის დაბეჭდვას რად უნდა ჰედერები. 1 1 Quote Link to comment Share on other sites More sharing options...
Gugamata Posted June 27, 2013 Share Posted June 27, 2013 დავალება მომცეს. როგორ უნდა წავიკითხო რა წერია .txt ფაილში? Quote Link to comment Share on other sites More sharing options...
მიშო Posted June 27, 2013 Author Share Posted June 27, 2013 დავალება მომცეს. როგორ უნდა წავიკითხო რა წერია .txt ფაილში? უფრო კონკრეტულად? ბიბლიოთეკებში უნდა ჩაამატო using fstream; მერე აღწერ ცვლადს ifstream fin("text.txt") // fin-ის მაგივრად რასაც გინდა იმას დაწერ. მერე რისი გაკეთებაც გინდა იმის მიხედვით გააგრძელებ 2 Quote Link to comment Share on other sites More sharing options...
Gugamata Posted June 27, 2013 Share Posted June 27, 2013 უფრო კონკრეტულად? ბიბლიოთეკებში უნდა ჩაამატო using fstream; მერე აღწერ ცვლადს ifstream fin("text.txt") // fin-ის მაგივრად რასაც გინდა იმას დაწერ. მერე რისი გაკეთებაც გინდა იმის მიხედვით გააგრძელებ ეგენი გავაკეთე, გეთლაინით უნდა გაკეთდეს მგონი. უნდა წავიკითხო ხაზების რაოდენობა რაღაც "in" ფაილში. Quote Link to comment Share on other sites More sharing options...
მიშო Posted June 27, 2013 Author Share Posted June 27, 2013 ეგენი გავაკეთე, გეთლაინით უნდა გაკეთდეს მგონი. უნდა წავიკითხო ხაზების რაოდენობა რაღაც "in" ფაილში. აქედან რომ აარჩიო? მე კარგად არ მახსოვს, თან არ ვიცი სინტაქსი რა დონეზე იცი. Quote Link to comment Share on other sites More sharing options...
ოთო Posted June 27, 2013 Share Posted June 27, 2013 კონკრეტულად რა გჭირდება? ფაილში რაც არის კონსოლში დაბეჭდო პირდაპირ თუ რა Quote Link to comment Share on other sites More sharing options...
მიშო Posted June 27, 2013 Author Share Posted June 27, 2013 კონკრეტულად რა გჭირდება? ფაილში რაც არის კონსოლში დაბეჭდო პირდაპირ თუ რა თუ არ ვცდები უნდა დაბეჭდოს ახალი ხაზების რაოდენობა ფაილში. მაგალითად თუ წერია aასდჰს;ლფნ;სდლფნ;კფგ b'კდფჯგ;ოფკჯგლკჯფდგპ cლკსდგ;რლდკგმრ;დგლკმ dდფკჯ'ლგკჯ'დფგჯდ'ფგ e;კსფჰ;ლდსკჯ'ლდჯგ 5 ხაზი გამოდის და ეგ უნდა დათვალოს. მგონი ამის გაკეთება სურს Quote Link to comment Share on other sites More sharing options...
ოთო Posted June 27, 2013 Share Posted June 27, 2013 მარტივია /n ები უნდა დათვალო ფაილში ჩარებით შეგიძლია გააკეთო იტერაცია მთელ ტექსტზე და როგორც კი ეგ შეგხვდება მთვლელი გაზარდო Quote Link to comment Share on other sites More sharing options...
qishooo Posted September 23, 2013 Share Posted September 23, 2013 ერთი რამ მაინტერესებს,c++-ს ვსწავლობ ახალბედა ვარ (ვიზუალ სტუდიოს 2010),როცა შევქმნი ახალ პროჯექტს ამ გზით Start Page -> New Project -> Win32 -> Win32 Console Application ,Win32 Aaplication Wizard fanjris Next Rilakze daWeriT gadaვდივარ Application Settings fanjaraSi, ვნიშნავ Tviseba Empty Project-ს,შემდეგ ვქმნი Project -> Add New Item -> C++ File(.cpp)-ს რატომღაც ასეთი პრობლემები აქვს: დაწერილი პროგრამის რამდენიმეჯერ გაშვების,ასე ვთქვათ ამ პროექტში დიდი ხნის მუშაობის შემდეგ,დაწერილი პროგრამა სრულიად გამართულიც რომ იყოს, არის შემთხვევები რომ უნებურად აგდებს შეცდომებს,როცა ვიცი რომ პროგრამა აბსოლიტურად გამართულია და ასე მაწვალებს სანამ არ გამოვრთავ მთლიანად ვიზუალს და ახალ პროექტს არ შევქმნი. არის თუ არა ეს პრობლება მოგვარებადი ? დავუსვი მე ეს შეკითხვა თსუში ჯალიაბოვა ნორას მაგრამ პასუხი ვერ გამცა Quote Link to comment Share on other sites More sharing options...
GIBSON Posted September 23, 2013 Share Posted September 23, 2013 როცა ვიცი რომ პროგრამა აბსოლიტურად გამართულია ცოტა თამამი განცხადებაა Quote Link to comment Share on other sites More sharing options...
qishooo Posted September 23, 2013 Share Posted September 23, 2013 ცოტა თამამი განცხადებაა რთულ მოქმედებებზე არ ვარ გადასული ჯერ და მაგიტომ ვამბობ მასე, უბრალოდ პროგრამა შვება მასე ამ წუთას თუ გამართულად მოგაწვდის პასუხს ,მეორე ჯერზე ცოტახანში შეიძლება ერორები ამოაგდოს იმავე დაწერილზე ///////////////////////////////////////////////////// // ჰერონის ფორმულის მეშვეობით გამოთვალეთ სამკუთხედის ფართობი: /////////////////////////////////#include <iostream> using namespace std; int main() { cout<<"shemoitanet samkutxedis samive gverdi"<<endl; double a, b, c, s, p; cin>>a>>b>>c; p =(a+b+c)/2; s =p*(p-a)*(p- *(p-c); if(a > 0 && b > 0 && c > 0 && a < b+c && b < a+c && c < a+ cout<<"samkutxedis S= "<<sqrt(s)<<"-s"<<endl; else cout<<"samkutxedistvis araswori monacemebi shemogaqvt"<<endl; system("PAUSE"); return 0; } Quote Link to comment Share on other sites More sharing options...
მიშო Posted September 23, 2013 Author Share Posted September 23, 2013 ნორამ თავისთვის არ იცის, შენ რა უნდა გასწავლოს. ერთ პროექტში ორ .cpp ფაილს ხომ არ ქმნი? 1 Quote Link to comment Share on other sites More sharing options...
qishooo Posted September 23, 2013 Share Posted September 23, 2013 ნორამ თავისთვის არ იცის, შენ რა უნდა გასწავლოს. ერთ პროექტში ორ .cpp ფაილს ხომ არ ქმნი? ეგ მასწავლიდა პრაქტიკულზეც და ლაბორატიულზეც,საერთოდ ვერაფერს გვაგებინებდა . ალგორიტმებზე ქურდიანი კი საერთოდ კატასტროფა იყო კი ორი მქონდა ხოლმე შექმნილი,არ უნდა შემექმნა? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.