General C++ Programming - January 2012 (Page 10)

by sab
Using jwsmtp
 
Hi guys I have installed and configured jwsmtp such that a file called libjwsmtp.a is created. Now i have to link this with my program in codeblocks. ...
[3 replies] Last: Dunno, never used CodeBlocks. Maybe someone else can help. The com... (by kbw)
by arefe
Code showing error
 
Dear folks, I tried to run a c++ project that I made in Code blocks. I got it from my supervisor and my task it to run it properly. I have basic knowledge...
[5 replies] Last: Your compiler is complaining that it cannot find the file /opt/tbb30... (by Moschops)
HELP! Drawing a Diamond
 
Hey guys, I have a project due for school, we have to draw a diamond using for loops, i've got it all finished except the Draw function. I'm gonna copy/paste wh...
[3 replies] Last: great !!! Now what should this Draw() do? From the name I think you ha... (by subith86)
Can't see typedef
 
Hi people! I have this program, and I have problem with it... // File: fs.h /*...*/ struct Entry { char name ; char ext ; char reserved; unsigned long fir...
[no replies]
Where is my error?
 
I work on C: #include <stdio.h> #include <stdlib.h> int a,b; int add(){ return (a+b); } int add_transaction ={ add }; int main() { if(a==...
[10 replies] Last: I given an example.I want to be my array's element item 3,4,5,50,638..... (by Helegurbann)
by Anitha
opencv error
 
Hi, I am doing project using opencv and cuda, If I debugg my code it works fine, but when I start cuda debugging I got "opencv error". I am new to both open...
[no replies]
Garden Gnomes,,,,,
 
how do i set the font style within this code? #include <windows.h> #include <stdlib.h> #include <string.h> #include <tchar.h> // Global variables /...
[9 replies] Last: heres a link to a screen shot of what i have so far http://i.imgur.com... (by Echo773)
by Mats
True Random Numbers
 
Is this possible in C++? They really do need to be very random. It's for a test that will go through probably at least tens of millions (likely many more) of nu...
[1 reply] : Yes, but only if the underlying hardware provides some sort of non-det... (by Cubbi)
Information required to format the output
 
Hi, I was stuck in simple thing. Please don't mind replying for this simple stuff it will avoid wasting my time because already wasted a lot for the same . I...
[2 replies] Last: Yeah thanks for your valuable response. Thought any inbuild function ... (by sunilchintu2468)
writing expressions in c++
 
How would the following mathematical expression be written in C++? (x is a volume) Note: the lab manual uses single character variable names like b, a, c, ...
[1 reply] : That looks right (except volume needs to be defined.) You just need so... (by Mathhead200)
Pseudocode
 
Does everyone that wants to go into the gaming industry use Pseudocode before writing a application? And after your finished going over your Pseudocode do you p...
[4 replies] Last: Thanks Luc Lieber very much appreciated. (by Ryan Wilson)
bubblesort help
 
Hi, I don't see why my bubblesort for [3,3,2] sorts to [2,2,2]! I did not use any existing pseudocode, I just made up my own. I'll explain in pseudocode for e...
[2 replies] Last: Holy crap! Thanks! I can't believe such a dumb mistake! It's working f... (by closed account 4ET0pfjN)
Problem in struct date
 
int d1, m1, y1 ; struct date dt; getdate(&dt); d1 = dt.da_day ; m1 = dt.da_mon ; y1 = dt.da_year ; It doesn't work in code::blocks gcc compi...
[2 replies] Last: Thanks you solve the problem (by Dinesh subedi)
by fcao
Can anyone tutor c++?
 
I have been unsuccessful at finding a tutor around where I live for c++ programming. I was wondering if anyone has time available and is willing to tutor me on...
[4 replies] Last: This is exactly what this site is for. Just post your questions publi... (by moorecm)
nested template type casting
 
I'm trying to figure out how to add typecast operator to the following nested class to allow the main to compile, but I can't figure what is needed.The last ass...
[4 replies] Last: yuck, ¿what is that code for? (by ne555)
Error, can't find whats wrong
 
I can't find what is wrong with my code: ... typedef struct { unsigned char r; unsigned char g; unsigned char b; }COLOR; COLOR my_color...
[no replies]
Infix-to-Postfix Expression Conversion
 
So here is the assignment I have to complete within the next hour that I've procrastinated way too long on doing. If someone can just kind of guide me along in ...
[no replies]
by Bobu
How to store variable's "exact" value?
 
Hey, I hope I'm able to explain my programming issue clearly: I have written a solver for differential equations. Now I solved it, with different initia...
[5 replies] Last: @JLBorges: Thx for your reply!! I'm aware of that, that the very exact... (by Bobu)
AI issue
 
Hello, in my SDL 2D game, my enemy bot needs AI for "1: running away" and "2: chasing me". When he is it, the col3 bool will be true. when im it, the col1 bool...
[4 replies] Last: Pathfinding will give you the path between two points on your map. Whe... (by Peter87)
by AsmGuy
cout << and Addresses
 
Can anyone tell me where I'm going wrong here? Basically trying to view the address inside of a pointer variable using cout, but it seems to be dereferencing...
[5 replies] Last: Thanks everyone. Much appreciated. Took me a bit to recognize the <<... (by AsmGuy)
January 2012 Pages: 1... 89101112... 36
  Archived months: [dec2011] [feb2012]

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