Beginners - April 2009 (Page 4)

by Ek0
Printing a vector of strings?
 
Hello, How can I go about printing a vector of strings. For example, if I wanted to print the strings (cards) push_backed to vector p1. I believe I have ...
[6 replies] Last: Thank sounds like an amazing exercise. Im going to do that. :) Als... (by Ek0)
What is the problem in my code?
 
#include<iostream> using namespace std; class list { public: int value; class list* next; }; typedef class list node; typedef node* link; class li...
[no replies]
by fabss
Intoduce my self
 
Hai my name: fabs country : indonesia was born : 12 june 1991 iam newbe. and realy wanto learn C++ please. lead me
[no replies]
by omk
ios::app & last row :S
 
Im trying to append data in a file by going to the last row of the file. Im reading data in with getline( *in, string); and then saving all data in those files ...
[2 replies] Last: Sigh.... Its cause of another function Im using that is trying to take... (by omk)
by masiht
operator overloading
 
Can anyone please explain me what is operator overloading.I read the tutorial here and I got that It can add, subtract different types of data for class or stru...
[6 replies] Last: Here's a breakdown: The built-in C++ operators normally only work o... (by Disch)
by um0123
2 + 2 = 5
 
me and my friend just read the novel 1984 in english and i want to prank him; in this novel 2 + 2 = 5. heres my code: // 2 and 2 is 5 #include<iostream...
[16 replies] Last: #include <iostream> using namespace std; int main() { do{ ... (by jloundy)
searching text file??
 
This is a question about my homework, but all i need is some guidence. Im writing a program to which i am writing zip codes and there according city to a text f...
[no replies]
by Ek0
IOstream compiling issue?
 
ACK! Thank you Helios. I cant believe I didnt see that.
[1 reply] : cout >> "One moment please while we shuffle the deck."; Should be: c... (by helios)
by MatieA
using static_cast
 
Hi all, This is supposed to be a problem to convert temps, and I am supposed to use static_cast, but I'm missing something here. The math is not coming out cor...
[6 replies] Last: Ok, I see what you're getting at, but honestly don't see how to chang... (by kempofighter)
power and sqrt
 
#include <iostream> #include <math.h> using namespace std; int main () { int a = 5; int b = 5; int c; a = sqrt(pow(a, 2) + pow(b, 2)); cout << c; r...
[2 replies] Last: thanks, that did it :) (by Xanthus)
by dkaip
ascii of wide char
 
Hello. I have a problem. the ascii code in unicode of ἶ is 7990 in Greek language. I am trying to take the 7990 on screen and i can't. Any help? Thank's J...
[6 replies] Last: Thank's You help me a lot, not only this time. Good day. Jim (by dkaip)
by Peyton
atof and vector subscripts problems
 
Hi, I'm having 2 problems with the following function: void readData( vector< vector<double> > &Vector ) { while ( getline( inFile, line ) ) ...
[2 replies] Last: Thanks Bazzy, it worked :) (by Peyton)
by jayt
typedef ?
 
Hello , Can anyone please tell me why and how do we use typedef ???
[2 replies] Last: http://www.cplusplus.com/doc/tutorial/other_data_types/ (by Bazzy)
if else statement ????
 
I`m trying to to use if statement but something going wrong. statement must be 2 steps IF There is still room in the array and IF there is not an Appointmen...
[3 replies] Last: sorry for my codes i tryed to clean a bit. its not checking if the... (by pczafer)
by jayt
how does this program work
 
Can anyone please tell me how is the answer of this program 8 ? #include<iostream> using namespace std; int unknown(int x) { int result; //return...
[7 replies] Last: these are not my homework. I have a test of recursion so I have to pr... (by jayt)
by jayt
what is wrong with this program
 
Can anyone please tell me what is wrong with this program ? #include<iostream> using namespace std; void write_vertical(int n); int main() { cout<<"...
[6 replies] Last: Thank you kevinchkin and daeiros!! you have been a great help. @... (by jayt)
Prob with an Array
 
Hey all Im trying to convert a lower case string to all uppercase using the ascii table.. I ask the user to input a string which i then put into an array of...
[2 replies] Last: Since this is C++, you should be using std::string, not character arra... (by PanGalactic)
by jayt
program giving error
 
I made this program and its not working , Can someone tell me what is wrong with it. #include<iostream> using namespace std; unknown(int x) { int r...
[7 replies] Last: hahaha sorry sir i got it you are great i dont know how i made th... (by jayt)
by jeysel
Q & A PrgRam.
 
hey guys. I wanna ask something. how to make a program that will ask a 1 or many question?if the answer is correct it will counts a points and if it is wrong of...
[1 reply] : Is there any particular part of the program you're having trouble with... (by helios)
Odd magic Square problems-struggling with it
 
i've been struggling with it for the past week, i've done all of the coding, but it keeps giving me errors, any insights would be really appreciated. ( Sorry...
[8 replies] Last: http://www.codeproject.com/KB/recipes/Magic_Square.aspx go there, c... (by pacemaker)
April 2009 Pages: 123456... 28
  Archived months: [mar2009] [may2009]

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