Beginners - December 2010 (Page 14)

by lare26
Strange beeping console
 
Whenever I run this code, the console scrolls through a bunch of garbage and beeps annoyingly at me. The beeps are fast and loud. When I change it from (rand()...
[9 replies] Last: Holy Cow! I changed a lot. I got the beeping to stop after pulling out... (by lare26)
by Rave
How to change the value of an argument, in a function?
 
Hello, the Question goes like this:: A function update_pointer takes a format argument called p of type int* and must change the value of this argument. Prov...
[11 replies] Last: @ rocketboy9000 ok, now I see what you mean (by coder777)
by firix
Visual studio 2010 error!!
 
Hi , I am using Visual Studio 2010.I am writing code.arrow marks out. as follows how I solve this problem? How can I remove this arrow marks? ...
[7 replies] Last: What ?? (by firix)
by Kurisu
Better "Password"?
 
#include <iostream> #include <string> #include <Windows.h> using namespace std; int main() { string x; cout<<"Enter ADMIN-KEY: "; cin>>...
[1 reply] : Actually theres no better way than to use encryption method for passwo... (by thecodewall)
Bit wise operation not working :(
 
I am trying to print the bits of a number. I am doing a logical 'AND' of 1 with the number to extract the bit. But I receive special characters. Infact a bas...
[2 replies] Last: thanks. That fixed it. (by cooltoad)
What's not right?
 
what is wrong with my program? And how can i fix it? I am trying to write a program to test whether the given matrix (i hard code it) is a magic square or not. ...
[5 replies] Last: I read up on magic squares, since I wasn't sure what they are! I think... (by closed account D80DSL3A)
by corbee
can't understand the code
 
Hi, I read a book about c++ and am having trouble digesting this function: void eatspaces(char* str) { int i = 0; // 'Cop...
[2 replies] Last: You mean that example isn't really a good practice example? Do you thi... (by corbee)
String Scanning
 
#include<stdio.h> #include<stdlib.h> #include<string.h> struct student { char name ; char id ; float cgpa; int pref ; ...
[1 reply] : Hi, What is happening is that scanf is leaving behind a linefeed wh... (by shredded)
by firix
template sort function
 
Hi, I tried to write the sort function for vector <Record> but I not complete it. Can you help. thanks in advance.. class Record{ int count; i...
[3 replies] Last: I wrote the following. template<class Iter, class functor> void... (by firix)
problem with homework
 
the problem is i cant do it its verey hard i cant understand area of Trapezoid= (b1+b2)*a\2 area of hexagon = 3*sqrt of 3 \2 * L^2 area of...
[4 replies] Last: IMO, I think the OP might have a legitimate right to complain here. Ba... (by Computergeek01)
by zacaps
ifstream "reset"
 
Hello, I can't find anywhere what the right way of writing this is. ifstream arx; char pass ; int i; arx.open("loginfile.txt"); for (i=1; i<...
[2 replies] Last: It works, thank you so much! The reference section is very helpful ... (by zacaps)
else problem
 
Hi, I have some problem with my programing and I could use some help. I wonder why my else phrase does not work. #include <iostream> using namespace st...
[3 replies] Last: thank you very much (by Larsson)
by Taboo
Functions
 
OK, this code works as it is, but I need to modify it so that it uses a function to break the users number into two pieces. Can someone help me break the users ...
[18 replies] Last: I think he has to do it mathematically. (by chrisname)
array and function issues
 
i'm working on a program that allows the user to enter 10 numbers those numbers are stored into a array, once stored into a array the average of those ten numbe...
[7 replies] Last: hey guys thanks for the help if another person says it work i'll belie... (by winterjolt06)
boolean palandrome
 
This code always return to true, how can i fix it? and what's the problem? #include <string> #include <iostream> using namespace std; bool Function(std:...
[2 replies] Last: Hi again, Ive altered the code so that function is recursive and... (by shredded)
by firix
generate_n function error
 
Hi guys I get an error when I run the following code. I removed the generate_n function. code working. Where am I doing wrong. thanks in advance. ...
[1 reply] : You're using generate_n the wrong way. look at this http://www.cplu... (by coder777)
In search of the best algorithm
 
I am in need of best algorithm for a problem. Problem: There are two arrays array1 and array2 each containing thousand elements. The common elements between bo...
[2 replies] Last: I dont know anything about C++..can I please have the algorithm in C??... (by vinaynaikwad)
strange behavior when const class objects involved with constructor?
 
Hi, all: I come up with this problem when I was reading the replies to my previous post. I have the following simple code class A { }; int main() {...
[2 replies] Last: class A { }; int main() { const A a; return 0; } is suppos... (by coder777)
C++ IDE with FTP support?
 
I am in desperate needs of a C++ IDE with FTP support. I looked at Eclipse, but it seemed too complicated for me to install the FTP plugins, which appeared to r...
[3 replies] Last: What source control system are you using that requires FTP? Most stand... (by Zaita)
finding duplicates
 
hi all i'm working on a project that searches for valid email addresses, identifies and removes duplicate addresses, and then posts them to a separate file. ...
[2 replies] Last: All you need to do is convert each email address to lowercase, then ad... (by Zaita)
December 2010 Pages: 1... 1213141516... 35
  Archived months: [nov2010] [jan2011]

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