Posts
 
Reputation
Joined
Last Seen
Ranked #518
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
81% Quality Score
Upvotes Received
12
Posts with Upvotes
10
Upvoting Members
10
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
2
9 Commented Posts
~53.5K People Reached
PC Specs
Intel Core i5-750@2.7GHzATI Radeon HD58502 GB RAM (due to breakdown)2x640GB RAID0 + 1TBW7/Debian dual…
Favorite Tags
Member Avatar for vegaseat

After you got the basics of Python under your belt, the best way to get a good knowledge of the language and improve your coding skills is to start on a project you are interested in. Maybe an image viewer, a slide show, computer generated random or fractal art, a …

Member Avatar for vegaseat
20
18K
Member Avatar for vegaseat

Factorials get large very rapidly. The factorial of 13 is !13 = 1*2*3*4*5*6*7*8*9*10*11*12*13 = 6227020800. This number already exceeds the unsigned long integer, and gets into the real money as the politicians say! This program uses an array of characters to store the factorial as a numeric string. Go ahead, …

Member Avatar for vegaseat
0
987
Member Avatar for Nikita Sachdev
Member Avatar for jaskij
0
188
Member Avatar for OrangeTree

Hi :). I use this code to create a file: #include <cstdlib> #include <fstream> using namespace std; int main () { ofstream file("main/articles/giraffe/article.txt", ios::out); file.close (); return 0; } How can I simplify **create path of folders** (on **unix system**) "main/articles/giraffe/" - if folder "main" doesn't exist? With using standard …

Member Avatar for OrangeTree
0
237
Member Avatar for jaskij

Hope I don't start a holy war ;) This question rose to my mind after starting a project with a couple of friends (my very first team project to be honest). We all agreed on CamelCase, but one friend suggested somethin unnatural to me, that is, starting names of all …

Member Avatar for two[ ][ ]
0
169
Member Avatar for DubyStev

Hello great people, I have a challenge passing array into functions.. I will be very grateful for quick responses.. THANKS

Member Avatar for mike_2000_17
0
236
Member Avatar for MasterHacker110

I am currently using code::blocks but i am experinsing trouble trying to link the ws2_32.lib and other libraries. I tried visual studio express but it doesnt work with me. What are some good FREE c++ compilers that have very easy library linking and are rather user-friendly and that i can …

Member Avatar for MasterHacker110
0
184
Member Avatar for Hellblazer.

Hello everyone, I want to start learning C++, because that's what we do at school and I really need to know it. But there's a problem, I don't know where to start from, what to do and such. At school I can't understand anything from the teacher, so that won't …

Member Avatar for sternone
0
193
Member Avatar for baby_c

Hi all, FIrst I have to say my experiences with C++ are very low. But since we're given an assignment to develop a simple game in C++ now I have to try it out. But I have the basic idea on OOP and programming. So friends where should I start. …

Member Avatar for sternone
0
264
Member Avatar for Valiantangel

double a [3]={1.1,2.2,3.3}; cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl; a[1]=a[2]; cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl; ans to the above is 1.1 2.2 3.3 1.1 3.3 3.3 I am new to array. Please expalin why a[1]=a[2] gave me 3.3 3.3. thank you

Member Avatar for jaskij
0
92
Member Avatar for jakezcop

int Finish()//outputs stored values to file { ofstream walletfile; walletfile.open("C:/accounts/wallet.acnt", ios::trunc); walletfile << wallet; walletfile.close(); ofstream accountfile; accountfile.open("C:/accounts/account.acnt", ios::trunc); accountfile << account; accountfile.close(); ofstream savingsfile; savingsfile.open("C:/accounts/savings.acnt", ios::trunc); savingsfile << savings; savingsfile.close(); return 0; } I am a brand new programmer, just learning from the web, i wrote this function as …

Member Avatar for jakezcop
0
1K
Member Avatar for Prisms

Hey guys I'm doing a fun little program that will use the character roster from league of legends. Basically I am going to have all the champion data like health, attack power, and type (early, mid or late game) stored and then compare the characters and depending on what the …

Member Avatar for Prisms
0
191
Member Avatar for phorce

Hello, I have 2 massive matrix's and I need to compare one matrix with another.. Now, I have come up with a solution that takes a 5x5 block of the matrix1 and compares it with a 5x5 block of matrix2, this happens until the end of both matrix's.. I'm confused …

Member Avatar for phorce
0
110
Member Avatar for triumphost

How can I check if a template's parameter is empty? Or of a "certain type"? I'd prefer to check if it's empty or not rather than the type because if the wrong type is entered, it'd throw an error anyway.. But I definitely need to know if the parameter passed …

