General C++ Programming - September 2011 (Page 11)

by Srija
Largest Palindrome of two digit numbers
 
HI everyone the below program is to find the palindrom of the product of 2 digit numbers(upto 10*11 for trails). #include<iostream> using namespace std; in...
[3 replies] Last: but res1 has the largest palindrome, right?? so after two loops in mai... (by piyushkumar)
by MR YAJ
How to determine the highest value entered in array
 
I would like to ask help from you guys how to determine the highest value entered in an array. Just simple arrays.
[1 reply] : You should post this kind of question in the 'beginners' section. And ... (by hanst99)
by Ali89
Different linker error ! (1,2)
 
Hi there, I get the following linker error when I try to print GaliosField elements in my code !. Undefined symbols: "galois::GaloisField::~GaloisField...
[26 replies] Last: If you are somehow using gcc you would want to create a library for ... (by hanst99)
need help for a normal question
 
What is the result of the expression a / b, if both a and b are int variables, and a's value is 9, and b's value is 5 ?
[5 replies] Last: :-S I think Galik just gave away a quiz question! (by webJose)
Moving contents of an array to another array
 
Hi everyone, I am basically going to be picking apart a c-string that contains words and putting ONLY the unique words in a 2D array of char, in such way that t...
[3 replies] Last: Also, use strtok_s() if available. I still don't know if it is Micros... (by webJose)
sending integers in winsock UDP
 
Hello everyone I'm trying to learn Winsock but I'm having few problems. What i want is to send an integer that contain a number from the server to the client...
[6 replies] Last: WOW i did it xD the server sent 550 and the Client received 550 :D LO... (by Fantasy)
Code doing infinite loops. Please help!!
 
So I was asked to do a programs that would calculate the amount of money it would cost to make a long distance call. We were given 3 scenarios. (You can tell fr...
[2 replies] Last: Firstly,use [co de] Code here [/co de] tags. Now, looking at your co... (by Nisheeth)
I NEED HELP ASAP
 
I feel like this code is write but for some reason i am getting a sum in the int IsPerfect() function that are not even close.... the program is supposed to pro...
[2 replies] Last: it prompts the user for input, i just figured it all out, was missing ... (by wtfshawn)
Help on Multiplication table
 
Here is the problem. Whenever i input something less then 10 it works fine except i get the press any key thing 2 times, any input above 10 i get weird stuff. A...
[1 reply] : I don't see anything weird in the display, except that after the digit... (by whitenite1)
Coding Eight Queens 2 Dimensional Problem
 
Hey i have been trying to code the eight queens 2 dimensional array for awhile but i cant seem to get it correctly, please i will need some assistance from you ...
[9 replies] Last: You'll need to create your own function for that: void print(int b... (by shacktar)
Comparing Characters in an Array
 
Okay, I am trying to create a cipher. This cipher must be available for different alphabets. The user is prompted to enter the number of characters in their alp...
[5 replies] Last: simply put the abstraction is this: #include <string> #include <ios... (by Azagaros)
Character array problem
 
I have to write a program that reads from a text file. It needs to read a value that is going to be a boolean value. When it reads from the file, "true", '1', a...
[3 replies] Last: I figured it out; thanks anyways. (by mofosho)
Predicate for STL algorithms: template function vs functor
 
I found for such predicate, both of the following works: // template function template<typename T> bool Pred(const T& x, const T& y) { return x == 3*y; ...
[3 replies] Last: I have used functors twice and the algorithm I used took them by value... (by webJose)
Can't get 'GetKeyState' to work..
 
I am trying to use 'GetKeyState' commands in my program, but when I try compiling, I get these link errors. I do not understand why, since I had downloaded anot...
[11 replies] Last: Actually, I have ONLY compiled in the IDE. And I did load it as a win3... (by whitenite1)
Multimap Question
 
Hello World question in cplusplus.com I am trying to create some sort of multimap (int, pair <string, string>); I succeed I wish to know how to multimap.ins...
[2 replies] Last: Thanks That helped faster than expected! (by sarmedgeorge)
by Srija
Is It possible for while loop in for loop????????
 
hi everybody I Have a code snippet as #include<iostream> using namespace std; int main() { int mul,j,k,res=0; for(int i=1;i<5;i++) { for(j=1;j<...
[3 replies] Last: No, not possible in c++ I think. edit: wait that's totally possible. (by ceruleus)
timer
 
Hi, I am working on a socket programming code and I need to modify part of it. In the code there is a line where a process receives a message : receive(sour...
[2 replies] Last: Sounds complicated. Presumably the program is blocking on receive - i... (by mik2718)
Object as private member of a class
 
Hi everyone, This is something that I have encountered for the first time and have spent some time trying to figure out how this would work. So, the problem ...
[2 replies] Last: Yes, parameterized constructors was the issue. Thank a lot for helping... (by NineTailedDemonFox)
Writing at specific coor in console
 
I'm trying to write at a specific xy coordicate in the console. I'm using Microsoft Visual Studio and conio.h won't work when I try putchxy. So, how can I...
[3 replies] Last: Also posted recently: http://www.cplusplus.com/forum/general/50583/#ms... (by Duthomhas)
by Srija
Accessing Classs Variables
 
hi is it possible to use the class members( which are declared as public) in the main function????
[4 replies] Last: You can do this but your O-O prof will tell you off ! Object orientat... (by mik2718)
September 2011 Pages: 1... 910111213... 31
  Archived months: [aug2011] [oct2011]

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