- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re:
Hello! I am making a text-based game (I am new to C++) called The Final Journey (I made the name up, didn't copy) and I have had some trouble with the code. I am using Dev-C++ (I plan to get VC++), just so you know. Here is what I have … |
|
Re:
I was wondering is there a good IDE for python /wxpython/pygame? I was wanting something that would do all 3 very good, for when I do finally jump to a GUI... I was messing around a little with pygame, and I noticed it dose not like the python IDLE... |
|
Re:
Hi! I am doing a C++-program which I have to use functions. The program is the following: Write a function that calculates the fuelconsumption, it takes two numbers, litres and kilometers, and gives the consumption in litre per 100 km. The functions must write on screen in main. Here is … |
|
Re:
I have to creat a program where the user inputs two large ints, and they are converted into string in order to add them together (assuming they are larger than 20 characters). One thing, is that it tells me to convert the numbers to a string and store it in … |
|
Re:
[code] void triangle(ostream &outs, unsigned int m, unsigned int n) { if ( m <= n) { int NumberOfLines = (2 * (( n - m) + 1)); int Mid = (NumberOfLines / 2); for (int i = 0; i < NumberOfLines; i++) { if (i < Mid) { for … |
|
For some reason netbean hates me, as well as eclipse. So i set cygwin as the compiler and debugger and everything, and tried a simple print statement and all i got was: The system cannot find the path specifiedProcess is started in an external terminal ... RUN FAILED Any help … |
|
Re:
New guy here and I'm stuck on this code I cant get to work right. I want to input any amount of numbers and I want the output to be the largest number along with how many times the largest number was input. I'm just off a bit but I … |
|
So I was looking over someone elses code, and the main is unusual, no type. its just: #include <math.h> main(int argc, char *argv[]) I've come up with 2 theories: 1) It defaults to int? 2) #if/#endif directives somehow negate the need for int? Have no experience with this though, so … |
|
So 2 questions. 1) MPI_Init. I'm trying a python -> c -> cluster project. So I have no problem with the python -> c, but the problem comes with the c-> cluster. I'm making a python wrapper (I believe this is the correct term) around a premade c driver for … |
|
Re:
#include <time.h> // double RAND_MAX = 4294967296.0; //2147483647; // void aleatorio(); void warmup_random(double); void advance_random(); int flip(double); double randomperc(); double aleatorios_0_1(); long rnd(long, long); double Rseed; /* Random numbers seed */ double oldrand[55]; /* Array of 55 random numbers */ int jrand; /* current random number */ /* Initialize random … |
|
Re:
hey all. this is (if i remember correctly) my first post, i have done alot of reading on this forum though and have found the info invaluable. my program is a calculater that calculates the amount of sheets of plasterboard and bags of plaster needed for a wall, firstly: have … |
|
Re:
I'm supposed to write a program that stores data about a soccer player in a structure: Players name, players number, points scored by the player. The program should keep an array of 12 structures. Each element for a differnet player on the team. When the program runs it should ask … |
|
Re:
please provide me codes how to construct circular matrix as below 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7 |
|
I'm working on a little code snippet and my c++ seems a bit rusty. How do i go about getting the length of an array? My eclipse is giving me weird values when it should be segfaulting, so I'm trying to figure out whats wrong. Thanks in advance. edit: forgot … |
|
Re:
Hey all, I'm new to C and trying to pick up good habits before I get too routed in my ways. Essentially, I have a code which runs a mathematical test on an array, and depending on the percent error, it decides to continue iterating or stop. Essentially, I have … |
|
Re:
Hi Sir, please help me with my code I've already finish the sequence. this is my part : [CODE]#include <iostream.h> int main () { unsigned long int a = 0; unsigned long int b = 1; unsigned long int c; int y = 2; int x = 2; cout << … |
|
Re:
Helo frndz, I need a ebook named 'Starting Out With C++ From Control Structurres Through Objects by Tony Gaddis"...If anyone has this book in pdf or chm format, plz PM me to --snipped--. I badly need this book... Thnx Arif |