Beginners - May 2009 (Page 11)

macros with c#
 
I would like to make a program that when activated it continually presses a key like for example when activated it would repeatedly press the 3 key or press 3 t...
[1 reply] : For such a simple task, you can use any language that allows you to in... (by helios)
How to write in fail class
 
Structs can be writed in fail directly, i was try it.But when I try to do the same with class , i can't after read corectly the data in fail. Did some one kn...
[9 replies] Last: So you're trying to do binary object serialization. In that case your ... (by Hammurabi)
Cirillic output in VC 2006
 
Do have a way, my program on C++ ,to give Cirillic output in VC 2006. If I just write some like: cout<<"Кво става "; the program output don'...
[1 reply] : sadly -- C++'s built-in support of Unicode is nonexistant as of the cu... (by Disch)
Error: no idea what the error
 
class alarm { private: int RTime; bool alarmOn; public: alarm(bool, int); alarm(); void setRTime(int); void setAlarm(bool); string display...
[4 replies] Last: Is there an explanation, due to how the compiler parses C++, of why ";... (by wretch)
by nanger
about fstream.open()
 
when I use fstream.open("filename") to creat a file if there is directory in the filename such as out/example.txt if there is no folder '/out/' in the same d...
[4 replies] Last: thanks! (by nanger)
why while(cin>>num) one time
 
I had a homework to create two stacks from int,and then compare him. it's good, but if i input like that: int num; stack<int> s; while(cin<<num) { s.pus...
[1 reply] : it should be cin >> num If you stop the loop by entering an invalid... (by Bazzy)
about implementaton of list
 
Some times ago, in universty we start study how to create dinamic structures like stack,list and etc. and this is my queston: Is STL fully use functonality...
[3 replies] Last: In stl have a iterators. In my header member-function at(index) retur... (by Ivan Dimitrov)
C++ classes
 
hi my problem is as follows i have a program that calculates various bodily functions. Im using classes for this. if i choose option one the program works f...
[1 reply] : The problem is, in order to verify correct input for BodyStats::Find... (by Tevsky)
Problems exiting from main
 
I've got a program I've made that runs just fine, except that when it goes to return from main, it crashes. Using return 0; as the last line of code at the en...
[3 replies] Last: That would just make it heap corruption instead of stack corruption, w... (by Disch)
SDL problem
 
ok so i am having a problem with making/opening SDL files and i dont want to keep going with learning SDL programming until i get this problem fixed. the pro...
[8 replies] Last: SDL Comes with documentation from memory that's pretty handy. Otherwis... (by Mythios)
by Tripic
Vector problem
 
ok the problem i have is in the game function at the bottom. the program is suppised to open a file parse it and then ask each player in the playerID vector e...
[5 replies] Last: I will have to try that for (PlayerNumber = 0; PlayerNumber <= ... (by Tripic)
Vectors.
 
class A { private: int AA; int qq; string bb; public: virtual void display() } class B : class A { private: int BB; public: void display() }...
[3 replies] Last: I agree the easy thing would be to have each print something diferent (by Tripic)
iterator classes
 
What are the main reasons for using iterator classes (with containers) instead of regular pointers?
[3 replies] Last: Following up jsmith's comment, read the docs for a couple of the std a... (by kempofighter)
classes problem
 
hi this is my first post and i have a problem with classes i have made a small health meter however the choices are not independent for example if i select ...
[2 replies] Last: I hope this helps #include <iostream> #include <string> class ... (by kfex)
binary tree beginning, need one more function
 
hi. I am working on binary tree, but jst want to see is everything looking good so far. code: #include<iostream> #include<stdio.h> #include <string> using...
[1 reply] : You can't go back to the root from a node in a proper tree, since it d... (by helios)
by jayt
Inheritance question
 
Hello , Can someone tell me this please ? class CPolygon { protected: int width, height; public: void set_values (int a, int b) { wi...
[7 replies] Last: thank you grey wolf (by jayt)
Why i get this result?
 
Finally debuged my program, but when I compile it with a test data series, always get wrong result a single 0 in proba.txt file. The code is: //degree ...
[1 reply] : Would you care to share the results of your debugging? If you already... (by kempofighter)
by nanger
about pre-compile #include directive
 
I have three source files main.cpp (include func.h) func.cpp func.h (include functions defined in func.h) if I have written #include <fstream> in func.cp...
[1 reply] : if you need fstream in all those files, you can have it just in func.h... (by Bazzy)
file output
 
Hi, I cannot find an article on this. I am trying to read a bitmap file header (I know that windows API can do this) But I am trying to read the file dir...
[9 replies] Last: BTW, there is a good bit of information about handling BMP files here:... (by Duthomhas)
unresolved external symbol "public: __thiscall PigLatin::PigLatin(void)
 
class PigLatin { public: PigLatin(void); string convertPigLatin(string); }; string PigLatin::convertPigLatin(string wString) { char vowels = {'...
[2 replies] Last: thank u, it solve the problem. (by littleimps)
May 2009 Pages: 1... 910111213... 21
  Archived months: [apr2009] [jun2009]

This is an archived page. To post a new message, go to the current page.