51,593 Topics
![]() | |
wanted something fast for writing a rendering engine so i wasted way to much time writing metatrix, then started having illusions of getting a job with it and now i'm closest to bum status i've ever been. maybe somebody can learn or actually use it, and if i get some … | |
Hi, I took a course in JAVA and learned about exceptions...I'm not sure how to throw and catch in C++. Can I get some help please??? | |
Is there any need to escape a Registry Key path when reading it from a file? eg. For the path :[B] HKEY_USERS\.DEFAULT[/B] When reading input from a file , is there a need for escaping the''? If I use [B]" HKEY_USERS\\.DEFAULT"[/B], I get the same string [B]" HKEY_USERS\\.DEFAULT"[/B] back - … | |
Everytime i turn on the pc i get serval things come up. First its Error Loading C:\WINDOWS\system32\fslvndya.dll Then its Error Loading C:\WINDOWS\system32\wxstofsr.dll Then finally its Microsoft visual C++ Runtime Libray C:\WINDOWS\explorer.exe Here is my HiJackThis Log file. Please help me sort it out, its doing my head in. Thanks alot … | |
Guys, Your help will be appreicated in this matter. i have to read a text file which has rows and columns into a vector. The text file could be of any size. 000000000 010010001 010010011 001001001 Now, how do I upload this text file on to a 2D vector? so … | |
This question goes out to everyone who knows the latest c++ standard by heart:P. We have the following program: [CODE=c++] #include <iostream> using namespace std; void wow(int& x, int& y, int&z) { x=x+1; y=z; z=z+1; } int main() { int i=0; int A[2]={10,11}; wow(i, A[i], i); cout<<i<<endl; cout<<A[0]<<endl; cout<<A[1]<<endl; } … | |
hello everyone, i am a rookie in C++ programming, can someone please clarify my one doubt regarding difference between handles and pointers ?? actually i am little confused about handles, can any one please clarify what exactly is a Handle and why is it used?? | |
Hi, If any body is interested in learning C++ on his own then here is a site which I have been using to a great effect and satisfaction. Although many might be aware of it. [URL]http://www.cplusplus.com/doc/tutorial/[/URL] I have bought some books on the language but none of the seem to … | |
Can anyone tell me anything about manifest files? Anything at all. I have never worked with them until now and they are a mystery to me. I have to include one in a build and I only get an error at run time and the error is not helpful in … | |
I have been searching for a solution to this problem: I'm given an expression in infix which can contain *,/,-,+ and I have to find the reduced form of this expression. Ex: Input: ((A+45)*16+(B-C)*D/4 )/8+ 55 Output: A*2+B*D/32-C*D/32 +145 All that can be calculated must be calculated and the simplest … | |
Hi, Could someone please provide me an e-book (or a link to one), I can study Design Patterns from? Also, please do suggest me some good titles for the same. Thanks. | |
Hi All. I am developing a C++ application which has a module to read data from a text file and then write some its data into another text file and then save that. Everything goes right tilll the last line of the program when I end up writing and try … | |
Using VC++ 6.0, setting this option doesn't seem to do anything significant. Specically, I can still run the app on a 486. I've drilled into assembly and can't find anywhere that Pentium opcodes are being used. My guess would be timing and as I don't have any references to that … | |
hi, i use the flex tool {[URL="http://www.gnu.org/software/flex/manual/"]http://www.gnu.org/software/flex/manual/[/URL]} to generate a tokenizer ,but i have the following problem {it has to do with the way that flex tokenizes the input:: FILE : flex.l [CODE] %{ #define WEB 0 #define SPACE 1 #define STRING 2 %} string_component [0-9a-zA-Z \t\.!#$%^&()*@_] %% "daniweb" {return … | |
i know this is 2 easy for you guys, but please help..... Its been only 2 wks since i enrolled this class and they gave me this assignment.... please check if its correct. thank you so much [code=cpp] #include<iostream> using namespace std; char vowels[]={a,e,i,o,u}; char n; char main() { cout<<“Please … | |
Hey everyone, I'm back in C++ this semester; Last semester I went through Structured C++ (and passed with a 4.0; many thanks to all of you!) and this semester I'm in OOP. I don't have sample code yet because I haven't started. But I was talking to a classmate, and … | |
| |
[code=cpp]#include <iostream> using namespace std; int main() { char b; char john [6] = {'a','e','i','o','u','\0'}; cout<<"Please type a letter:"; cin>>b;} } [/code] please complete this code. i need to use an array that will give an output telling that your input letter is a vowel or consonant. ![]() | |
Hello there, I'm having trouble finding the corresponding linux function of win32's SetFilePointer(), ReadFile() and WriteFile(). Do anybody here have any ideas on what to replace or use. Thanks. :) | |
Is there a way to check how many errors can this code detect and correct??? | 1 0 0 1 1 | | 0 1 0 1 2 | = G | 0 0 1 1 3 | lot of help ken js | |
Hi, e.g. int a = 20; int b = 07; I want to joint a and b together to get 2007. Anybody know how to do it? lots of help, ken js | |
How do you clear a string in a single statement ? for egs. i want to clear name[20] of all its contents and leave it completely empty Please help :-/ | |
Hey, I am a total newbie I need help finding errors in my code. [CODE] // Week 4 Individual Assignment // Calculate the monthly payment User input. // Include header files #include <iostream> #include <iomanip> #include <math.h> using std::cout; using std::endl; using std::cin; using std::ios; //Namespaces using namespace std; //Declare … | |
HI, I am working a program for an Aquarium which contains controls for lights and a electronic fish feeder. I have found a way to get the system time but I do not have the desired result. [1] I want to be able to set the system time during run … | |
[code]The program code works but after I add, subtract, multiply or divide two numbers the program exits automatically. I don't know how to keep it not to exit automatically, kindly see the code guys. thanks #include <iostream.h> #include <conio.h> int mc(int x, int y) //Multiply two numbers { cout <<"\n\n"<< … | |
I need to display 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 … I “must” use the “for” …This is what I have but it only counts by two. I don’t want the answer…however can you please give me some clues on the proper way to add the … | |
Hello..I am sorry if this is covered some where in threads I have not found. But I am looking for a good book or tutorial on how to use the Above IDE. I have some good C++ books, but now I need to start using the IDE. Any suggestions...thanks | |
Let me start by saying this is my first post here at daniweb and I am pretty new at C++. With that said I will dive right in. I have a program due next week and trying to get it hammered out. I have to create a line editor that … | |
I need to set up a serial communications port using DEV C++ to the CMUcam2 under windows. I have to send small strings such as "GH" "GM" and receive packets of information of varying sizes that will need to be parsed to analyze the information given. I've found some code … | |
can any one help me? is main() function a pre defined function or a user defined function? thank you | |
Hello, I did some expiremets with turning numbers with floating point to strings and vice versa,and bumped into something strange,here is the code: [code=cplusplus] #include<stdio.h> #include<conio.h> #include<stdlib.h> void main () { double num; num=310.589; char buffer [10]; sprintf(buffer,"%f",num); buffer[7]=NULL; printf("using &num=\n"); printf((char *)&num); printf("\nbuffer=\n"); printf(buffer); printf("\nfragment of buffer=\n"); printf((char *)&buffer[3]); … | |
I m reading a text file which is of format L1,L2,L3 L1,0,0,0 L2,1,0,0 L3,1,0,0 using getline method. The first lines signifies the vertex of a graph. Now from the second line onwards it signifies edges. Now from second line onwards i want to add the elements in a dynamic array … | |
I have this dictionary project that's making my head spin. Am trying to create a dictionary that stores the word and meaning of the word in a text file. Then a user can either searching the meaning of a word or search by alphabet. I had an idea which is, … | |
writa a code in c++ create a link list that will store information note{item code,item name,item price,intem quantity} add record print all search exit and delete ![]() | |
How do i create a two dimensional dynamic array of type string using vector. Also let me know if how can i use "find" on this array.. ![]() | |
If you have an example please help me | |
Can anybody help me to create a notepad like interface in C++. It should have a cursor which moves as we move the arrow keys. | |
Hi, I tried to compile below program with Borland C++ 5.0 program but i received subject error. Below is not complete program as it is long program. I think "graphics.h" has some problem. Please help me. [COLOR=#000000]#include<iostream.h>[/COLOR] [COLOR=#000000]#include<graphics.h>[/COLOR] [COLOR=#000000]#include<stdio.h>[/COLOR] [COLOR=#000000]#include<conio.h>[/COLOR] [COLOR=#000000]#include<string.h>[/COLOR] [COLOR=#000000]#include<dos.h>[/COLOR] [COLOR=#000000]#include<iomanip.h>[/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]struct date_rec[/COLOR] [COLOR=#000000]{[/COLOR] [COLOR=#000000]short int … | |
After compiling of below program , i received the "ms with error". Please help me. Thank you, [code=c] #include<iostream.h> void main() { int a[3][3],i,j,m,n,sum1=0,sum2=0,z; cout<<"\n Enter the order of the matrices"; cin>>m>>n; cout<<"\n Enter the elements of the matrices"; for(i=0;i<m;i++) for(j=0;j<n;j++) { if(i==j) sum1+=a[i][j]; } for(i=0,j=n-1;i<m;i++,j--) { sum2+=a[i][j]; } cout<<"\n … ![]() | |
Hi, Everybody. After compiling below program i am getting error" prg2(distance with error),Please help me to resolve. Thank you [code=c] #include<iostream.h> #include<conio.h> struct distance { int feet; int inches; }; distance length1,length2; void prnsum(int distance11,distance12); int main() { clrscr(); int distance,z; cout<<"Enter length1:"<<"\n"; cout<<"Feet:"; cin>>length1.feet; cout<<"\n"<<"Inches:"; cin>>length1.inches; cout<<"\n"<<"\n" <<"Enter length2:"<<"\n"; … ![]() | |
![]() | I don't know how to declare the funtions before it reach the int main? [code=cplusplus] #include <iostream> #include <cstdlib> #include <fstream> using namespace std; //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- void closeFile() { input.close(); } //----------------------------------------------------------------------------- // //----------------------------------------------------------------------------- void PressAnyKeyToContinue(void) { system("pause"); //pauses the system until you press a key system("cls"); //clears the … |
I'm trying to add xml-rpc to an existing application using [url]http://xmlrpc-c.sourceforge.net/[/url] .I used the following code for testing. [code=c++] xmlrpc_c::clientSimple myClient; xmlrpc_c::value result; myClient.call(serverUrl, methodName, "ii", &result, 5, 7); int const sum((xmlrpc_c::value_int(result))); [/code] The code compiles correctly, but causes the program to throw an error. If I initialize them as … | |
Any of you here knows the corresponding structure of CRITICAL_SECTION in linux? thanks. | |
I am modifying the class CMimeMessage : public CMimeHeader, i need to modify the <pre> virtual inline BOOL MakeMimeHeader(CStringA& header, LPCSTR szBoundary, LPCTSTR szFileName){ATLENSURE(szBoundary != NULL);ATLASSERT(szFileName != NULL);ATLASSUME(m_pszEncodeString != NULL);char szBegin[256];if (*szBoundary){// this is not the only body partChecked::memcpy_s(szBegin, 256, ATLMIME_SEPARATOR, sizeof(ATLMIME_SEPARATOR));Checked::memcpy_s(szBegin+6, 250, szBoundary, ATL_MIME_BOUNDARYLEN);*(szBegin+(ATL_MIME_BOUNDARYLEN+6)) = '\0';}else{// this is the … | |
Hello, I'm looking to dowload a bunch of .csv files from different web address' using c++. I'm pretty new to c++ but not to computers or object oriented programming. What is the best way to go about developing this downloading functionality and what is a good guide for learning how … | |
Hello there. I just want to ask some simple explanation about multithreading in this situation. Suppose I have two CD/DVD drives and an applicaton that enables me to control these two drives. This application uses multithreading. How would this thread be implemented or what is the help that this multithreading … | |
Hi guys, I have an MFC application and I made a class called CCustomFilter.. it basically brings up a dialog with some edit boxes, etc.. the user is able to enter a mask and apply the filter.. Now, from the main dialog I am instantiating it as follows: [code=cplusplus] CCustomFilter … | |
Please tell me from the scratch how to compile and run a .C programme in Turbo C++ Explorer IDE. I'm finding it difficult. Whenever I try to compile and run the .C files , I find these commands as dimmed command in the project and run menus in the IDE. … ![]() |
The End.