Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
59% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
2
1 Commented Post
Member Avatar for MattyRobot

i have spent some time trying to install glut in code blocks and so far I haven't succeeded. i have downloaded the glut-3.7.6-bin [URL="http://www.xmission.com/~nate/glut.html"]from here[/URL] . I have looked at tutorials on where to put the files in the download ([URL="http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/#win"]like here[/URL]) but it doesn't work. :icon_question::icon_question::icon_question:

Member Avatar for Mallot
0
288
Member Avatar for bubbafunk1

I have my wrapper background colour set with an opacity of 80% using this code [CODE]#wrapper { background: #ffffff; opacity: 0.8; filter:alpha(opacity=80); -moz-opacity:0.8; filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80); -khtml-opacity: 0.8; -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=80)”; }[/CODE] It works fine but everything inside of the wrapper is now set to 80% opacity. I have two divs .left and …

Member Avatar for Raven Boris
0
470
Member Avatar for asadaziz

I am working on visual studio 2008 what i want to do is read till the end of the file the code i am using is [CODE] StreamReader ^sr= gcnew StreamReader("example.txt"); String ^str; while(sr->Read()!= 0) { str=sr->ReadLine(); textBox2->Text=sr->ReadLine(); MessageBox::Show(str); } sr->Close(); [/CODE] what could be used inside while condition that …

Member Avatar for MattyRobot
0
1K
Member Avatar for Violet_82

Hi there, I have a really quick question about a shuffling and dealing cards program I found in a book. here's main: [CODE]// Fig. 8.27: fig08_27.cpp // Card shuffling and dealing program. #include "DeckOfCards.h" // DeckOfCards class definition int main() { DeckOfCards deckOfCards; // create DeckOfCards object deckOfCards.shuffle(); // shuffle …

Member Avatar for Violet_82
0
4K
Member Avatar for bensewards

Hey everyone, I have to manipulate two functions RECURSIVELY, strlen and strcpy. I was able to code the strlen: [CODE]int length(char* str){ if(str == NULL){ return 0; }else{ return length(str, 0); } } int length(char* str, int l){ int len=0; if(str[l]){ len = length(str,l+1); } else { return l; } …

Member Avatar for bensewards
0
742
Member Avatar for eman 22

I have an error in my project and I can't fix the problem [CODE] #pragma once class Node { int code; int count; Node* parent; Node* rightChild; Node* leftChild; public: Node(int c1,int c2); void setCode(int c); void setCounter(int c); void setRightChild(Node n); void setleftChild(Node n); void setParent(Node n); int getCode(); …

Member Avatar for MattyRobot
0
111
Member Avatar for Hayzam_#include

Hi i wanted to make a software that can "Off" and "On" a computer fan connected with a usb can i make it in c++?? i have 1 year experience doing C++ Thanks,

Member Avatar for Hayzam_#include
0
137
Member Avatar for jasleen12345

[CODE] #include<iostream> #include<cstring> using namespace std; class city { protected: char *name; int len; public: void getname(void) { char *s; s= new char[30]; cout<<"Enter city name: "; cin>>s; len= strlen(s); name= new char[len+1]; strcpy(name,s); } void printname() { cout<<name<<"\n"; } }; int main() { city *cptr[10]; int n=1; int option; …

Member Avatar for MattyRobot
0
104
Member Avatar for hiddepolen

Hi Daniweb! I couldnt find my problem anywhere else on this forum, so I decided to make my own thread... My problem: I'm trying to make a function to decide how many decimals a 'double' has. My code (slightly edited, here's the base of it): [CODE] // int m = …

Member Avatar for MattyRobot
0
182
Member Avatar for MattyRobot

I am getting the error: There is no disk in the drive. Please insert a disk into drive \Device\Harddisk1\DR1. I have already read the answers of previous posts, but none of them fit to my situation. I am running code blocks from a usb stick. When I start debugging I …

Member Avatar for finito
0
119
Member Avatar for Expora

So I have stumbled across another problem. This time I'm using freeglut I have put the lib files, dll, and include files where they should go in visual studio. Made a project and linked the lib files in it but i still cant initialize glut using glutInit. Here's what I …

Member Avatar for MattyRobot
0
94
Member Avatar for MattyRobot

