Beginners - January 2016 (Page 12)

implementation of int64_t
 
Is types such as int64_t , int_fast64_t and int_least64_t even created using C++ or C? If it is is that done something like this? #include <cstdlib> ...
[7 replies] Last: GCC already supports 128-bit integers (see __int128). It requires hard... (by NoXzema)
Point Location
 
Hello, I'd appreciate some help: here I managed to write some code, whose purpose is to give result TRUE(1) if point Z(a,b) is NOT in the circle with center ...
[2 replies] Last: Many, many thanks!! I understand now, I'm trying to get used to the ... (by Roxanne Sofia)
Snake Game
 
Hello, I'm trying to make a scoreboard for my snake game. I want the program to let 3 people play in turn and keep track of their high scores. After all 3 playe...
[2 replies] Last: So it would seem? I had a friend in my class working with me in writin... (by RogueHunter1913)
ncurses beep don't work
 
I'm using Ubuntu Linux and trying to yield a beep sound in several ways. But nothing is working: #include <iostream> #include <ncurses.h> int main() ...
[9 replies] Last: @helios EDIT: Try surrounding the #include with extern "C" { } Are y... (by elaleph)
Close but no cigar! lil help!!
 
SO I'm close but not quite there. I'm having trouble with my if statements I believe. A number outside of the range doesn't trigger the cout << "Please enter ...
[10 replies] Last: Alas! Thank you for your help Learning is Fun (by Billyin4C)
Linear Searech
 
Hello, I have a problem with this search.I know what the algoritm must do, but when I enter a number above 10 it says the number is in the array but that is not...
[4 replies] Last: Thanks now it is working ! And sorry I forgot to format the code. (by redbull1996)
How do I solve this error???
 
I have been trying to compile this for a while but it keeps saying:- C:\User\HP\Documents\C-Free\Temp\Untitles3.cpp:54: error: no match for 'operator ' in '...
[5 replies] Last: Ty... :) It is working now Actually I dint notice tht i had declared i... (by anuasya)
by pdp
Arrays and Functions
 
Hi all, I am writing my first C++ program to test out pointers and classes. I don't understand what I am doing wrong here, but it doesn't return the corre...
[4 replies] Last: Thank you - so would you say this is not the correct way to go about i... (by pdp)
Natural number factors that are some other natural numbers squared.
 
So, this problem asks me to give such natural number "n" factors that are some other natural numbers squared. I have gotten this far, but I can`t figure out how...
[3 replies] Last: Yeah something like that. (by Stalker)
operator++(int) and --(int) for my class INT
 
Hi, wanted to ask if this is a correct way to implement post increment and decrement. This class is supposed to work like build in int . class INT { int i;...
[2 replies] Last: Tnx you man! :) (by etrusks)
Need help with 2D array and pointer
 
Hi, I have some problem with pointing to a 2D array by pointer.Actually I have no idea how to do it.
[1 reply] : See if this helps - http://stackoverflow.com/questions/8617466/a-point... (by TarikNeaj)
Program that turns decimal base to any base from 2 to 16
 
So I`m trying to write a code for program that turns any Natural dec number to a number with any Natural base. Basically the task is to make such program for Na...
[2 replies] Last: I have never used this function, but I could look into it. Thank you! (by zemnieks)
Number Guessing Game not Working for Negative Numbers
 
Hey there -- trying to write a program that allows the player to pick a number, and then tells them if it's too low or too high until they get the right answer....
[3 replies] Last: Also I should mention that I never had the problem you described, It w... (by TarikNeaj)
by Maxy
Range-based for loop
 
Please who can help me with more explanation on Range-based for loop.
[1 reply] : This video explains it well - https://www.youtube.com/watch?v=kU-M2L0J... (by TarikNeaj)
Need help with commas in calc program
 
While perfecting and adding things to my first calculator program i ever wrote, i have all the basic things and now, I'm left to wonder how to make numbers like...
[4 replies] Last: How about this? https://ideone.com/3N8PvS #include <iostream> #incl... (by integralfx)
by g3n0m3
crossword algoritm
 
this is my naive implementation for a crossword algoritm. this algorithm puts all words from a given vector into a given matrix ... it tries a backtracking apro...
[1 reply] : Does it work ? (by SamuelAdams)
Need Help WIth my Sudoku Code
 
Write your question here. #include<iostream> using namespace std; int sudoku = { {0} }; int checker ; int check = 0; void solvesudoku(int, int); bool che...
[4 replies] Last: Whats wrong is that it isnt solving the sudoku fully . Have a look ... (by TheIdeasMan)
Problem with rand()
 
Hello folks I am having a really odd problem with the random number generator. For example when I set the max range to 6, I am getting some results that are 7. ...
[4 replies] Last: thank you will most definitely take a look (by gutty333)
Run time error?
 
A bit longwinded: I am trying to create a program which is a sort of guessing game from Stroustrups book (chapter 4, question 4). The user thinks of a number, a...
[4 replies] Last: Thanks - ended up realising confused myself with my double variable an... (by Thomas93)
C++ tasks
 
Hello! I have two C++ tasks, i can`t manage to do, because my C++ game is yet not strong enough. If you can, please help! 1. Row a(1..n) is called saw-type...
[1 reply] : These are not beginner level assignments. Surely you can at least sta... (by cnoeval)
January 2016 Pages: 1... 1011121314... 29
  Archived months: [dec2015] [feb2016]

This is an archived page. To post a new message, go to the current page.