Beginners - July 2011 (Page 53)

Understanding Unions
 
I understand how to use a union, for the most part. From what I understand, a union is a shared memory address for different types? Does that mean I could make ...
[2 replies] Last: when you do a sizeof of a union it will be the size of the largest dat... (by binarybob350)
by atikot
problem with solution to exam question
 
hi, i have C exam next week, so i started solving questions from previous years exams and run into this question, the answer i come up to is far far from having...
[3 replies] Last: If you want to get fancy you could write it as void sortarray(char st... (by shacktar)
by Drue
Header File
 
I'm making a periodic table program. It's for school next year, and it makes it faster to search and find the info on elements. Here's what I have so far. ...
[3 replies] Last: Sorry didn't know. I normally use Rapidshare, but they recently made ... (by Drue)
Use of control structures
 
Hi guys, I'll just start off by saying I'm fairly new to C++ so apologies if I say anything stupid. I'm working with Allegro to make a simple game based ...
[1 reply] : Close. It doesn't work because string s don't have an x, angle, orbit... (by shacktar)
Converting a String to a Variable?
 
Hello. I'm wondering how I could convert a string that I got from GetWindowText into a variable so I can use it in non-string functions. What I'm trying to d...
[15 replies] Last: @Coderfail: In any .cpp where you're going to be using a stringstre... (by shacktar)
by Drue
Header File
 
I'm making a periodic table program. It's for school next year, and it makes it faster to search and find the info on elements. Here's what I have so far. ...
[7 replies] Last: @Moschops How would I use a function call and make it go to the spec... (by Drue)
by n8c
accessing elements of an array that is an array ellement
 
hello I am trying to pass an initial element of an array of pointers to a function, and that array of pointers points to arrays. say i have an array char foo ...
[2 replies] Last: sweet thanks hamsterman (by n8c)
Ofstream << fails writing to file
 
Hi all, I have following source which creates a file in the current directory, but << operator doesn't write the line. Can anyone explain why that is happend ...
[1 reply] : Firstly, the stat function returns 0 (not -1) if the file exists, so y... (by shacktar)
Permission denied error
 
Hello, something weird just started happening with dev c++. Whenever I compile a program, it doesn't matter what the program is, it works once. Then when I tr...
[7 replies] Last: You closed your program. In Windows, you can't overwrite executables... (by king214)
Priority queue
 
Hi All, I am trying to implement priority queue in my program. I know, we can access any element from a priority queue like a vector.But can we actually delet...
[1 reply] : You can't access any element and you can't erase any element. http://... (by hamsterman)
by Dunken
Access global static member
 
Please have a look at my code. I don't know where/how to initialize "myGlobal" such that I can change its value from my unit test. mylibrary.dll -----------...
[17 replies] Last: There's no need to do that. What you should do is mark the class as ... (by anonymous23323124)
time difference
 
Hello could anyone please tell me how to find out that the difference between the two times is less than equal to one hour e-g 13:32:45.96 - 13:30:10.83...
[5 replies] Last: Thanks toexii. Let me try this code (by vbaswant)
Trying to read random memoy causes error (1,2)
 
A long time ago, 5 years, I made a simple C++ program that would allow you to enter a number and it would use an array to browse through the computers memory. N...
[20 replies] Last: Oh ok, I get those lines now guys. Thanks for the code to,Watachiaieto... (by evilpickles)
reading input through .csv file (file wont open)
 
Hey guys, I'm relatively new to C++ in some aspects but I know this is simple. I'm writing a test case to add to another CUDA C program later to read in t...
[3 replies] Last: Any suggestions? I haven't been able to get this working still. (by shingleserv)
by Nuc
How to make a program disallow number strings
 
#include <stdio.h> #include <iostream> #include <conio.h> #include <Windows.h> #include <string> #include <stdlib.h> using namespace std; void lossfunc(...
[1 reply] : Look at all the characters in your string, you can determine whether o... (by toexii)
Converting a printf statement to cout
 
Hi ! I am trying to convert a printf statement code line to cout in a C++ code. It is: printf(" %c | %c | %c ",matrix ,matrix ,matrix ); I am using g+...
[2 replies] Last: Thanks for the help ! And yes....i did write #include <iostream> and... (by ChosenTorture)
Starting C++ learning: integer initialized to -1 return 0
 
Hi everyone, I began to learn C++ from Stroustrup book, and I already have a little problem with one of the first programs: int main() { cout << "Plea...
[3 replies] Last: Maybe the compiler you were using with Code::Blocks sets the int varia... (by mike246)
Graphics
 
Hi all, I want to end up as a game programmer, but I want to just know one thing for future reference. Does anybody know a good cross platform graphic engine...
[7 replies] Last: Thanks for the help all. I forgot to ask, is DirectX easier to use ... (by URSvAir)
by Bchaos
File I/O
 
Hey guys I'm pretty much a newbie, I recently started learning C++ and right now am at the very first block, just learning about the basics. I came across a...
[3 replies] Last: Ok good to know it's possible, thanks! @ L B yeah I wont confuse myse... (by Bchaos)
Path Finding through a random arrangement
 
As I specified in my previous post, I was making the Dungeon Crawl Game that has been listed in the Beginner Exercises in this site. My Idea is to create an En...
[6 replies] Last: The code you posted doesn't seem to have any randomization in it. So... (by Nisheeth)
July 2011 Pages: 1... 51525354
  Archived months: [jun2011] [aug2011]

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