Beginners - December 2010 (Page 11)

Incorrect Output
 
I have another issue. I've written a program that takes some simple input, performs simple calculations and the output is calculating properly, but the program ...
[3 replies] Last: [co de] Your code goes here [/co de] /*26 */ wedgeAngle = float(... (by ne555)
how to use static_assert in gcc 4.5?
 
I am sorry to bother you guys I have been trying to find the answer by google but I didn't find any clue about it. Could you show me how to use static_assert ...
[2 replies] Last: Thanks, I found out my problems (by stereoMatching)
Football League Mangement System
 
I need a quick brief how can I start,and what STL will I use,how can deal with different entities 'relationships' like database primary key or what ? The syst...
[no replies]
by s3a
I have a namespace problem (I just started C++)
 
In the following mini-code: #include <iostream> // Why don't the following two lines work?: //using namespace std::cout; //using namespace std::endl; ...
[2 replies] Last: Thanks! (by s3a)
by moe93
Is it possible to reduce my code?
 
Please help me reduce the code, am still a beginner in coding C++ =P and if there is anything I can add... It's a simple grading program. #include <iostre...
[13 replies] Last: True, goto should be ignored, but not because of being ugly. The only ... (by Kyon)
invalid conversion from `unsigned int' to `const char*'
 
hey guys....can anyone help me with this? here is the full code... #include "Student.h" #include <fstream>//gia leitourgies eisodou eksodou se arxeia #i...
[4 replies] Last: I don't see why it gives you exactly that error message, but at line 1... (by hanst99)
Why does my program hang?
 
#include <iostream> using namespace std; int main(int argc, char *argv ) { int *p = 0x0000; while(*p <= 0xffff) { cout << *p; ...
[15 replies] Last: [quote=madmaxsantana]One personal question please! Are you a professor... (by chrisname)
3x3 matrix inversion
 
hi everyone.my teacher want me a simple program which calculate addition,multiplication,transpose and inversion of 3x3 matrix . i overcame addition,multipl...
[1 reply] : http://en.wikipedia.org/wiki/Invertible_matrix#Inversion_of_3.C3.973_m... (by hamsterman)
Pointer to template class, of any type
 
I've run into a brick wall here, needing to have an array/or single variable (not necessary for each element to be equal in size) each of the same data type, al...
[6 replies] Last: Well, yes, I suppose. Here is something similar that might help -> htt... (by m4ster r0shi)
by noobie
sorting problem
 
hello.. i have kined of noobie question.. if i have a string : "a,f,b,k,e" and i want to convert it, so it will look like this : "e,k,b,f,a". how can i do i...
[4 replies] Last: thank you alot!!! (by noobie)
purpose of passing the address in a memory
 
hi guys. if you have have variable a and b AND pass the address of variable a to b, then b will going to have the address of a. what happens when you are p...
[4 replies] Last: Sorry, I forgot to dereference it@_@ (by stereoMatching)
Copy string to clipboard
 
I'm working on a password generator program, and am trying to add a "copy to clipboard" feature where the program saves the string to the clipboard so that it...
[1 reply] : Hi here is an example of how to do it glob = GlobalAll... (by shredded)
How to create dynamic File name using C?
 
Hi Friends.. I've problem regarding how to create dynamic file using C. I need to create Log Files for machine. I think i want to design the Log File names...
[1 reply] : Hi Heres an example to show YYYYMMDD it should be easy to convert t... (by shredded)
\gdfdsf
 
dsfdfdf
[4 replies] Last: main must return int Double threath http://www.cplusplus.com/forum/... (by ne555)
carriage return
 
hi, gud day i would like to ask, what 'carriage return' does ??
[4 replies] Last: wow. thanks for your replies. it really helps me :) thanks a lot :) (by ernandrew)
Question
 
When I ran this the output was: 15 3 21 21 Shouldn't it be: 15 3 21 3 How did it get 21 for the last number? Doesn't num=3? #include <iostream>...
[3 replies] Last: Ah, that was stupid of me. I didn't read it carefully. Thanks for the ... (by pq1wx1p)
console closing
 
// w.cpp : main project file. This will compile but console closing too quick to see output. Yes I have used system(pause) and cin:get, etc, etc.What else ...
[6 replies] Last: Try running with ctrl+F5. This is run without debug and the window sta... (by closed account D80DSL3A)
Empty an array...
 
Hi guys! My first post in this forum! Nice to meet you all :D! Ok, straight to the point... I want to empty a position of an array filled with objects of ...
[6 replies] Last: if( booleanFlagsArray ){//the object exists //operate with the obje... (by ne555)
by nick85
Shift Operators
 
So i have a color in hex: int color = 0x123456; I want to separate the the rgb channels with this: int r = color <<8>>24; int g = color <<16>>24; int b ...
[2 replies] Last: brilliant! thank you! (by nick85)
C++ Homework The Game of Life
 
I have to write code for the Game of Life. I wrote nearly all the code for it but for some reason when I run my second generation it just displays the same one ...
[5 replies] Last: It is not responsability of a live_die function to space the output. (... (by ne555)
December 2010 Pages: 1... 910111213... 35
  Archived months: [nov2010] [jan2011]

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