Beginners - April 2012 (Page 47)

C++ Help??
 
Companies that issue credit cards often use algorithms to create credit card numbers that people will have difficulty generating at random. One approach is to ...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/67884/ http://www.cplusplus.co... (by Shinigami)
Array Help For Grades
 
Generate a text-based histogram for a quiz given to a class of students. The quiz is graded on a scale from 0 to 5. Write a program that allows the user to ente...
[1 reply] : http://www.cplusplus.com/forum/beginner/67884/ (by Shinigami)
how to write a function to round a float
 
double round(double d,unsigned pp) { //.... } pp means decimal place for example: when pp = 0: 2.5-->3 2.3-->2 when pp=1: 3.862-->3.9 -3.869-->-3.9 Thanks...
[19 replies] Last: Yes, but these bugs I think is because it overflow int. change the int... (by paschen)
Inputting a two words.
 
Can someone please tell me what i am doing wrong here. when i changed cin>>stuinfo .name to getline(cin,stuinfo .name); . it's skipping the getline(cin,stu...
[2 replies] Last: ah i see the problem now, thanks a lot! :) (by Fransha)
Using char* with a std::map
 
Hey guys, stuck on a problem hope you guys can help with. I have a file with some data that I am storing into a map. Part of that data contains a "time" fiel...
[3 replies] Last: Side note: this changed last year, local types are allowed as template... (by Cubbi)
not working in dev c++
 
but working in microsoft studio #include<iostream> #include<fstream> #include<string> using namespace std; int main() { ofstream outfile; stri...
[4 replies] Last: Ah! yeah good catch. <cstdlib> has the system definition. Good eye,... (by Disch)
Writing functions with arrays.
 
Hi! I wonder what the double V stands for. And also why do i write double X . What i can see is that i call the function enter_seq and there i have a array...
[4 replies] Last: [quote=Schlibib] double V ...is equivalent to: double *V . When yo... (by closed account zb0S216C)
getting something from a file
 
let's say i have a file... and i have 4 functions, in the first two we get two arrays of numbers and on the other two functions we save and load the arrays at/f...
[no replies]
Google Code Jam problem
 
I'm practicing for the upcoming Google Code Jam but I'm stuck on one of the problems: http://code.google.com/codejam/contest/433101/dashboard#s=p0&a=0 I thou...
[no replies]
Operator Overloading Error
 
Hello, I am somewhat new to C++ and trying out some operator overloading. I am getting some errors which I can not understand why. Here are what the errors look...
[2 replies] Last: I can guess that you are using a MS VC++ compiler. It is a bug of this... (by vlad from moscow)
if else
 
So i am almost done with my program I just need to print the correct amount for the case that the entering and leaving dates are in different months. I am not s...
[7 replies] Last: It is good that you understand :D (by Shinigami)
"Missing default parameter" using functions
 
The object of this assignment is to ask the user whether they'd like first class or economy seating for a flight, and get their input. The program should assign...
[3 replies] Last: #include <iostream> #include <string> // my function interaction ch... (by ui uiho)
by thaque
Need some help saving [writing] to a text file..
 
I've created a "User Class" for a program I'm writing which stores the username, password, etc.. for users of the program. When users log back into the program,...
[3 replies] Last: i would make the authentication class with a constructor that uploads ... (by ui uiho)
encrypt and decrypt
 
I wrote a program like my teacher asked to encrypt a message... I only used lower case... I have to also use upper case letters.... and then add a decryption pa...
[3 replies] Last: #include <iostream> #include <ctype.h> int main(){ char myc... (by ui uiho)
by j911g
Help with self made vector class
 
Hello all, first time posting... So my professor assigned us the task of making our own vector class, and I'm having an issue with the member function reserv...
[3 replies] Last: Thank you both for the reply, I will see about reworking my constructo... (by j911g)
by Neema
How do I terminate infinite loop for printing ascii clown jgs?
 
Hello, I have the following code so far, but it goes into an infinite loop when executed. Could someone please review the code? I'm not certain how to get th...
[3 replies] Last: That's because you are returning from main() after getting N. After yo... (by Zhuge)
sort first name by alphabets
 
Hi, im currently facing the sort first name according to the alphabets at Edit() part. i want my name show and sort by first name according to alphabets. need s...
[1 reply] : First and foremost, use code tags. Most of us won't read a post if th... (by webJose)
Need help with C++
 
I desperately need help with the following: "Suppose a cuboid has three sides length, depth and height. Write a C++ program that reads from keyboard these 3 ...
[3 replies] Last: I finally worked it out, but thank you for your help. This seems to w... (by Sloppos21)
blank output need help asap
 
this is my code i try to run it it just give me blank screen no out put when i debug i get this statement computerprogrammin13.exe': Loaded 'C:\User...
[5 replies] Last: ummm computerprogrammin exist in my visual studio 2010 /project flod... (by AMANPREET K)
AVG says my programs are viruses
 
When i do a virus scan using AVG it says that my programs are viruses and doesn't let me open them, I'm using codeblocks and it says that the .exe file in debug...
[18 replies] Last: That's generally incorrect. Well over a majority of what's considered ... (by closed account S6k9GNh0)
April 2012 Pages: 1... 4546474849... 66
  Archived months: [mar2012] [may2012]

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