General C++ Programming - March 2009 (Page 5)

Catching error messages before they reach the screen
 
Hello. I'm writing a program and at various points throughout the program files are opened that don't exist. Basically i'm using outFile.open(...) on a file t...
[13 replies] Last: Thanks, I'll try and implement this instead. Is this code platform i... (by aeronet)
Portability issue
 
Hi all, I have made a project on C++. It is working perfectly fine in machine having 32-bit OS. But its creating problem when running it in 64-bit OS. It's a...
[2 replies] Last: I think there is a tool called flexelint that works on C++ code. (by jsmith)
In ASCII file manipulation
 
I need to create a program which involves ASCII input and output file as well. But I'm stuck in how to do this, so any help (code) would be appreciated. Thanks!...
[no replies]
pass by value
 
class Sample { public: int *ptr; Sample(int i) { ptr = new int(i); } ~Sample() { de...
[1 reply] : There is a problem. The default copy in Sample will copy the value ... (by kbw)
by zohar
Sudoku validator for display a larger grid
 
I have an issue with my Sudoku checker... two questions actually... I will give you the code so far as to what I have. void printMenu(); bool readGrid(str...
[1 reply] : On your first problem. The source of that problem is in your readGrid... (by jRaskell)
ASCII Characters
 
how do we out put the ASCII character of #33? for example, #33 is ! output is 33 !
[1 reply] : std::cout <<(char)33<<std::endl; OR printf("%c\n",33); (by helios)
by junit
poker program
 
this is my code. is anyone willing to help me modify it to make it deal two hands and determine which hand is the winning hand? i know how to make it deal 10 ca...
[no replies]
by junit
poker program
 
this is my code. is anyone willing to help me modify it to make it deal two hands and determine which hand is the winning hand? i know how to make it deal 10 ca...
[no replies]
how to writeh C++
 
hi !! can some one help me too Write a program like patchwork that takes two characters c and d, and a positive integer n and displays the following object made...
[3 replies] Last: close enough but a little change... it should be like this: void ... (by writetonsharma)
Socket port destination problem
 
Hi everybody, I have an application where two different socket connections run in order to communicate with a machine. Over the first one (UDP) I send a requ...
[3 replies] Last: I think it's a synchronization problem because I use a mutex for the s... (by radeberger)
SIMPLE file io
 
i have a problem with reading a file and storing it in a dynamically allocated char array: myfile.seekg(0,ios::beg); while(!(myfile.eof())) { my...
[1 reply] : show me your entire source. I don't know b, MSIZE, etc.... So I ca... (by higasijoe)
I have a question in keyboard input
 
I wish to know a input key info immediatly when it's being pushed. When we want to know how key is pushed,We used to functions like getchar(), cin.get(), get...
[4 replies] Last: oh... :o (by writetonsharma)
Data Structure
 
Well...Is it possible for somebody to explain this a little more in detail and use general terms to clarify it? I am kind of confused with it. I have read a lot...
[9 replies] Last: sumbody plz he me out.i really dont know how to answer this ---------... (by syadz)
infix to postfix
 
I have written a program to convert from infix to postfix but it is not working properly.... #include<iostream.h> #include<conio.h> #include<stdlib.h> ...
[16 replies] Last: great..!! :) (by writetonsharma)
I have a question for operator overloading in structer
 
// for_each example #include <iostream> #include <algorithm> #include <vector> using namespace std; struct myclass { void operator() (int i) {cout...
[2 replies] Last: Thank you jsmith :D Your answer is very clear that help me a lot. I ... (by higasijoe)
who took conio.h place
 
I need these functionalities ...... : clrscr() .... getch() gotoxy(x,y) textcolor(n) textbackground(n) ..........................etc if it's possible...
[2 replies] Last: Use the Win32 Console Functions http://www.google.com/search?btnI=I... (by Duthomhas)
matrix class and overloaded operators
 
I'm building a matrix class and got stuck trying to provide the functionality to access and define subsets of the matrix. For example, changing the fifth row o...
[8 replies] Last: wow. it finally works. thanks much jsmith. For anyone interested he... (by elshrew)
CODE::BLOCKS vs MS C++ 6 (1,2)
 
hi guys .... I'm sorry to ask this kind of question .. , but I am in a bad really bad sitiuation ...... guys .. I have gave a student a word that i will sol...
[21 replies] Last: vbnetskywalker asked: some how I want to know what is the problem ... (by guestgulkan)
program to determine amount of letters, words and lines in a text file.
 
Hi guys, Sorry to bother everybody, but I'm afraid I'm here again asking for advice. I need to make a program to count how many lines, words and letters are...
[3 replies] Last: It doesn't matter where you post, only post once. (by eker676)
C++ Coursework
 
I have a really long coursework about creating an FX audio unit, is anybody here able to help me with it, if so ill get to pasting the code, just let me know im...
[4 replies] Last: Upload it to a file hosting site and post a link. (by eker676)
March 2009 Pages: 1... 34567... 21
  Archived months: [feb2009] [apr2009]

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