General C++ Programming - July 2008

Read from a text file and input string somewhere in between
 
Hello, I am trying to read a text file using 'fstream' and writing to it at the same time. - My text file contains the names of all the 12 months in the 3 le...
[no replies]
programm design
 
hi guys, when you try to solve a task, how do you start? A task like creating a programm for a vendor machine. I mean a complete one. The different goods, th...
[8 replies] Last: For a vending machine, the actor is really only the person using the m... (by bnbertha)
compilation problems
 
i got compilation problems but i donw know whats wrong??could you help me? plz! adChannel::setRs() 71 { 72 double tmp,add,div; 73 74 tmp=0; 75 for(vecto...
[1 reply] : I fix it!! thxs!! everyone! i replace "(*iterator,2);" for ((*i... (by rapidiablo)
use of Classes, structures, Text files, memory alllocation
 
Instructions Please read the following instructions (related project code) carefully: You'll be expected to observe good programming standards. • Proje...
[6 replies] Last: Maybe I'll do it and put //Author MikeB from cplusplus.com in an obsc... (by akmalnuernberg)
the problem of gettimeofday
 
Hi all, I just wrote a small problem to check gettimeofday in a multi-cores environment. int timediff(double fTimeQvs, double fTimeTcp) { i...
[1 reply] : I don't understand what the problem is, or what does the fact that it'... (by helios)
HOW TO MAKE DATE VALIDATOR PROGRAM IN C++
 
c an you give me a sample program that will make a date validator p lease? dont have any idea?..im really new here...tnx hope someone response.. ...
[6 replies] Last: i tried to do it like this...its working ....again there's something w... (by atasha36)
Trouble with iostream+MFC EXT DLL
 
Hello! I am trying to port some library from Unix to Win. This library uses iostream classes like istream and ostream. So when I ported this lib to win and c...
[no replies]
Compiling with a library in a .lib file?
 
How do you compile something in Visual C++ and include a third party lib file? And then how do you use it in your code? Are there any tutorials on this? If...
[1 reply] : Well that was easy... http://www.functionx.com/visualc/libraries/stat... (by leeand00)
by jpace
Search for in sub-directories
 
Hi. Can someone tell me how to search for all CSV files in a directory and its sub-directories? I know how to do this in Cygwin (with “find”), but I’d...
[1 reply] : I’d like to be able to implement it in my C code. Then you have... (by exception)
thanks
 
thank you for your comment i appreciate it !!!!
[6 replies] Last: I love you how you entirely changed your post lol. And it really a... (by mikeb570)
by dehdar
C++ How to search a folder
 
Hi, I'm trying to make a function for my console-based program (no GUI) that will search a specific folder (depending on user input) and then return all the fil...
[9 replies] Last: I guess to make it portable, you'd have to use the following unix exa... (by exception)
DATE VALIDATOR..fixin errors
 
can you please help me with my code? cant run it..there's some errors... please help me..thanks.. #include <iostream.h> #include <conio.h> int main() ...
[3 replies] Last: hi thanks for your help... now i got it right... my program runs very ... (by atasha36)
by kotoro
question about operators
 
I want to define a structure that acts much like a bitset object except that you define how many bits you need when it is created so it doesn't take up excess s...
[12 replies] Last: I'm not going to write in one post what is usually coped with in a ent... (by exception)
char[size] to vector<bool>
 
I can open a binary file and load it to a char array. Is it possible to convert this char array to a vector<bool> for easy manipulation of the bits? Any help...
[1 reply] : Only if you want to mess with allocator classes. Food for thought: ... (by Duthomhas)
Bit-by-bit reading fom Memory
 
Hi, If I load a binary file into memory how do I read it bit-by-bit? ifstream file ("my.bin", ios::in|ios::binary|ios::ate); if (file.is_open()) { ...
[3 replies] Last: Something I have found to be very useful when searching through files ... (by bnbertha)
by PWWWWR
Integer Conversions
 
I have a question, but first... bitmap.width = (int)//whatever number you like! out << (bitmap.width ); out << (bitmap.width >> 8); out << (bit...
[3 replies] Last: Argh. It is complaining about my cast on line 6. Just get rid of the ... (by Duthomhas)
by physik
ifstream question
 
Hello! I've enjoyed reading the posts here for a while. I've learned a lot, but I have something that's giving me a real headache. I'm trying to write a prog...
[2 replies] Last: Arsen, you are a lifesaver. This has been hurting my head for a long ... (by physik)
using templates with different typenames
 
Hi all, I would like to use in one template class a different template class while both having different typenames. It results in the following compilation e...
[7 replies] Last: but one has a problem if one splits its code into a header and .c f... (by exception)
by katz
Microcontroller programming
 
I am unsure of how to start a project to be written on the microcontroller. I took C++ and Data Structure two years ago, but I am not sure how to start. Also, I...
[5 replies] Last: 8-bit Motorola 9S12 Microcontroller (by katz)
menu change runtime
 
Helo everybody! I'm writing to ask you some advices.... I'm programming in Visual C++ (ver. 6.0), MFC; in my application, I'm modifying the menu of the main f...
[2 replies] Last: Yes, very nice. Beg for help on the wrong board and, while you're at i... (by helios)
July 2008 Pages: 123... 10
  Archived months: [jun2008] [aug2008]

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