Posts
 
Reputation
Joined
Last Seen
Ranked #270
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
93% Quality Score
Upvotes Received
106
Posts with Upvotes
98
Upvoting Members
78
Downvotes Received
8
Posts with Downvotes
7
Downvoting Members
7
34 Commented Posts
~254.66K People Reached
Favorite Tags
c++ x 627
c x 35
sdl x 12
input x 11
Member Avatar for din_hilmi

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 …

Member Avatar for Aditya_47
0
44K
Member Avatar for daniel955

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 …

Member Avatar for Nisa_1
0
491
Member Avatar for restrictment

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 …

Member Avatar for CharlieCap
2
2K
Member Avatar for nightcrew

[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 …

Member Avatar for omgerg
0
3K
Member Avatar for PulsarScript

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 …

Member Avatar for sfuo
0
198
Member Avatar for choconom

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 …

Member Avatar for rubberman
0
171
Member Avatar for CJMW

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, …

Member Avatar for sfuo
0
2K
Member Avatar for andrew mendonca

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 …

Member Avatar for sfuo
0
300
Member Avatar for gangsta gama

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 …

Member Avatar for gangsta gama
0
367
Member Avatar for glao

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. …

Member Avatar for glao
0
206
Member Avatar for hira_5
Member Avatar for krieg

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) …

Member Avatar for krieg
0
344
Member Avatar for sfuo

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 …

Member Avatar for dexblack_1
0
12K
Member Avatar for priya.chitroda

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 …

Member Avatar for james.opdyckeii
0
119
Member Avatar for Israel_1

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 { …

Member Avatar for Israel_1
0
1K
Member Avatar for sireiz

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 …

Member Avatar for sepp2k
0
2K
Member Avatar for kemkoi

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 …

Member Avatar for amanahad
0
316
Member Avatar for codeyy

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: **** *** ** * …

Member Avatar for Gonbe
1
3K
Member Avatar for Icekilla

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() { …

Member Avatar for Adak
0
168
Member Avatar for Vish0203

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++ …

Member Avatar for rubberman
0
198
Member Avatar for kar0x

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"( …

Member Avatar for kar0x
0
166
Member Avatar for dreday92

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 …

Member Avatar for sfuo
0
94
Member Avatar for Carpetfizz

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 …

Member Avatar for Suzie999
0
162
Member Avatar for breezeonhold

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 …

Member Avatar for breezeonhold
0
273
Member Avatar for brian71289

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 …

Member Avatar for gusano79
0
251
Member Avatar for streetalex310
Member Avatar for streetalex310

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 …

Member Avatar for ravenous
0
131
Member Avatar for nabeelbhutto

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...!! …

Member Avatar for sfuo
0
727
Member Avatar for Epicurus

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 …

Member Avatar for BeauBeck
0
248
Member Avatar for I_m_rude

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 …

Member Avatar for sfuo
0
142