Beginners - March 2012 (Page 44)

programming
 
how to make a source code??
[1 reply] : Go troll elsewhere. (by webJose)
How to make File Copy Protect using WIN32
 
Hello.. I have created a file using Core WIN32 & code is like this : HANDLE hFile = CreateFile("E:\\FileName123.txt", GENERIC_READ,0,0,OPEN_ALWAYS, ...
[no replies]
srand and random number generator
 
Let my preface by saying that i haven't programmed in about 6 years. I just started a couple days ago so I realize that my code is inefficient. In essence I...
[3 replies] Last: ldm is right, if you have srand(time(0)) in your loop, then your ra... (by Stewbond)
Trouble Linking
 
Hello! I'm having a little problem with my program, which I believe may be due to a linking error. The error I receive when I try to compile is: 1>main.obj : ...
[2 replies] Last: Thank you! That fixed it. =] (by Ranger1)
Stack problems - Print bottom and smallest elements in a stack
 
Hi, i'm trying to write this program that uses a stack. Im just confused on how to create a function to print the bottom element in a stack. What i tried on my ...
[3 replies] Last: Thanks, that was a lot of help. Ok, so my smallest function now looks ... (by Grimlocke46)
weird substring error?
 
hello all, this is my first program in C++ its supposed to find the distance between two coordinates in the form (x,y) when i substring the 'y' value, it keeps ...
[4 replies] Last: hmm thats weird. in visual C++ it works with void and without cstdlib.... (by mattrob)
by xsemel
interesting problems
 
ok, im making a function that is supposed to solve a maze. the display function works and everything else works, except the solve. the code for the solve functi...
[4 replies] Last: using just '=' doesnt compare anything at all, writing if(x = 2){} s... (by Need4Sleep)
Simplifying an Array
 
Hello, I'm trying to figure out how to simplify an incredibly long line of code. I'm trying to check whether one number of an array element is larger than t...
[4 replies] Last: I appreciate your help Long, but it's not doing what I want it to. I'm... (by anthonyh1990)
Newb Having Trouble Object Class Functions
 
Hi All, I am taking a basic programming course at school this semester, and we are currently learning basic C++. My assignment is to write a program that ha...
[9 replies] Last: Nvm, I was running the program instead of using the "Run to Cursor" op... (by Scussett)
Stackdump/Stack Trace
 
Relatively new to c++(so this code may seem idiotic), I have slowly been teaching myself to code using C++ since last year and I'm stumbling on linked lists. Th...
[1 reply] : solved it, I was writing *ptr1, *ptr2 etc... instead of *pt mods can ... (by Hixster)
SFML Help (1,2)
 
Hello, I'm trying to learn SFML, and I came across a problem. I'm using Code::Blocks, and I was trying to compile a very simple program (below). I'm not positiv...
[24 replies] Last: I've gotten that before. Did you build SFML with a different version o... (by ModShop)
Needs a While Statement
 
Ok, I have got this and now I am not sure how to do a While statment. Could someone help me understand. I need to incorporate a 'While" statenent. #include...
[1 reply] : A while loop is one of the simplest loop forms. It starts with a con... (by closed account zb0S216C)
no appropriate constructor available
 
#include <iostream> #include <math.h> using namespace std; enum tipTrokut {JK,JS,RS}; class Tocka { public: float x; float y; Tocka(floa...
[15 replies] Last: If anything, the body of the constructor was irrelevant. (by cire)
Inlining of member functions
 
I am reading "Ruminations on c++" and I had a question on something in the Prelude. The authors say ...because these member functions were part of the Trace...
[13 replies] Last: Ok, I see what you meant. I didn't want my sample to be taken as subj... (by webJose)
by Steves
Need modifiable l-value
 
Hey guys I'm trying to make a program for myself and this is what I have so far #include <iostream> #include <string> #include <new> using namespace std;...
[13 replies] Last: Where should I learn how to write the things that aren't in this sites... (by Steves)
Not Reading Last Line of file
 
I've got a small issue with my program. It is supposed to read each line of the file and take the date provided and convert it to a Julian date for scheduling a...
[2 replies] Last: Thank you for pointing that out. I had totally over looked that. (by apeachaday)
changing a name
 
case 1: char n1 ; cout << "Choose name: "; cin.getline(n1, 20); ref.setName(n1, 20); break; i have this part of code i am having trouble with th...
[8 replies] Last: Thank u for info framework I used the same logic, I used cin.ingore()... (by Tony Karam)
int to char conversion
 
Hi, I need to store the value of an int variable as an element in a string. i.e. string S = "abcde"; int count; count = 15; //i.e count gets assigned some...
[3 replies] Last: Sorry for the duplicate posting. I got it working based on the inputs ... (by NGambit)
Prompting the user to press Enter
 
I know the cin.get(); is supposed to prompt the user to press enter... is it not? I can't figure out why this is not working... take a look {string command; ...
[4 replies] Last: When you input the word you press Enter. You read the word, but the bu... (by ne555)
Filling in a vector with random #'s
 
I'm trying to code a Merge Sort that sorts through the numbers 1-10 and puts them in order...How can I code it so that it doesn't have just random numbers but a...
[3 replies] Last: Took a little tinkering...but I got it (by Lord Archaic)
March 2012 Pages: 1... 4243444546... 71
  Archived months: [feb2012] [apr2012]

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