I am trying to move a project from CodeBlocks to visual c++. (it compiles fine using minGW) I am using the 2010 express version. when I compile the projectusing VC++ I get the errors below. I have done some research and it is comming from including windows.h. to test this …

0
81
Member Avatar for MattyRobot

is it possible to stretch a 3D scene in openGL? I know it is possible in glOrtho() but how would I make a 3D scene stretch. for example if I rendered a cube, in the middle of a window, and then made the window longer, instead of the cube stretching, …

Member Avatar for Sodabread
0
272
Member Avatar for MattyRobot

what would be a good way to load images to use for texture mapping in opengl? I have looked at tutorials such as nehe lesson 6 and some other resources but they all use something old and depreciated that I cant compile.

Member Avatar for Sodabread
0
317
Member Avatar for zobadof

I have started to learn C++ and would like to know where to go from now. I have been getting helped by MattyRobot. I have done Hello World, Input, Sqaure of Numbers, Making decisions, Cmd games, Operators, Repeated question and started to make a window. I would like some help …

Member Avatar for SgtMe
0
174
Member Avatar for BobRoss

I'm using [B]remove(inputPath.c_str());[/B] to remove a file after a while loop is completed, but the file remains. I'm using Vista and logged in as an administrator and the file is located in my home folder. Any help would be appreciated. Thanks in advance. [code=c] #include <cstdlib> #include <iostream> #include <fstream> …

Member Avatar for BobRoss
0
132
Member Avatar for MattyRobot

would there be anything wrong with making an includes.h which has all of the .h files my project needs to link to. or is it better to link to them when needed?

Member Avatar for MattyRobot
0
134
Member Avatar for MattyRobot

I have been trying to get world coordinates of the cursor position for a program by: [LIST=1] [*]getting the top and left position of the client of the window [*]getting the global position of the cursor (GetCursorPos()) [*]cursor x - client left and cursor y - client top [*]zoom x …

Member Avatar for MattyRobot
0
88
Member Avatar for MattyRobot

in openGL how can I make the left of the screen = 0 and the right to = 10 or somthing, and the top = 0 and the bottom = -10. because i dont like working with numbers only ranging from -1.0 to 1.0. i read [URL="http://www.opengl.org/resources/faq/technical/transformations.htm"]here[/URL] that the coordinate …

Member Avatar for mrnutty
0
82
Member Avatar for debasishgang7

hiii all.... i want to learn C++ GUI based programming.... i want to know how to make Text field,buttons,label,etc... in c++ is there any web resources????? pls help me out.....

Member Avatar for rtc1
0
103
Member Avatar for MattyRobot

I have been trying for ages to get glut working (in code blocks) and now it works... sort of. I can compile and run applications but it comes up with several warning: ignoring #pragma comment errors in glut.h. I got the glut.h file from [URL="http://www.transmissionzero.co.uk/computing/using-glut-with-mingw/"]here[/URL]. because all other downloads of …

Member Avatar for MattyRobot
0
132
Member Avatar for MattyRobot
Member Avatar for mrnutty
0
129
Member Avatar for leadenwinter

I'm a total newbie and.. with the code above.. What I want to do is have 10 dValue numbers, but if, of those 10 I only enter 5 values, the exe shouldnt ask me to enter all 10 and just add the 5 values I entered when I press the …

Member Avatar for MattyRobot
0
212
Member Avatar for anuraggupta16

when i compile, it gives the following error : Undefined first referenced symbol in file main /auto/usc/gnu/gcc/4.2.1/bin/../lib/gcc/sparc-sun-solaris2.10/4.2.1/crt1.o ld: fatal: Symbol referencing errors. No output written to a collect2: ld returned 1 exit status Can anyone please tell as to what's going wrong here.[code]I have some code where i want to …

Member Avatar for MattyRobot
0
118
Member Avatar for MattyRobot

I have recently learnt the basics of c++ but I want to advance to making proper GUI's (and games) but I don't know what to use. I think the two most popular libraries are OpenGL and Direct3d but I'm not sure which one to use. could you guide me in …

Member Avatar for MattyRobot
0
116
Member Avatar for MattyRobot

how can I use a function inside an object? (the code is too long to put here but here's a replica) [code=c++] class example { public: example(); ~example(); void doSomthing() { afunction(); } } void afunction() { //do more things } [/code] in this example i wouldnt [B][U]NEED[/U][/B] to use …

Member Avatar for rughead
0
141