Member Avatar for mrnutty
0
3K
Member Avatar for jaskij

I have to write an interpreter for tristate logic as a Uni assignment. I got most of the things down, like expression tree and such, there is just one thing that's bugging me, that is input, or a particular part of it. The thing is, in the expression there can …

Member Avatar for jaskij
0
107
Member Avatar for rfrapp

For my final project in school, I want to create a platforming game, and I want to create UML for the game before I actually do any coding. However, I'm not sure where to start, as I haven't done much with UML. Any suggestions to help get me started?

Member Avatar for jaskij
0
171
Member Avatar for Vladnaka

Is there any way to use standard C++ to wait for user input? And by input I don't mean just the enter key, I mean ANY key will continue executing code. I know about the conio.h and Windows.h libraries but those aren't standard C++ and I really want to get …

Member Avatar for jaskij
0
243
Member Avatar for Mona..

Hi everybody.. I have this error messages: linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/calendarType.exe : fatal error LNK1120: unresolved externals Error executing link.exe. I do not know what to do please help!!! thnx..

Member Avatar for jaskij
0
92
Member Avatar for pendo826

I have errors for the template can any1 see anything wrong??? //Array.h [CODE]//Header file for Array.cpp. class Array { private: //Template for use with the Array's data type. //Member Variables. int size; int grow_size; int num_elements; public: //Functions. template<class Datatype> int m_size; Datatype* m_array; //Consturctor. Array( int p_size) { m_array= …

Member Avatar for jaskij
0
237
Member Avatar for jackbauer24

What are the programming languages which you know? Even web devt languages are accepted in this thread.

Member Avatar for diafol
0
236
Member Avatar for minghags

Hello can anyone help me with sorting this struct by name and surname? Ive done like this and it doesn't sort it. Thanks Code: [CODE]#include <iostream> #include <string> #include <vector> using namespace std; struct student { int st_studenta; string vpisna; string ime; string priimek; }; student vpis(int st_studenta) { student …

Member Avatar for jaskij
0
1K
Member Avatar for stereomatching

Could I find some translator which could translate partial C++ codes to equivalent C codes? like [code] int max(int A, int B); double max(double B, double B); [/code] would be translate to something like [code] int maxInt(int A, int B); double maxDouble(double B, double B); [/code] [code] template<typename T = …

Member Avatar for jaskij
0
243
Member Avatar for bryeguy2012

The following errors popped up upon compiling is there a way to fix this in dev c++ ??? Please resond here or to <snip> Thank you. \Dev-Cpp\lib\gcc\mingw32\3.4.2\include\syslimits.h [Warning] #include_next is a GCC extension <- I have mingw installed from the included updater in dev c++ C:\Dev-Cpp\include\sys\types.h ISO C++ does not …

Member Avatar for jaskij
0
303
Member Avatar for ADHDinIT

Hello all, Glad to be here. I am a lowly tier II help desk tech and joined for advice :) I've worked in IT for a few years in tech support, sysadmin and the like. I've moved from job to job (contracts) and I'm becoming disillusioned with the instability. The …

Member Avatar for daniel.walker01
0
147
Member Avatar for The_Purple_Mask

I am using a priority_queue-s for implementing A* and Dijkstra's algorithm. Is there a point writing my own heap for time optimization? How faster would it be? I read in wikipedia that Fibonacci heap will be the best. Do you agree?

Member Avatar for mike_2000_17
0
255
Member Avatar for jaskij

Hi there everyone :) Recently, I started to feel a strong need to learn a scripting language. The question is which. Right now I'm pondering between Ruby and Python. The conditions are that it should be high-level, object or object oriented and not a functional language. What say you, geeks? …

Member Avatar for DavidB
0
107
Member Avatar for sergent
Member Avatar for Karlwakim

Hi everybody, I need you to answer these questions please. 1- How did you learn c++ : a-books b-videos c-in school or university d- other : 2- How did you feel when learning : a- Bored b- Interested c- other : 3- Was it the first language you learn ? …

Member Avatar for therockon7throw
0
231
Member Avatar for rfrapp

Let me start off by saying that this is homework, and I have most of it completed. However, I am stuck on how to convert decimal to hexadecimal. The assignment is to add two hexadecimal numbers and output the answer. If the length of the answer is greater than 10 …

Member Avatar for rfrapp
0
3K
Member Avatar for zios007

I have to write a program that prompts the user to select (but not disclose) a number between 0 and 31 and then asks exactly five questions to determine the number the user has selected. Each of the five questions is posed by presenting a group of sixteen numbers, asking …

Member Avatar for zios007
0
239