General C++ Programming - January 2011 (Page 13)

by Lane
Calender program
 
Hi!! I want to write a calender program. Below is my code but the dates wont line up properly. any suggestions? also is it possible to make an infinite calender...
[2 replies] Last: Use setw to align. http://www.cplusplus.com/reference/iostream/mani... (by Return 0)
by Icenel
EOF
 
What is this ? while( ( grade = getchar() ) != EOF ) program get character and store it to () then store to grade but, what about EOF ?? End of File ? ...
[1 reply] : The expression grade = getchar() returns the value of grade, after t... (by rocketboy9000)
Programming technique
 
I am curious as to what others think of how I went about this: I defined a multi dimensional array, and then outputted it in the middle of a program. Instea...
[2 replies] Last: Of course, Thanks for pointing that out, the 'z'. I had left that in ... (by ProgrammingNoob)
GetHostByName() Runtime Error
 
Hi. I wrote a network program that sends a HTTP GET command and receives the page source code but I have a problem. When I use gethostbyname function, a runtim...
[5 replies] Last: As you can see in the comment in the code I posted - Your HTTP request... (by guestgulkan)
by oror84
[windows] problem with open file.
 
Hi, i have a problem. i have a file that there is a line in the file : #include "hello.h" i have to open the "hello.h" file and copy it to another file. i d...
[2 replies] Last: Just a quick question... is there a specific reason why you use C? We... (by hanst99)
stl vector iterator windows linux (1,2)
 
Hi, I encountered a pice of code that, to my surprise, behaves differently in Windows and in Linux and I would like to know your opinion on it. Thanks! ...
[23 replies] Last: Oh man, I just realized you can just do this: *p++ |= b; (by rocketboy9000)
by Sibuns
input data- read word by word
 
First of all sorry for my bad english... I will try to make not so many mistakes:D Ok i need to write a programs that reads some text from a file and then i...
[17 replies] Last: You didn't specify the namespace. You need to specify it like this: ... (by simeonz)
Secant Method ideas for a function
 
Hi there,i am new in c++ and i am learning by my self, from google, wiki etc. you know and I want to make some programs. first i want to make a program that c...
[7 replies] Last: Never mind.I started another project. (by JohnTaylor)
Body Mass Index class not working
 
The second constructor is not working for some reason... Header: #ifndef BMI_H #define BMI_H #include <string> using namespace std; class BMI { p...
[2 replies] Last: Ah...I see. Thank you for your help. (by kraigballa)
ntoa (number to ascii)
 
I'm making a templated function to convert a number of any type to a string. Logically it should work, but it doesn't. Does anyone see anything wrong? #incl...
[7 replies] Last: If you are going to specialize for integers, then just use operator% ... (by ne555)
compiling shared library with another linked
 
Hello Outline of the problem: Files (all in /vol/cuma/sandbox): 1. a.cpp, a.h, atest.cpp 2. b.cpp, b.h - file a.cpp is compiled to liba.so - file b.cp...
[no replies]
by hannes
graphics library to make widgets
 
Hi guys, I've made some programs with qt and wxxidgets so far, and i got the idea of making my own widgets with some kind of graphics library like SDL(this ...
[no replies]
by brad82
Multi-Connection Server Application
 
Hey All, At work we have a superbly crap application we use for alerting all staff with small notices (popups) and other communication utilities. I thought I...
[3 replies] Last: Thanks guys ill take a look! Much Appreciated. (by brad82)
C++ as front end to ANSI C
 
This is a bit on/off-topic. Cfront was Bjarne Stroustrup's prototype compiler that was implemented as front end to (originally non-standardized) C. In versio...
[no replies]
Ntest--An ultimate unit test framework for C++
 
Hi, everybody, I'm here to recommend a very nice, open source C++ unit test framework-Ntest, which I have developed myself. Ntest is deisgned in a simple, easy ...
[no replies]
by pizet
my own <vector>
 
Hello. I would just like to ask for an advise on how can I implement my own vector. I can't imagine doing the dynamic alocation, because I don't know how does t...
[6 replies] Last: Duoas. Thank you. (by pizet)
Video Tutorial question..
 
I was just wondering if anyone knew of a good site where video tutorials on classes, pointers, etc could be found. Thanks in advance
[3 replies] Last: Thanks for the posts (by kraigballa)
by Faim
Bonus in a game!!
 
I try to write a simple game.In my game i have businessmen .These businessmen have money but i want to change some of them's money randomly for a limited time.L...
[7 replies] Last: He must be simulating wall street :) (by budman85)
by primes
piggy bank
 
Welcome to primes Piggy Bank! Menu Menu Menu d: Deposit w: Withdraw s: Show total e: Empty q: Quit Please enter choice: d Number of 5 cents: 2 Number o...
[4 replies] Last: Then you have a lot more work to do. Work on your code some more and ... (by Return 0)
by Icenel
Swap between Chars
 
I make a program that can read a file and then save it to memory The memory used to print ouput on cmd. Swap between Integers going well(swap1 function), b...
[1 reply] : Line 4: Don't do that . Just return the choice to the main function i... (by Duthomhas)
January 2011 Pages: 1... 1112131415... 24
  Archived months: [dec2010] [feb2011]

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