49,761 Topics

Member Avatar for
Member Avatar for DanielSada

I am a decent programmer in C++ console mode, but when I get to objects I don't know what to focus to learn to program windows in C++. Should i learn GLX or Wx* ??? What are they for? Thanks in advance =)

0
23
Member Avatar for Jennifer84

Hi, I have a form that has Width & Height (1000,1000). Now if the users screen has for example this sizes (800,800). Then I want to adjust the Forms Width & Height to 800,800 so it fits the screen. So my question should be if it is possible to detect …

Member Avatar for ShadowScripter
0
256
Member Avatar for broli100

Hi, I want to put GLSL shader in my game to get realistic shadows and lighting. But when I use polygons GL_POLYGON ,they are totally black. Only thing that works OK with shader is glutSolid bullshit like glutSolidTeapot and glutSolidCube and so on. So I wanted to know the source …

Member Avatar for broli100
0
253
Member Avatar for Jennifer84

Hi, I have 2 questions about the scrollbars on the Form. 1. Is it possible to change the Width of the scrollbar control itself? (Ex: for the vertical scrollbar in this browser window is about 1 cm.) 2. Is it possible to change the Color of the scrollbar in any …

Member Avatar for ShadowScripter
0
511
Member Avatar for Jennifer84

Hi, It is possible to drag a Forms width. What I want is to prevent a user to drag the Forms width more than the value 405. I have tried out with the code below but nothing happens when I drag the width of the form. Thanks! [CODE] private: System::Void …

Member Avatar for Jennifer84
0
94
Member Avatar for aldrin12

my prof give us assignment but she doesn't explain what to do im just asking what will be the code to this problem: write a program that will find the area of square.. (look for the relevant formula) ty for the one who will help ty very much

Member Avatar for Stefano Mtangoo
0
199
Member Avatar for garea

I have a problem with recursive imports in C++. I have this 2 classes: [CODE] //File A.h #include "B.h" class A{ public: A(){}; void doA(B b){ b.doB(); } } [/CODE] [CODE] //File B.h #include "A.h" class B{ public: B(){}; void doB(A a){ a.doA(); } } [/CODE] I tried to use …

Member Avatar for rodc
0
810
Member Avatar for Kanoisa

Hiya, Im trying make a simple cards game and i was wondering how in c++ can i use the characters ♠ ♣ ♥ ♦ , i think it would be betetr than me printing out the words each time, Are these in some extended character set anywhere? i tried googling …

Member Avatar for Kanoisa
0
1K
Member Avatar for Jackie91

[CODE] #include <cstdlib> #include <conio.h> #include <fstream> #include <sys\stat.h> #include <string> #include <iostream> #include <iomanip> using namespace std; struct Student_Record { string name; int id; string ic; string parentName; string address; int telNum, parentTelNum; bool deleted; }; Student_Record Student; #define STUDENT_NAME "Student.txt" Student_Record Employee; char choice; fstream *fs = NULL, …

Member Avatar for ShadowScripter
0
91
Member Avatar for Freefrags

