Beginners - December 2010 (Page 18)

why?
 
I was going through tutorials, i thought intbilly ; = 2d array of 2 x 2, but when i compile it, it gives me 00D7138 which i don't know what is that. #include...
[1 reply] : cout<<billy<<endl; What is the output that you were expecting? It... (by ne555)
Trouble with Program
 
This program is supposed to Write a function that gets weight factor from the user and use that factor to return the planet (planets enum type) with that facto...
[6 replies] Last: I did that and your program worked fine. I got no errors (but I did ge... (by closed account D80DSL3A)
Test a palindrome
 
I got a problem finish my code. The purpose of the code is to test whether the user input or i may hard code the input is a palindrome. I got the hard part done...
[2 replies] Last: Like this? using namespace std; int main; std::string true,user... (by jimmy5023)
#define, void, return and int main()
 
Hi big guyz, i realy don't understand how the following works; #define, void, return, and int main(). Please get me out of this darkness.
[3 replies] Last: Great, i'm much grateful for your wonderful help Bazzy, i hope i will ... (by Lucky D)
by Patoto
Devc++_Allegro_HeaderFiles
 
Im using allegro, and im trying to add a header file to my code, but i get errors such as: [Linker Error] undefined reference to System::System() or [Linker Err...
[3 replies] Last: I dont understand how the header files work, anyone know about this? W... (by Patoto)
Arrays and Functions
 
I have a mess of code and can't figure out what I'm doing wrong. I'm still fairly new to C++ and just when I think I've got a grasp on it...BAM! I've forgotten ...
[9 replies] Last: OMG! That's so easy. I can't believe I forgot that. Thank you so much.... (by Zeppfan)
Calculating motion of an object?
 
I'm trying to do it myself right now, but there's a ton of things wrong with it - for example, the object won't slow down to a halt if I let go of the direction...
[2 replies] Last: Thanks, motion is still a little weird, but at least it slows down pro... (by pabloist)
Address of char array (1,2)
 
Hi, I create a char pointer, and then when I try to count the memory address of the first char, I get the entire string: char* test = "Testing 123"; c...
[23 replies] Last: When you declared test, you called it a char*. The operator turns it ... (by Zhuge)
by ndimos
Text Editor in C
 
Hi everyone! I am trying to start a text editor with "Bloodshed Dev-C++" in C language. It should be able to: --start by presenting a blank screen with a ...
[3 replies] Last: Not really. Depending on the GUI Toolkit you pick they each have their... (by Zaita)
Is my program complete?
 
I don't know whether my program is complete. But the question of this program is 1) determine whether it is a magic square 2)make sure all rows column and dia...
[1 reply] : Well. When you test it; does it satisfy all of the conditions you have... (by Zaita)
Translate this to c++ langauge
 
Please translate this to c++ languages int a int b int c if a, b, c is between 1 to 9 cout<<"this is good" else cout<<"not"
[5 replies] Last: http://www.cplusplus.com/forum/beginner/32971/ Already answered. (by Zaita)
Several errors with writing this reverse and increment function
 
I've been working on trying to figure out these functions for too long without any advice. Can anyone help guide me through how to fix these functions? I'm havi...
[3 replies] Last: What you should be doing is outputing the values you're getting; and t... (by Zaita)
finite differences need some advice
 
Hello, Could someone help with this. I am having trouble running a finite difference problem in c++. Here is the problem and my code is right below. Thanks in a...
[1 reply] : 1) Your code is not wrapped in blocks. And it's not formatted so it'... (by Zaita)
Making a c++ big project
 
Hello, i've been reading and learning a lot about c++ and i basically know how to read the syntax and can make a complex program. But i was wondering is there a...
[3 replies] Last: What you're asking for isn't something you can learn from a book. >... (by Zaita)
Game library problem
 
I need to get the program to let a user add a game remove a game and show the games and I am really lost and could use some help. I display the list of games...
[2 replies] Last: I'm mainly confused on how to get the user input with games.insert(ga... (by Robby McDonald)
how can i get the amount of lines of text does a text file contain?
 
Hey all, how can i get the amount of lines of text does a text file contain? like if say i have a file XXXXXXX XXXXX XXXXXXXXXXXX XX XXXXXXXX XXXXX...
[11 replies] Last: or you could load the file into a vector... vector<string> filet... (by closed account 3pj6b7Xj)
by Elbin
Error using fgetws with popen
 
Is it ok to read a process output with fgetws? I am getting segmentation fault when I try that. #include <iostream> #include <cstdio> int main() { ...
[3 replies] Last: Hi, I do not want to read a file, rather I want to execute a proces... (by Elbin)
tic tac toe
 
to start with i want to thank you for the help that you have given me already, also to let you know that i am trying to solve these problems for a good while be...
[3 replies] Last: your function is int display_grid(int* board ); The way the fun... (by firix)
by saif84
Passing elements into Matrix
 
Hey Guys, I'm trying to implement a function in openCV which is find homography between 2 frames and the inputs to this function are matrices but I have a set...
[3 replies] Last: Please read the rules of this forum (by firix)
by Rave
Program Out Put Does Not Make Sense!
 
I try to test what the output of this program would be, but it doesn't make any sense, Code: #include <iostream> using namespace std; //Why the...
[4 replies] Last: actually its incorrect, the op= is envoked twice, for one = since ther... (by Rave)
December 2010 Pages: 1... 1617181920... 35
  Archived months: [nov2010] [jan2011]

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