49,761 Topics
| |
Hello guys. I'm new here. I've got a problem with a CLR Windows Form Application. I've started to make Mendeleev Table , and i almost finished it. Here's a screenshot: [url]http://files.uploadffs.com/d/8/9b468fc8/screenshot.PNG[/url] I've tested it on my computer ( Debug ; starting .exe ; etc. ) , it works , but … | |
and this what is a better way too write this without getting an error if ((symb1 != 'A', 'a') || (symb2 != 'B', 'b') || (symb3 != 'C', 'c') || (symb4 != 'D', 'd'));; << endl; { cout << "Please enter an corresponding letter." << endl; } and this what … | |
Hello. I need an example of how to pass an array of pointers to objects as a parameter to a function or a constructor. It's urgent. Please help me. Thank you. | |
plz chk i want to overload compound assignment operator bt its gving me some error[CODE]#include <iostream> using namespace std; class strng { char s[30]; public: strng() { strcpy(s,""); } void getstring() { cout<<"enter the sting:"; cin>>s; } void displaystring() { cout <<"the string is:"<<s<<endl; } string operator +=(string &t); }; … | |
How would I make or find a spellcheck for wordpad and I don't mean like all spellchecker I mean like a built in spellcheck like in word were you just press F7 and bam no haveing a whole other program up so how would I even start to make that? | |
I'm still working on the same problem. Im doing a text-twist code for c++ as part of our school requirement. Last time, I'm having problems on delaying outputs using CLOCKS_PER_SEC and clock(), but thanks to some people, I solved that problem already. Now, Im working on the game's play mode. … | |
I have a make file which compiles my C++ code on RHEL5. It contains the compilation flags as listed below. Where can I get the description of following g++ compilation flags: -D_UNIX -D_REENTRANT -DUNICODE -D_UNICODE -D__LITTLE_ENDIAN__ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_LARGE_FILES -DLINUX -D__x86__ -D__linux__ -D____ -D__OSVERSION__=2 | |
Ok so I am having a problem using the method stat(), I need to find the filesize of a file and return it as a const char *, So i would need to convert the int value to a char. This is what i have now which does compile but … | |
I use MS VC++6 and when I type code I have problem...let's say I have 123456789 typed and I place cursor between 4 and 5 and than type "something" I get 1234something and not 1234something56789 so it deletes and wont shift right :S also enter doesnt brake new line,space,backspace.... I … | |
My problem is the array Field which is considered by the compiler as undeclared. I declared the array in main and i'm trying to access it through the following .cpp file. animals.cpp : [CODE]#include <cstdlib> #include "organisms.h" #include "animals.h" // class's header file // class constructor Animals::Animals() { } void … | |
Although for consistent and reusable design we follow Object Oriented paradigms; “structured approach” has still its worth in some imperative and critical application. wat do u people say about this | |
I need function that sends to email (text.txt file) in SMTP protocol? I've googled it up but I mostly found C# or VB codes... Can I get a link or code of such function? | |
Can any one point out links to some small projects w.r.t C++ ? Now when I say small projects, It [B]doesn't mean[/B] building a calculator or matrix multiplication programs, [B]nor[/B] does it mean building games, [B]nor[/B] does it mean dealing with databases, What I actually want is to use the … | |
Hello, I'm seeking a solution to how to keep text updated in windows forms, currently Im using QT forms, and trying to keep my labeltexts updated but always fails, tried infinite true here and there but program always crash=\ | |
Hello Everyone, As you can see, I am new to DaniWeb, and might I say this is a VERY good community. Either ways, my problem is a pretty complicated one, which I have been working on for a while now, 2-3 weeks. I am assigned by my team to create … | |
just the words but I am getting errors [CODE]#include<stdio.h> #include<conio.h> void main() { FILE *f1; char c='y', field[10][10]; int i=0, j=0; printf("Fields:- \n"); f1 = fopen("filename","r"); while ((c=getc(f1))!='\r') { while (c!='\t') { field[i][j] = c; j++; c=getc(f1); } c='y'; printf("%s ",field[i]); i++; } printf("i = %d, j = %d", i, … | |
Hi everyone, I'm reading two values from my text file after that I have to find all the possible points in this row*column data. I wrote this code but I got an infinite loop as a result instead of getting N1=(1,1), N2(1,2) till the the last column which is n, … | |
Hi all: I am quite new at C++. I am using it to run transport calculations. The results of each calculation (rows and columns of data) need to be plotted. I would like to use Matlab. I have searched Matlab help and found that it is possible to write a … | |
i am confused about syntax highlighting, if i am paste text from clipboard to RichEdit, the syntax highlighling doesnt work perfectly. here is my code : [code]//On header(FWDesign.h) define TStringList *htmltag; TStringList *atribut; //On FormCreate void __fastcall TFWDesign::FormCreate(TObject *Sender) { htmltag = new (TStringList); atribut = new (TStringList); htmltag->Add("html"); htmltag->Add("body"); … | |
I am having trouble with getting the math from paper to C++ code ... I am asking for user input for a numerator and a denominator .... the function then treats the variables as a fraction and reduces it to the lowest term ..... I had some math in the … | |
help me how to do a word scrolling like a snake game without hitting any keys. | |
Could someone please have a look at my code and tell me anything that can be improved? Anything at all - layout, using headers etc? Thanks in advance! [code=php] #include<iostream> #include<vector> #include<cmath> #include<iomanip> using namespace std; typedef double(*fun)(double); //Declare functions double gauss(fun f, double &a, double &b, int &n, double … | |
Before I proceed with the code implementation, I need to find the error that this program initiates. I can't figure out the solution, I guess thats what happens after not using c++ for 4 years... The compilation errors I'm getting are all of this type (11 of them): Error 9 … | |
I cant find the error here.. [CODE]#include "stdafx.h" #include <deque> #include <list> #include <queue> #include <iostream> #include <fstream> #include <string> #include <sstream> #include <set> using namespace std; char file_name[15]; char links_file[15]; char alg[15]; char with_list[15]; char new_name[15]; int depth; long idstart,idgoal; class Action { public: long start_node; long end_node; int … | |
Hi guys, I'm new to C++ and I'm doing a small project, I got a little problem with reading a specific number from a text file. for example: size 2 3 I want my program to read the 2 to a and the 3 to b. Also I want the … | |
Is this API striclty for 3d applications including sound and modeling etc.... or can you program windows forms as well? Just wondering | |
hi guys i have a little question i don't understand this line typedef [COLOR="Red"]basic_string <char>[/COLOR] string ; i have searched but can't get it any one can help ur help will be appreciated | |
As part of a homework, I created the following Puzzle Class and it works. The thing is, it only work if i put the class in q2.cxx, the main code file. If I place them in three seperate files, I get hell load of problem. Can anyone please look at … | |
Hi, I am a newbie to C++ (and programming in general) I have the following: [CODE] char* fOutMsg; strcpy(fOutMsg, "03DS2"); [/CODE] -------------------------------------------------------------- in another place: [CODE] char fPpn[32] = {0}; strcpy(fPpn, " "); [/CODE] ------------------------------------------------------------------- in another location: [CODE] char fStr; struct* ioEx; strcpy(fStr, W2A(ioEx->authcode)); [/CODE] --------------------------------------------------------------------- more: [CODE] char* … | |
Basically, I'm writing some code that will take text from some .txt files and rearrange them into other .txt files. I've written 3 functions, but ignore the 2nd one, I haven't worked on it yet. When I try to call my 3rd function, I get an error message from Dev … |
The End.