Im trying to create a boost thread which executes the following static function. [code=c] Updater::UpdateTrack(const std::string& sFolder) { //Do something } [/code] I cant seem to figure out how to pass the argument to the function i tried the following: [code=c] m_UpdateThread = boost::thread(&Updater::UpdateTrack,"test"); [/code] [code=c] m_UpdateThread = boost::thread(boost::bind(&Updater::UpdateTrack,"test")); [/code] …

Member Avatar for Freefrags
0
166
Member Avatar for Frederick2

[CODE=C++] #include <stdio.h> int main() { int iBAF=10; int iPlots=14; double dblFactor; dblFactor=iBAF/iPlots; //to get a floating point you need a cast! printf("dblFactor = %10.6f\n",dblFactor); return 0; } /* dblFactor = 0.000000 */ [/CODE] I thought C/C++ would offer a few benifits beyond pure assembler. Apparently I was wrong.

Member Avatar for Fbody
0
352
Member Avatar for spring sun

hi every body this is my first post in this wonderfull web site i'm a biggener in c++ and i have a q i want to do a function that determines whether a number is prime and then use this function in a program that prints all the prime numbers …

Member Avatar for technology
0
216
Member Avatar for group256

Hey Everyone, I'm compiling a code that reads characters from a file and puts them in a linked list. No problem with the Linked List but my ifstream acts weird. When it reads from the file everything goes somoothly, but at the end, when it reads that last WORD, it …

Member Avatar for group256
0
184
Member Avatar for angel_banned

Hello Dear All Friends, Im learning c++ about 4 months.. Im just only using Dev c++. The reason why Im creating this thread is to check with ur all that which application is the best for me to create a system. I mean create a GUI that can make lot …

Member Avatar for wwefriend
0
73
Member Avatar for Anyzen

good day.. i am starting to learn..and experiment in namespaces just simple one... calling void functions..then print f.h [CODE]#include<iostream> #include<limits> namespace A { void f() { std::cout<< "Testing \"void f()\""; std::cout<<std::endl; } }[/CODE] f.cpp [CODE]#include "f.h" int main () { A::f(); std::cin.ignore(std::numeric_limits<std::streamsize>::max(),'\n'); std::cin.get(); } [/CODE] g.h [CODE]#include<iostream> #include<limits> namespace A …

Member Avatar for Anyzen
0
176
Member Avatar for xinyonz

hi i have a .txt file containg data like __________________________________________________________________ Date Time ABC GD INo P mo SRD T 11/07/2010 9:24PM, 21.46 7.25,0000000025,0000001245,12000000,23.24 11/07/2010 9:34PM, 21.46 6.25,0000000025,0000001245,12000000,23.24 11/07/2010 9:44PM, 22.60 6.25,0000000025,0000001245,12000000,23.24 11/07/2010 9:54PM, 23.90 5.25,0000000025,0000001245,12000000,23.24 11/07/2010 10:04PM, 21.46 6.25,0000000025,0000001245,12000000,23.24 11/07/2010 10:14PM, 21.60 4.15,0000000025,0000001245,12000000,23.24 11/07/2010 10:24PM, 25.40 7.75,0000000025,0000001245,12000000,23.24 11/07/2010 10:34PM, 21.46 …

Member Avatar for WaltP
0
138
Member Avatar for gretty

Hello How do I combine hexadecimal numbers? For example if I have the numbers: - aa - 14 - 5d How can I combine them to get : aa145d ?

Member Avatar for archana.c07
0
2K
Member Avatar for itisgood

I have the heading down but how do I output the names and numbers including total? Does it involve calculation? Also, how do I make it so they're aligned pretty? Can someone help me with this whole process? Here it is: This payroll program calculates an individual employee pay and …

Member Avatar for itisgood
0
101
Member Avatar for aianne

Hello, I'm almost completely useless at C, and as part of a project I've got to conjure up a programme, and I'm just hoping someone can give me push to get it started. I want to make a programme where the user can draw a CIRCLE, SQUARE, LINE and POLYGON …

Member Avatar for jhamelberja@yah
-3
155
Member Avatar for intills

Hello I need to modify this code to have only the first character of whatever word inputted be capitalized. I have this one that shows all the characters capitalized, but I need to modify it using isspace(). #include <stdio.h> #include <iostream> using namespace std; int main () { char c, …

Member Avatar for mrnutty
0
250
Member Avatar for Awah Mohamed

hello guys . i want to learn c++ untill i become able to create advanced softwares.so please tell what am i saposed to read to be what i want to be like all files types and where can i get the lessons for free

Member Avatar for mrnutty
0
85
Member Avatar for aranjan

I am having problems primarily with the sorting function. What I need is for the polynomials after being entered to be sorted from the highest exponent to the lowest and then added and to have that displayed. The other thing is that I need to do a pushback for the …

Member Avatar for StuXYZ
0
149
Member Avatar for Dennis M.

The title in and of itself is fairly descriptive, however, I am looking for some help. I am writing a program which reads the output of a command-line based program and puts that output to a GUI. Due to my need of asynchronous i/o, I have had suggestions to use …

Member Avatar for wisaacs
0
3K
Member Avatar for Ghazanfar Ali

Hey I am new to this forum and to OOP please help me in developing window and to change the background color when i execute my program..... I am using Dev C++ of bloodshed[code][/code]

Member Avatar for Fbody
-1
64
Member Avatar for hockeygurl35

I am working on a school assignment and have gotten my code down to one error, but I've tried multiple changes and can't figure out how to fix it. I am trying to pass an array from my main() to my class and then have it print out when called. …

Member Avatar for hockeygurl35
0
1K
Member Avatar for archana.c07

the hex value 00 00 00 00 00 BC 61 4E (LSB) which is stored in string as char data[8] = {0x4E, 0x61, 0xBC, 0x00, 0x00, 0x00, 0x00, 0x00}; now i want to convert it into int (equivalent of above hex string is 12345678) i have below code char a …

Member Avatar for mrnutty
0
175
Member Avatar for ischuldt

I'm getting an error saying: error: passing `const model::container::Item' as `this' argument of `void model::container::Item::get_fields()' discards qualifiers I'm getting the message for each of the getters in my class which are declared like this [code=c] const int& division()const{ get_fields(); return division_; } [/code] I'm assuming I'm getting this error because …

Member Avatar for arkoenig
0
122
Member Avatar for hg_fs2002

Hi,Is someone could help me how is it possible to implement Generalized Linked Lists? I've implemented it somehow but I'm not sure it works or not. Now I'm going to print the nodes I've implemented.When I want to declare the print function in class Glist with first1 argument,I get this …

Member Avatar for hg_fs2002
0
1K
Member Avatar for cmutzel02

Hi all, I am having a problem when trying to compile this. from compiler: error: name lookup of 'pixel_number' changed for new ISO 'for' scoping error: obsolete binding at 'pixel_number' I understand that I cannot use the pixel_number variable outside of the for loop, have read so in other posts. …

Member Avatar for cmutzel02
0
268
Member Avatar for Red_Dragon

I'm trying to write a Tic Tac Toe game but I'm stuck at the computer AI. Basically for the computer move I need a random generator to pick a number and insert it into a 2D array. The parts that I'm stuck at is writing a code so that computer …

Member Avatar for ischuldt
0
75

The End.