Beginners - August 2013 (Page 19)

Dealing with Functions
 
I am trying declare and define the functions but I am getting error 'string' was not declared in th...
[1 reply] : You didn't include the header. #include <string> edit: A... (by AbstractionAnon)
Quick question about classes
 
someone posted a link ( http://qt.developpez.com/doc/4.7/widgets-calculator/ ) to that sight about m...
[no replies]
int main() versus short main()?
 
In many books/tutorials I find that int main() is always used instead of short main() . Is it ...
[6 replies] Last: BTW, don't return negative numbers from main(). It attracts bad karma. (by Duthomhas)
Array Initialization
 
I am very new to the C++ language and have started learning by teaching myself using a book(C++ a be...
[2 replies] Last: When describing an array of X arrays of Y something, people often vie... (by SoftMOUNT)
SDL make an movable Image
 
I'm trying to load an image and move it with the arrow keys on the screen. I'm sure its only a litt...
[12 replies] Last: Yep I know. Please hit me with something for my stupidity. thank you ... (by theblackdog)
Not factoring in uppercase...
 
Here is a code that I previously worked on. I couldn't get the part about ignoring or tolower conver...
[3 replies] Last: Change cout << tolower(str ,loc); to str = tolower(str ,loc); cout... (by kevinkjt2000)
Faster way of scaling-up an image before render? (SDL)
 
Hello, I have a small, simple graphics project I'm working on, and I'm using SDL. Currently, the "d...
[5 replies] Last: I haven't looked at SDL 2.0 in great detail so I can't say whether or ... (by Disch)
compute short, int, long using pow
 
This was a program I worked on early on in the semester. I was told that Unsigned max values should ...
[4 replies] Last: Check out http://www.cplusplus.com/reference/climits/ This may help y... (by Stewbond)
returnning passed array from a function
 
I want to pass a 2dim array called aArray1 to a function. The function job is swapping 2 rows of a...
[3 replies] Last: You can return a bool value from the function that will report whethe... (by vlad from moscow)
Extracting Numbers From A String
 
I am trying to write a parser program. In this program it will read a string similar to. #46 = IFC...
[2 replies] Last: You can make a std::istringstream from a string (the number in string ... (by LB)
defining constructor outside the class
 
can we define overloaded constructor outside the class ? if yes then what would be return type in d...
[2 replies] Last: got you thanks! (by hellcoder)
benefit of constant member functon
 
is there any benefit (in sense of running time or anything else) to declaring a member function or ...
[3 replies] Last: is there any benefit (in sense of running time or anything else) to d... (by andywestken)
memory allocations
 
in this code have we allocated any memory for string? how does the pointer remember the complete st...
[10 replies] Last: Both the compilers are gcc-4.8.1 I did not think about the read only m... (by kevinkjt2000)
by jenaf
C Noob question: scanf("%s") leaves trash in stdin
 
sorry, I know this is kind of a standart question but: char *filename ; char filetype; printf...
[3 replies] Last: the char * was a result of me wanting to malloc first and then decied... (by jenaf)
How to output Text with SDL2
 
Hi everyone, I wanted to know if anyone could help me out with something. I would like to outp...
[no replies]
Visual Basic
 
So today, I went to my programming class for the first day and asked the teacher what language we wo...
[3 replies] Last: You can hand write code in VBA. It is not too difficult. (by kevinkjt2000)
help!
 
"no previous prototype for function 'addition'" it doesn't stop the program from running successfull...
[7 replies] Last: [quote=man] -Wmissing-prototypes (C and Objective-C only) Wa... (by ne555)
someone explain this code for me please!
 
hi, so i'm currently reading Beginning c++ through game programming, at the end of chap.4, he writes...
[3 replies] Last: Thank you so much both of you, now i understand :-) (by Uk Marine)
Noob question
 
sorry it is a noob question i installed visual c++ 2008 but i am unable to compile hello.c program i...
[9 replies] Last: I would also recommend mingw fow Windows users. My personal editor is... (by kevinkjt2000)
memcpy failure
 
Hello forum, I am having a segmentation fault with the following memcpy operation: cons...
[9 replies] Last: The bottom line is that memcpy on any complex type is not safe. Even ... (by Disch)
August 2013 Pages: 1... 1718192021... 51
  Archived months: [jul2013] [sep2013]

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