Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
60% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~2K People Reached
Favorite Tags
c++ x 11
c x 1
Member Avatar for Srynx

Hi! Just a quick question math.modf(x) is a python function that returns the fractional and integer parts of x. Both results carry the sign of x and are floats. Therefore, if I write, for instance, 5.4 to the python 2.6.6 command line I think I should get (0.4, 5.0) but …

Member Avatar for Srynx
0
103
Member Avatar for Srynx

Hi, I'm using Ubuntu 10.10 and I would like to know a way to know what applications are asking you to enter password for default keyring to unlock. In the past that dialog used to appear at startup once but now appears twice and I would like to know which …

0
72
Member Avatar for Srynx

Hi, I'm using Document Viewer 2.32 (Evince) under Ubuntu 10.10 and my shortcut for the "Rotate Right" option used to be Ctrl + Right. It worked ok since a few days ago, now appears this shortcut is backspace. I've tried to reinstall Evince packages but this doesn't work. Since this …

Member Avatar for Srynx
0
211
Member Avatar for drjay1627
Member Avatar for Srynx

When I include i++; inside this loop I get a runtime error and I have no idea why I get it: Do you have any idea? [CODE] while (i <= 3){ if (tauler[PacMan.y][PacMan.x]==0) xoc = 0; else if (tauler[PacMan.y][PacMan.x]==1) xoc = 1; else if (tauler[PacMan.y][PacMan.x]==2) xoc = 2; else xoc …

Member Avatar for Srynx
0
82
Member Avatar for Srynx

When I compiler my program I get this warning and when running it a runtime error. The warning is: 128 ... [Warning] passing arg 1 of `MostraPantalla' makes pointer from integer without a cast

Member Avatar for bonnie1702
0
76
Member Avatar for Srynx

Hi I'm trying to generate a random number betwen any numbers (eg from 1 to 100) and I've tried this code: [CODE=c]#include<stdio.h> #include<math.h> #include<time.h> #include <stdlib.h> int NumAleatori(int max) { int num; num=((int)ceil(((double)rand()/RAND_MAX)*(max+1)))%(max+1); return num; } void main () { int N,a; srand( (unsigned)time( NULL ) ); printf(“Enter an integer:\”); …

Member Avatar for nucleon
0
114
Member Avatar for Srynx

Hi I'm making a menu in C++ for a sudoku puzzle solver program I've already wrote using switch setence. I've wrote that code: [CODE] #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<iostream.h> int opcio1(); int opcio2(); int opcio3(); void main(){ char sel; cout <<"Sudoku\n\n\n"<<endl; cout <<"1. How to\n\n"<<endl; cout <<"2. Sudoku generator\n\n"<<endl; cout <<"3. …

Member Avatar for CPLUSCPLUS
0
665
Member Avatar for Srynx

Hi, I'm working in a 4x4 sudoku solver and i'm a beginner in c++. I use Microsoft Visual Studio 6.0 and windows xp professional Variables are: a1 b1 c1 d1 a2 b2 c2 d2 a3 b3 c3 d3 a4 b4 c4 d4 First i wrote that program [CODE] //sudoku.cpp: #include<stdlib.h> …

Member Avatar for Srynx
0
128