- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 6
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Re: i think he asks more or less personal experiences from other countries,cause he isnt satisfied for his,if he was he wouldnt make that question :D | |
I know that there is a sticky thread and i know that maybe i repeating things that already mentioned but i am totally confused. I am interested to study about game programming,i don't study i bought a book and i am near to finish it about c++. i goggled and … | |
i try to understand how it works. its supposed to work but isnt. the following code shouldnt be working?what i do wrong? i receive the constructor values. [CODE]#include "Person.h" #include <iostream> #include "fstream" #include "cstdlib" using namespace std; int main() { fstream file("malakia.dat", ios::out | ios::in | ios::binary); Person data; … | |
hey all i am studying from a book,and i have to do an exercise. i dont want code or anything i want tip or someone explain me how to do it. i have a oldmast.dat file with some records a trans.dat file with records and i have to update the … | |
Re: whats the mistakes that you receive? | |
i do an exercise and i have 2 questions. the exercise is to take an array example from my c++ book and make it template. for start my code is this: [CODE]#include <iostream> #include <iomanip> #include <cstdlib> #ifndef ARRAY_H #define ARRAY_H using namespace std; template<typename T,int elements> class Array { … | |
I do an exercise and i wrote this code to test templates [CODE]#include <iostream> #include "Date.h" #include "Time.h" using namespace std; template <typename T> bool compare(T first,T second){ if (first==second) return true; else return false; } template <class T,class X> bool compare(T first,X second){ if (first==second) return true; else return … | |
1) what exactly is the difference in a constructor if you put reference on it? example[CODE]ConstructorX(string first):firstName(first)[/CODE] with [CODE]ConstructorX(string &first):firstName(first)[/CODE] 2) [CODE]const Array &operator=(const Array&)[/CODE] the first const what exactly means?the const in the parenthesis is that the object is constant if its at the end means the function cannot … | |
i am fixing something and i have that fuction in it [CODE]bool DeckOfCards::checkFlush(const Card checkCards) { counter=0; cardCheck=" "; for(int x=1;x<5;x++) { cardCheck=checkCards.suits[x]; for(int y=0;y<5;y++) { found=hand[y].find(cardCheck); if(found!=string::npos) { counter++; } } if(counter==5) { return true; } counter=0; } }[/CODE] it goes here: [CODE]bool result=false; if((result=checkFlush(checkCards))==true) { return winner=5; }[/CODE] … | |
how i can pass inside a vector an array? i know how to do it without classes but i don't know how to do it with constructor. i try to create a 2nd constructor that takes array of integers and the size of array and initialize a vector. header [CODE]#ifndef … | |
Re: show the code you have writen or something,you changed something?what the program do? | |
Re: [QUOTE]There are many internet browsers the most popular being; Firefox, Internet Explorer, Google Chrome, Opera and Safari. However there is no point trying to convince someone on which browser is better, when the choice is simple, [/QUOTE] i was expecting to read something like...its matter of choice and what everyone … | |
Re: i dont care if bin laden is dead or any one else.As i see it,USA and bin land is the same thing... Both kill both attack both destroy...each one for his own reasons... Bin laden was doing it for religion or i dont know,USA for oil and money... and i … | |
Re: i know who he-man is :p but that question doesn't have much of a meaning. i don't believe that there is a model for average gamer,or if it was changes with the years(i think)There are so many environmental facts that can change the model,depends the country,family,school and many more. i … | |
| |
Re: [url]http://www.livescience.com/13359-alien-earths-planets-sun-stars.html[/url] 2 billions only in the milky way galaxy pfff no big deal :p | |
Re: i am not american,the only reason that i checked that thread is to see if anyone will say the bush was good :p cause as everyone clearly knows 9/11 was inside job with facts and iraq was set up for oils etc,actualy the last years at least i dont think … | |
Re: i drink coffee always and since dont remmeber since i am Greek :P | |
Re: my opinion is in this documentary... zeitgeist watch first part about religion 2nd and 3rd is about nine eleven and banks. [url]http://vimeo.com/13726978[/url] actualy the documentary prooves that all religions have a base the sun... why 25 of december?why 1 star?why 3 mages follow it and many more... for example who … | |
Re: confused you want to have a variable integer with number 4234 and take each digit separately? if yes why you dont use modulus and division? | |
Re: it became too classic :P which one you cant finish and want help?cause i assume you started them and you had trouble in the proccess,am i right? | |
Re: you know that in c++ you cant use " & " alone for the "and" purpose right? try " && " thats the "and" or try " || " | |
Re: if think you need to add more limits. you check for a value but you also need to check if its inside the borders. like [CODE] if (array[i][j] == value && array[i][j] <= limit//for example[/CODE] you have to create the limit for all the 4 sides | |
Re: i am not sure but i think you willhave 3 decimals points until you put again setprecicion. if you put later seprecision(5) will be from that line and down with 5, i repeat i am not sure,just that sounds logical to me :P and about the setprecision(50) try it :D … | |
Re: none and i dont care,2-3 maybe at best :P | |
hey again i do that problem from my book, worked but i am pretty sure is not the exhaustive technique that book is asking cause i didnt have success and was too fast. i tried a counter and do 64x64 loops or 4096 loops. so my question cause i couldnt … | |
Re: more or less i started the same by myself,and i chose c++ | |
Re: there are many IDE visual studio express,netbeans,eclipse much more,google and choose the one that suit ebtter to you. visual studio is the most standard choice even with the bad text editor that it has :P |