No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello. I've been trying to learn PHP for the past few days so I hope this isn't a silly question. [code=php]<?php $var1 = 'lol'; $var2 = '$var1'; $var3 = eval("\$var2;"); print $var3; ?>[/code] Basically I'm trying to eval the variable name from a string and then return the value of … |
|
Hi. I'm working on a program that rolls 2 dice a number of times and displays the number of rolls per combination. It also displays this in a bar graph that shows the percentage of times that each combination got rolled. I've gotten to the point where it rolls the … |
|
Hello. Is there a way to get my program to read the next line from a file based on a condition? Let's say my file has lines with 1s and 0s, I need it so that it continues reading the line if it reads 0 until it reaches a 1 … |
|
Hello, I'm trying to make a code that acts as a simple menu for a number of programs. What I was wondering was how do I include the .ccp files and run them in the menu program. Here's what I have so far: [code] #include <stdio.h> #include <stdlib.h> #include "1.cpp" … |
|
Hi everyone. I'm making a simple text rpg and battle system with C and I was just wondering if it was possible to add sounds to it. I've heard that it's possible with C++ but I'm not sure if it's possible with C as well. Any help is greatly appreciated … |