Beginners - August 2012 (Page 17)

graphics
 
Hi everyone I am using windows 7 ultimate my problem is whenever I wrote a programm of graphics in C using TCPP or any other C IDE I got no error till co...
[2 replies] Last: ntvdm.exe is an executable on .NET versions of Windows. It pertains ... (by closed account zb0S216C)
Passing argv
 
I am having difficulty passing argv using a custom class and then using the .size() function on it. I am declaring the relevant function as follows within th...
[2 replies] Last: Yes, I figured that out RIGHT after I posted this. I left the post in ... (by vckngs7)
Tic-tac-toe AI problems
 
Can any1 give anysuggestion on how to complete my ai? here's my code #include <iostream> using namespace std; char board = { '1', '2', '3', '4', '5', ...
[1 reply] : Why are you having a cin for a move that is not made by a human? Add ... (by kaseron)
Masking Passwords HELP NEEDED
 
Hello I am making a personal program that I can keep secret info, browse the web, play music, change the password, and a lot more. My problem is that when ent...
[10 replies] Last: I would use this: #include <iostream> #include <conio.h> #include <st... (by kaseron)
Problem with arrays
 
Hello here , i have an problem in c++ , am trying to print an array , this array: #include <iostream> int main(){ int example = {3, 6, 8, 1...
[4 replies] Last: I understood, thanks. (by cppbeginer123)
Can a derived class access protected variables of the base class?
 
A really horrible example off the top of my head (I know I wouldn't use this analogy for a class usually): class Base { public: Base(int a, s...
[6 replies] Last: Huh, that seems like strange syntax and I've never come across it befo... (by WhiteWind)
DIV/0
 
Is this enough to check for a divide by zero? double div(double numerator, double denominator) { if (denominator == 0.) return -1.; return numerator / ...
[3 replies] Last: Thanks. (by Stewbond)
Switch Statements
 
Hello. I'm creating a simple calculator application using Xcode and C++. I'm trying to have the user type in add subtract multiply or divide to do so. What func...
[2 replies] Last: switch doesn't work for strings, it can only be used with built in int... (by R0mai)
abstract via constructor
 
i want to make abstract class, but I usually hears that we can't do that without pure virtual function , but i'm trying to do that via constructor but without v...
[8 replies] Last: I think your view of what an abstract class is doesn't match the C++ d... (by kbw)
3 Questions
 
Hi I have made a simple code: #include <iostream> #include <limits> using namespace std; int main () { std::cout << "Please choose the program you ...
[7 replies] Last: http://www.cplusplus.com/articles/4z18T05o/ (by Moschops)
by dean
template specialisation
 
Hi, I am trying to specialise a template for the boolean type, but what I'm stuck with the multiple definition error: /home/atari/workspace/eclipse/cpp_epd...
[5 replies] Last: thanks Peter! (by dean)
problem using isalpha
 
i am using isalpha function in my program but when i input any special character between the string it does not show any error gotoxy(10,6); cputs("Name ...
[3 replies] Last: Your code depends on what is the last character in the string that is ... (by vlad from moscow)
Segment fault /w overloading Constructors
 
Hi, I'm starting with C++ and I've got some good experience with Java. I try to figure out how things work in C++ in contrast to Java... In the code below I try...
[2 replies] Last: Ah right... Thanks! I guess the this keyword cannot is not linked with... (by AirCoder)
by ar123
C++ Without Fear Exercise "Reverse program to print nodes in reverse alphabetical order"
 
Hello, As you can see in the title, there is an exercise that wants me to make this example: // Alpha_List.cpp : Defines the entry point for the console ap...
[1 reply] : You mean this: p_node = root; // Print out all nodes while (p_node) {... (by coder777)
linked lists
 
Is it possible to add or remove elements on a particular position in a linked list.
[2 replies] Last: Well I'm trying to write it myself, not using STL lists. Here is what ... (by naskopw)
correct use of recursion?
 
hello i just made a program that uses recursive functions. but i am not sure if this is really recursion or just something else. (i'm just trying to find out ab...
[8 replies] Last: ok thank you. (by gelatine)
by maroun
Function call from class
 
Hey all, This is the class: class Coogle { private: string s; public: Coogle(string s); ~Coogle(); void query(string line) const; int ge...
[5 replies] Last: @ToniAz - Yeah, I was referring to loadFile. (by MrHutch)
by maroun
strtok and srtcpy
 
i`v used strtok and strcpy but i have this error : warning c4996 strtok this function or variable may be unsafe. consider using strtok_s insted . to disable d...
[6 replies] Last: Can you psot your code if it isn't too big? And please wrap it with th... (by ToniAz)
project euler # 3
 
Alright, so I was doing some project Euler stuff and am on # 3. My code seems to work for other numbers, but when I do the number required ( 600851475143) I get...
[5 replies] Last: Thanks guys! (by eagleman)
by ar123
Weird *'s when compiling
 
I did this c++ without fear example where you write a program that prints the "Tower of Hanoi" puzzle in characters. My code: // Tower_of_Hanoi_Animated.cp...
[2 replies] Last: Since you fixed it you should mark the topic as solved. (by Forseth11)
August 2012 Pages: 1... 1516171819... 45
  Archived months: [jul2012] [sep2012]

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