49,761 Topics
| |
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. |
The End.