Beginners (Page 50)

by h4ever
floatf - wrong result
I am getting 0 instead 1 why? H=1; data->row_pointers =(unsigned char)(roundf((H/360)*255)); ...
[5 replies] Last: OK, so what I must do to get 1? H=1; data->row_pointers =roundf(H*0... (by h4ever)
by shola
How to get rid off the warning
When I compile my code, I receive this warning, "tp.cpp: In function ‘int single_roll_sim(int, do...
[4 replies] Last: At a job long ago part of the coding standard was never to have more t... (by tipaye)
by sekmo
Converting a string into binary using functions
So my class assignment we had to convert a string to a set of binary. My original code is as follow:...
[2 replies] Last: There is an argument I've observed several times. Most likely he mea... (by tipaye)
by h4ever
How to pass 3 bytes to buffer in one command?
How to pass 3 bytes to buffer in one command? // image_buffer is type unsigned char* of RGB im...
[7 replies] Last: I am watching it in Watch panel while debuging. I see I must to switch... (by h4ever)
by markr
how to fix this CString not working
I have a form with a label. I use the openfile dialog to get a filename and save it to the label...
[4 replies] Last: This version is using Visual Studio Express 2010 - the C++ from it. ... (by mutexe)
Code to check if characters on string are alphabetic
I need to write a program that will tell me if all the characters in a string are alphabetic or not ...
[10 replies] Last: I think I got it now. Thanks for the help! (by CNerd2121)
Pointer algebra: pointer to an array
Hi, I always get confused with pointer to an array. So, I made some examples showing my confusion. ...
[2 replies] Last: Thanks, MiiNiPaa. (by dkumar3)
Help sending size of a string into a file
Hey everyone, I cant figure out how to do this, i dont know the name in english for this technique b...
[3 replies] Last: @ne555 no I didn't. The thing is that I dunno how to do what I need, I... (by dualdark)
pointer to pointer
Hello forum, I am going through a functional snippet of code that demonstrates the idea of pointe...
[2 replies] Last: What may (or may not) clarify is type alias : using Column = int *; ... (by keskiverto)
combining c-strings and outputting the final result
Hi there guys im trying to combine the first,last and middle names so that they are organized as fol...
[3 replies] Last: example by looping #include <iostream> #include <cstring> int main()... (by anup30)
Running a program in Dev C++
Okay, this is my first time using this program and I have having a lot of issues with it. My main pr...
[4 replies] Last: why not use mvs? (by Lorence30)
by AVM8
How to be good in coding and good in c++?
[6 replies] Last: EssGeEich thank you my friend. (by AVM8)
by AVM8
footballer 1
Write THREE (3) classes in a file named classA.h, where class footballer functions as a base class,...
[5 replies] Last: There are 3 tables given. We must construct a header file named hidden... (by AVM8)
by lew13
Dynamic Arrays help please
So I am writing a program for class and the program takes a number of random ordered pairs then calc...
[9 replies] Last: fun2code - I didn't need to save them to charArray just print them, if... (by lew13)
by kiri
iomanip fixed and right define.. Cant find!!
How do I find what exactly this is? I looked under iomanip and did not see anything about fixed and ...
[2 replies] Last: Thank you (by kiri)
Problem with string erase method
I threw together a quick little program just to test/improve something I am currently working on. W...
[7 replies] Last: #include <string> #include <cctype> std::string filter( std::string ... (by JLBorges)
by jjj
age calculator
hi i am new to programming ans i need help with this question can someone please help me out Erni...
[2 replies] Last: Look at the sample input. Your program should follow this form exactly... (by dhayden)
help with problem from class
Can someone please help? I don't know what I'm missing. Everything seems to run correctly but it giv...
[1 reply] : Nevermind, I'm a dummy. I figured it out. (by josmobn)
Instructors code is wrong?
I'm almost certain that you can't have a member function inside of class Circle that returns Circle....
[1 reply] : You are wrong. It's perfectly okay to have a member function that retu... (by dhayden)
by shola
Infinite Loop problem. Help me!
I am trying to write a code which will have an array of 2 elements. A user enters initial values for...
[2 replies] Last: Thank you very much! I'll polish my code:) (by shola)
Pages: 1... 4849505152... 55
  Archived months: [jan2015]

Cannot post in this page. To post a new message, go to the first page.