- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 106
- Posts with Upvotes
- 98
- Upvoting Members
- 78
- Downvotes Received
- 8
- Posts with Downvotes
- 7
- Downvoting Members
- 7
Re:
hello, i'm newbie here and also in programming world. so I would to request help from pros here. my question is, how to print out number entered in random in ascending order WITHOUT USING ARRAY AND FUNCTION? let say the user key in 4, 56, 31, 90, 11 and the … |
|
Re:
Hi I am a beginner in game programming and would like to make a rocketmania clone using opengl, the display and interaction part is done. I also have a classes named gameboard and tiles with their properties. but I am having problems on game logic, where the fuel flows into … |
|
Re:
Well we all have seen the common questions on creating squares and hollow squares out of asterisks in C++, but how about creating a program that prints out a circle in asterisks? Obviously this would look like an oval due to line adjustment, but it would be quite interesting to … |
|
Re:
[QUOTE]Assume you have a int variable n that has already been declared and initialized. Its value is the number of integers that need to be read in from standard input and printed out in sorted (ascending) order, each on a line by itself. Furthermore, there are no duplicates in the … |
|
Re:
Hi here is my code,can someone help to edit the directory.getfile(),so i could output all files in c:\ Windows ? using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LogicalDrives { class Program { public static void GetLogicalDrives() { string[] drives = System.IO.Directory.GetLogicalDrives(); foreach (string str … |
|
Re:
Hi, I need to use getopt for a program called like myprogram.c file1 file2 file3 -t. Now I've read some examples about how to use switch cases for options with hypens (-t). But I don't get how to write this for my file1, file2, and file3 (they are arguments that … |
|
Re:
So I'm making a map editor with C# and XNA. I have currently got it setup so there is a windows for with a picture box, which the game is being displayed through. The problem is this, I want (0,0) to be the upper left corner of the picture box, … |
|
Re:
I am trying to create a recursive function: double fifthRoot(double x, double maxError) In this function, I have to return y such that y^5 will be within maxError of x. Assume x > 0. Also assume maxError is big enough to prevent problems due to rounding. In order to make … |
|
Re:
Hello DaniWeb community! I am trying to learn c# by going through a few tutorials on how to make an RPG game game using windows form, but I cant seem to get the hang of making the create a character screen. I tried to get the value of a track … |
|
Re:
Hello , I want to scan each row and find in each column the max element and the corresponding index. Then , swap this column with the column which belongs to the main diagonal ( if a condition is valid ). Finally , do the same for the rest rows. … |
|
|
|
Re:
Okay, so this is my current code: #include <stdlib.h> #include <stdio.h> #include <stdint.h> struct Display { int width; int height; char **array; }; struct Display *display_create(int width, int height) { struct Display *display = (struct Display *) malloc(sizeof(struct Display)); display->width = width; display->height = height; display->array = (char **) malloc(sizeof(char) … |
|
This is a timer class that I wrote a while ago (cleaned up a bit for the snippet) for adding delays in some of the games I have written over the years. Note: I normally have the class functions in a .cpp file but since it looks like I can … |
|
Re:
Create a structure for a classroom. Make sure it includes the following: Room Number, Lecture Name, List of Students, Number of chairs, Window (Yes/No), Projector (Yes/No), Available(Yes/No). Instructions: Create functions that allow you to add data to the attributes of the classroom. Create functions that allow you to print out … |
|
Re:
Hi I need help with finding the area underneath a curve. Here is what I have so far; #include "stdafx.h" #include <iostream> #include <string> #include <cmath> using namespace std; struct term { float coeF; float exP; char name; }; struct function { int size; term terms[10]; }; struct Integral { … |
|
Re:
I want to know how this function is working. I used qsort() function to sort the integers in an array and i found this compare() function on internet. It worked perfectly well but i cannot understand how is it working and what's its logic. Any help? int compare (const void … |
|
Re:
Okey, so since I was a little kid I allways would like to make my own game ! and I allways liked to fix gameservers, Teams in games like Clans and Guilds and so on. Now to the point, me and my friend are going to educate us to make … |
|
Re:
How do I write a recursive function in C++ to display a triangle of * like this using a parameter size (e.g. 4 in the following example): * ** *** **** I am able to write a recursive function to display an inverted triangle like this: **** *** ** * … |
|
Re:
Hey guys, I'm building a program in C that can get powers of 2. The user inputs the value of n, and the program calculates 2^n. Here's the code #include <stdio.h> double power(int n) { int q; double c=2; for (q=n; q>1; q--) {c=2*c;} return c; } int main() { … |
|
Re:
Hi.. can anyone tell me what is the meaning of this error?? [Error] cannot convert 'std::string {aka std::basic_string<char>}' to 'char*' for argument '1' to 'char* strcpy(char*, const char*)' When I'm taking TeamName as char TeamName[30]; , the compiler shows linker error. what could be the problem? I use DEV C++ … |
|
Re:
Hallo Im new in the game programming world with C++, really new! I want to make a 3D game.I installed today VS 2010 because I heard that there are unfixed errors(since 2005). I have a couple of books called " beginning C++ game programming" , "mastering Autodesk 3ds mask 2013"( … |
|
Re:
I was wondering why the compiler keeps telling me #include <iostream> #include <fstream> #include <iomanip> #include <cstdlib> #include <string> using namespace std; const int PatternSize = 8; typedef int OperandArray[PatternSize]; // the major data structure, the BitPattern class class BitPattern { public: // default constructor, sets all bits to zero … |
|
Re:
Hello, I learned a lot of basic C++ programming through Code Blocks and I think it is a fantastic IDE. I decided to switch to VS2010 Professional for various reasons, and because I am able to get it free from Dreamspark. I had created another post a while back similar … |
|
Re:
I can't find the bug in my code. The error that pops up says "Expression: invalid null pointer". Visual studio isn't giving me any line to go to or really any help except once I run the program the error above pops up. The weird thing is everything compiles correctly … |
|
Re:
Hi Everybody, I'm sorry if the asnwer is already posted somewhere, I was not able to find it. When I build my solution, I get the following error: 'UserManager.AuthenticateUser(string, string)': not all code paths return a value. Dont know the reason why is this happening. But I have included my … |
|
Re:
4B 50 7B F1 F4 F5 5E 50 7B F1 F4 F5 5E 4B 4B 4B |
|
Re:
4B 50 7B F1 F4 F5 5E 50 7B F1 F4 F5 5E 4B 4B 4B 4B 50 7B F1 F4 F5 5E 4B 50 7B F1 F4 F5 5E 50 7B F1 F4 F5 5E 4B 4B 50 7B F1 F4 F5 5E 4B 50 7B F1 F4 F5 … |
|
Re:
any one help me how can i do this plz plz guyz help me don't say do it by your self i could'nt understand thats why i am asking from you if i know then why i ask i don't know thats why i am asking friends plz help me...!! … |
|
Re:
Hi! The keypresses in my new project does not seem to be registered. I've never had this issue before and I don't think it is SDL:s fault this time. Here is the code in main: #include <cstdlib> #include <iostream> #include <SDL.h> #include "playertank.h" int main ( int argc, char** argv … |
|
|
Re:
actually , I am solving a problem: A list is there in which infinite numbers(approx 1 lakh) are there, and i am reading one by one. At any point of time, I am asked to return the kth(it is given initally) minimum element from the elements read so far. my … |