Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
65% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
6
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
5 Commented Posts
1 Endorsement
Ranked #858
Ranked #1K
~36.9K People Reached
Favorite Tags

52 Posted Topics

Member Avatar for Duki
Member Avatar for MooGeek

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

Member Avatar for stultuske
0
388
Member Avatar for ntrncx

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 …

Member Avatar for Dman01
0
179
Member Avatar for ntrncx

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; …

0
113
Member Avatar for ntrncx

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 …

Member Avatar for ratatat
0
741
Member Avatar for UNDER-18 FG
Member Avatar for ntrncx

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 { …

Member Avatar for ntrncx
0
157
Member Avatar for ntrncx

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 …

Member Avatar for ntrncx
0
222
Member Avatar for ntrncx

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 …

Member Avatar for dospy
0
225
Member Avatar for ntrncx

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] …

Member Avatar for ntrncx
0
154
Member Avatar for ntrncx

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 …

Member Avatar for ntrncx
0
146
Member Avatar for wackytechie
Member Avatar for NIPHZ
0
4K
Member Avatar for Portgas D. Ace

[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 …

Member Avatar for Portgas D. Ace
0
507
Member Avatar for WASDted

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 …

Member Avatar for Agilemind
3
548
Member Avatar for newsguy

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 …

Member Avatar for JackRT
2
592
Member Avatar for khubaib007
Member Avatar for Josue198s
0
64
Member Avatar for jingda

[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

Member Avatar for predator78
0
250
Member Avatar for Ancient Dragon

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 …

Member Avatar for e-papa
1
328
Member Avatar for skald89
Member Avatar for mrnutty

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 …

Member Avatar for crunchie
0
869
Member Avatar for sergent

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?

Member Avatar for mrnutty
0
209
Member Avatar for moey187

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?

Member Avatar for ntrncx
0
561
Member Avatar for Awilson089

you know that in c++ you cant use " & " alone for the "and" purpose right? try " && " thats the "and" or try " || "

Member Avatar for Awilson089
0
103
Member Avatar for GhostMonkey

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

Member Avatar for GhostMonkey
0
96
Member Avatar for sha11e

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 …

Member Avatar for sha11e
0
3K
Member Avatar for The Dude
Member Avatar for ntrncx

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 …

Member Avatar for template<>
0
205
Member Avatar for errorlog2
Member Avatar for LloYdZ
Member Avatar for harinath_2007

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

Member Avatar for mike_2000_17
0
256
Member Avatar for ntrncx

ok lets say that we have the numbers 5,67 and 128 (the numbers are randomly entered) i want in first loop read the last digit means 5,7,8 in the 2nd pass i want the tenths so will be 0,6,2 in the 3rd will be 0,0,1 and so on. what i …

Member Avatar for ntrncx
0
207
Member Avatar for ntrncx

what is wrong with my code? in inputs like "radar" or "tttt" should say its palindrome. [CODE]#include <iostream> using namespace std; bool testpalindrome(string,int,int); int main() { string wordX; bool result; cout<<"Enter string: "; getline(cin,wordX); result=testpalindrome(wordX,wordX.length()-1,0); result==true ? cout<<"\nthe string is palindrome!" : cout<<"\nthe string is NOT palindrome!\n"; } bool testpalindrome(string …

Member Avatar for ntrncx
0
362
Member Avatar for fadi_1234

read the rules,you have to show what you have done first. plus i don't understand what exactly you ask.

Member Avatar for fadi_1234
0
313
Member Avatar for ntrncx

here are some questions that i have to improve my code readability since i study alone and my code starts to be more big and more chaotic i have some questions that maybe will sound silly to more but i have to ask someone. 1- its better to declare global …

Member Avatar for ntrncx
0
129
Member Avatar for WASDted

that made me feel small [url]http://www.youtube.com/watch?v=17jymDn0W6U&feature=related[/url] the known universe(dont know how to make the video appear in forum :P)

Member Avatar for JamieLynnSEO
8
491
Member Avatar for bgx90
Member Avatar for ntrncx

i write a program that goes as follows a part of it is: [CODE]#include <iostream> using namespace std; const int size=8; const int plus[]={1,2,3,4,5,6,7}; const int minus[]={-1,-2,-3,-4,-5,-6,-7}; int vertical(int[][size],int&,int&); int horizontal(int[][size],int&,int&); int diagonal(); int main() { int board[size][size]={}; int accesibilityboard[size][size]={}; int currentrow=3; int currentcolumn=4; int counter=0; } int diagonal() { …

Member Avatar for ntrncx
0
109
Member Avatar for Howdydoody
Member Avatar for Howdydoody
0
112
Member Avatar for hanvyj
Member Avatar for wingmark

and you can always buy books,i study alone c++ with the book c++ how to program by deitel plus there is a section with books in c++ forums

Member Avatar for Labdabeta
0
110
Member Avatar for ntrncx

as always since i am not student i study for hobby from a book, i dont ask for code or tell me the answer only for advices to help me understand better things its the first steps of a moving knight in a chessboard,i had to make it move randomly …

0
84
Member Avatar for Alice1990
Member Avatar for jonsca
0
318
Member Avatar for jream1
Member Avatar for jonspeidel

sorry for that but i don't think he learn that way,he just try to find out the wrong things without understand why they are wrong...wont be more usefull for him to name the things that he has to go and read about?

Member Avatar for 1ML
0
399
Member Avatar for ntrncx

ok i have i want to summarize only the first collum [CODE]int counter=1; int totalvertical=0; int i=7,k=4; int array[i][k]={random values}; for (int x=1;x<7;x++) { for (int y=0;y<4;y++) { cout<<"["<<x<<"]["<<y<<"]="<<array[i][j]<<" "; totalvertical=array[counter][0]; cout<<totalvertical; } counter++; cout<<endl; }[/CODE] line 12 prints me normaly what is at array[1][0] then array[2][0] then array[3][0] etc …

Member Avatar for ntrncx
0
149
Member Avatar for theoryforlife

you can use another loop like while covering all the program and checks "num" so when check if or else will loop to the start until the sentinel fails. example [CODE]while (num!=-1) { program }[/CODE]

Member Avatar for theoryforlife
0
249
Member Avatar for ntrncx

Use a two-dimensional array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each different type of product sold. Each slip contains the following: a) The salesperson number …

Member Avatar for VernonDozier
0
465
Member Avatar for jonspeidel

i think you have missunderstood the use of return.... Return statement The return statement stops execution and returns to the calling function. When a return statement is executed, the function is terminated immediately at that point, regardless of whether it's in the middle of a loop, etc.

Member Avatar for 1ML
0
524
Member Avatar for ronthedon
Re: Loop

you can do [CODE]while(score1>100 || score1<0) // will loop until proper number entered { cout<<"invalid number,enter again\n"; cin>>score1; } [/CODE]

Member Avatar for ntrncx
0
135
Member Avatar for ntrncx

Hey i am beginner and i read a book about c++,and i like to do all the exercises alone until i find alone the solution. but one of the topics that give me a hard time is recursions. i am on an exercise with the following code. [CODE]#include <iostream> using …

Member Avatar for alaa sam
0
206

The End.