49,761 Topics
| |
Hello Everybody. Does anybody here know of a good IDE to begin using directx programming in c++? I'm currently checking out eclipse, but I don't know how to get directx to work easily. I've been told Dev-c++ does the job but it doesn't work on my machine. Please help! | |
I'm working on a project for my first use of classes and OOP. I've read all our slides (only provided examples though) and two tutorials on classes, but I confused about a few things. I'll show first the assignment then I'll post my specific questions after. [QUOTE]You will need to … | |
Please tell me why this doesn't work: [code] #include<iostream> using namespace std; int main() { char felix[3] = "ho"; if(felix == "ho") cout << felix; } [/code] | |
Hey All I am testing myself with making a big number class. Right now I'm just working with integers but I hope to expand it to floats as well. I am using a vector of integers for the container and i have run into a problem with my addition routine. … | |
Ok guys, for my next assignment I have to read from a binary file and then print out my information. I will post the assignment and what I have so far. But my question is, do I create the binary file first in the program or by hand or what?? … | |
Hey all, I am trying to read in a line from a file. The line will normally contain a string followed a number. Eg/ NumberOfElements 1500 I only require the number. I have been trying to read in the line storing the string as "text" and the number as "numOfInts". … | |
I am dealing with multiple monitors in which i required to use EnumDisplayDevices() API. However, the linker gives me following error log (i am using VC++ 6.0) : [CODE]Linking... SourceCode.obj : error LNK2001: unresolved external symbol __imp__EnumDisplayDevicesA@16 Debug/AllianceProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/CODE] I tried … | |
Hey guys, sorry I am asking so many questions lately, but I am learning this stuff by myself, and find it easier to ask questions here than look online. Plus when I try using the search engine on this site, it takes me to some quite random threads. Anyhow, onto … | |
I just want to share and ask about what I experienced, Im just a starter in C++ and I noticed everytime I make a program which has a [B]looping statement[/B], after compiling the program and try to run or execute the program([B]it happens only after compiling[/B]) it takes 13 to … | |
Hi, I have a quick question...so I have this program that asks user to enter an integer and then it analyzes that integer..it outputs factors of that number, and tells whether its composite or prime, abundant or deficient, and so on...and then after telling few things about that number..it asks … | |
[QUOTE=hay_man;246195]I am using c++ and need to devise a method to determine the check digit of a credit card. The user enters the card no. as a string. The card no is then divided into blocks of length, x. these blocks are then added. I have the code to convert … | |
ok so basically what im wanting to do is setup functions and call on them later... this is kind of what i want [CODE] void mainmenu(){ //what i want in there... //if statements etc } void etc() { //whatever goes here} int main() // and then have them get called … | |
how would i write nested for loops for this program? there are 3 products. product 1 is $12.50, product 2 is $8.90 and product 3 is $20.10. write a C++ program that reads the product number and the quantity sold per day, and then calculates and display the total retail … | |
I want to convert binary file to ascii. how to do that in C | |
Using different objects for input and output the above code is not working. Pls give suggestion ASAP. [code]#include<iostream> #include<fstream> #include<iomanip> using namespace std; class sample { int num; char name[20]; public: void read() { cout<<"\n enter name"; gets(name); cout<<"enter the number"; cin>>num; } void write() { cout<<"\n The name is"<<name<<endl; … | |
this is the code i have entered and keep getting the error: error pointer to a function used in arithmetic and error cannot convert 'const int' to 'double' for argument '1' to 'double f09kkk_lat {cout<<places[i]<<""<<fixed<<setprecision[2] <<fo09kkk_lat_long_dist(brunel_lat,brunel_lon,lat[i],lon[i]<<endl; } cout<<endl; | |
Hi, I know this is compiler thing but I just wanted to know if anyone here have ever been succesful in compiling libvorbis/libogg with MINGW. It's weeks now I cant do it! I have tried with MSYS but nope i cant get far. I wonder why these developer consider only … | |
can u help me plz :yawn: to solve this : Write a program for data encryption using Double Transposition technique. Your program should encrypt any plaintext given a secret key. The inputs to your program are: (1) plaintext stored in a file, (2) secret key which refers to the matrix … | |
Hi everyone, I have searched high and low across google, even throughout my textbook... I have this project where you have to design the different types of CPU schedulers. If there are three processes (arriving in this order), P1, P2, P3, and each process has a CPU Burst, then an … | |
It sure gets your attention though doesn't it. haha. Anyway's, about me...I'm a Computer Science student, with what seems to be a heavy emphasis on C++. About 1.5 years in. I really love / hate all the problems that must be resolved when programming. I alway's find myself reading through … | |
Hello guys. Can I write structure data to child pipe? Usual examples are about writing char* or int type. I tried to write structure. But it does not look work. Will you check my code? ----------------------------------------------------------------------- [CODE]struct work_list { int heavy_rate; //0 - 5 level int work_owner; //thread id } … | |
Hi I have written a program for bootstrapping bond interest rates. The bond price I am getting is 101.99825... when it should be more like 101.999999..... The inputs to test are Bond Price = 102, ttm = 36, f = 2, face = 100, n = 5. Heres the program, … | |
Simple: I have buffer LPBYTE lpBuf And I need size of it.I tried sizeof(lpBuf); but doesnt work properly. How to do it,which function to use? | |
I want to write C++ Class that is exported by a DLL/SO. I need my app to be x-platform so I will avoid non portables. I read somewhere I have to wrap methods in extern "C" to prevent name mangling. Is there a tutorial to make me accomplish this? I … | |
hey guys im working on a homework problem which requires two things -count the total number of clumps -determine the longest clump i finally made my code to recognize the number of total clumps however i still cnt figure out how to determine the longest clump any help be great!thanks:) … | |
Question posed by josolanes: [quote]I looked at your thread here: [url]http://www.daniweb.com/forums/thread88255.html[/url] from a couple years back And I'm starting to get a grasp of your first post. I understood how to do the factorial struct really quickly, but the _if and _for statements still make me feel uneasy, though I … | |
Hey Guys/Gal's I'm trying to figure out how to make an array of function pointers, but let me explain what i mean: The array will need a 'key' value (string | char*) and a 'value' (function pointer). So basically the array holds a list of short names of functions. I … | |
I have been told that C++ and C# are very simular, as i am learning C++ and ust downloading XNA which use's C# I just wanted to know if C++ and C# are similar (exept the fact they both begin with the letter C ) | |
I'm looking for a few suggestions on different ways to input a polynomial into an array (coef[]) using a degree (double degree). I have one way that works, but my most recent project needs a new way to do the same thing (not sure why but it can't hurt to … | |
:?: How do you make an object, say a rectangle, move in turbo c++, using right and left arrow keys? I want the object to move when a user presses right or left arrow keys. Please reply ASAP either here or at my email [I]<<email address snipped>>[/I] |
The End.