General C++ Programming - August 2012 (Page 16)

by CMarco
uint64_t
 
Hello to all, I have a uint64_t variable and when I do: uint64_t it = 100; char msgname ; sprintf(msgname, "Transport:%d+%d-", it, outGateBaseId+i)...
[9 replies] Last: uint64_t is unsigned long on one of the production systems at my w... (by Cubbi)
making a string with non english letters (1,2)
 
Hi, I'd like to make some strings with non-english letters. For example the word débarquer. How would I make the string word1 equal to débarquer? Can you ...
[30 replies] Last: All that is unnecesarry! typedef std::basic_ostream<char16_t> std::u1... (by viliml)
by gurjot
program 2 is not able to delete a record which was added in program 1?
 
program 2 is not able to delete a record which was added in program 1? PLEASE HELP!! PROGRAM 1 #include<fstream.h> #include<conio.h> void main() {clrsc...
[1 reply] : You don't like spaces, do you? Well, looking at the lines after line ... (by coder777)
Pointers
 
I'm really confused on how pointers work. Here is a sample program by my prof, im confused on what happened to the assigned values of "firstvalue" and "second v...
[2 replies] Last: p1 = &firstvalue; // p1 points to firstvalue. p2 = &secondvalue; // p... (by Peter87)
what does the ':' operator mean here?
 
i saw this statement in a c file what does this mean? uint32_t a:2;
[2 replies] Last: thanks for the info (by tejashs)
Error LNK2019 Does anyone know how to resolve it??
 
i am getting the following error 1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup I am ...
[2 replies] Last: I might be out of my depth here, but it is a linker error - that means... (by TheIdeasMan)
Need help with displaying values from a map once
 
Hi guys, i`m having problems displaying my values from a map. It always gives me two outputs. How do i consolidate into one. the output is always The avalia...
[3 replies] Last: No worries, interested to see how you go. (by TheIdeasMan)
by SVD400
Need help from a Good c++ Programmer Urgently! (1,2)
 
Hi guys i have a Ray Casting program my friend sent me, now my c++ isnt great ive looked online for help but still cant do it. I have all the maths figured out ...
[22 replies] Last: SVD400, So you need to use the numeric_limits<double>::epsilon() to... (by TheIdeasMan)
by devync
Need help with solving the problem with I need for the next step.
 
Ok, so the 'gameboard' class part of my program works. It draws the board, shows the board, allows you to move on the board, and spawns the player and enemys at...
[2 replies] Last: Thanks, that's what I was starting to think as well.. I did give more ... (by devync)
Building Toolkits
 
So, I've been in the search of a GUI that I can use to design my program. I've been bouncing around between several toolkits, again, trying to find one that I c...
[9 replies] Last: Thanks for the reminder. I already linked to this thread, but I'll mar... (by Volatile Pulse)
Does anybody know what this code does?
 
Hello everybody! I was reading some programming books at school and I found an interesting piece of code that I want to share with you. Try to discover what it ...
[19 replies] Last: Again, thanks for the explanation! (by oldcrow)
by devync
When changing array value, it puts a random value, and not the one I specify
 
So I am creating my first RPG game for fun. And I am working on the movement of the player. Right now I have an array board that creates the game board, a...
[3 replies] Last: You may want to search on google something like (let's say your IDE is... (by mlpnkobji)
by RyanM
Goto Statements
 
So I've always heard goto statements are "bad" because they make it difficult to read code...But what if it makes it easier... I mean look at the code bellow...
[10 replies] Last: I tend toward using a simple while and a break. I think this is fair... (by Duthomhas)
by Hit
questionz
 
what paradigm is assembly language? I can't find anything about this. I assume it doesn't have one? when is it considered you have learned a programming langua...
[5 replies] Last: Thank you oldcrow (by Script Coder)
Rock Paper Scissors
 
Completed, was a simple error.. thanks for trying to help me people!!
[2 replies] Last: On line 93 you have use = instead of ==. (by Peter87)
by gurjot
can anyone please tell me why is the second program not able to show the records in the first program?
 
can anyone please tell me why is the second program not able to show the records which were entered in the first program?? PROGRAM 1 : #include<fstream.h...
[4 replies] Last: Thanks!! :D it worked. (by gurjot)
by k1 13
Proxy program
 
Hello all, First time I have posted on this forum. I would like to add that I'm having a bit of trouble coding my proxy. It works as such, sets up a listening ...
[2 replies] Last: I just want to be able route my connections using my program, its stil... (by k1 13)
console cursor position
 
Hello everyone this is my first contribution in this website .. I am looking for a function or manner to know everytime the function being called the position ...
[16 replies] Last: I forgot to say thanks a lot guys specially you Duoas (by closed account 28poGNh0)
std::vector and constructor
 
Let's say I have some code like this: class A{ public: A(); private: vector<vector<int> > mat; int a; } In the default constructor should I i...
[1 reply] : Constructors of class members are called when an object of a class is ... (by vlad from moscow)
Pointer or entire struct? Speed question
 
To speed up a thread, I want to code its loop saving all the milliseconds that's possible. Let's say I have a small structure, is returning it via pointer faste...
[17 replies] Last: OK, got it. (by mlpnkobji)
August 2012 Pages: 1... 1415161718... 31
  Archived months: [jul2012] [sep2012]

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