General C++ Programming - October 2009 (Page 13)

Few qestions.......
 
1.Can a 64-bit OS tell whether a given EXE file is a 32-bit program or a 64-bit program and run it correctly? 2.Can a 32-bit OS run a 64-bit program if the p...
[17 replies] Last: I'm not 'sure' about what it does, but I have read it at several sourc... (by closed account z05DSL3A)
Need suggestions on organizing code files.
 
So I'm getting to a point in my project that the depth of the 'code' folder can go about 5+ folders deep... I tried to abate the complexity by creating files c...
[6 replies] Last: I had kept them in a single folder for all the top level stuff. Well ... (by AlwaysLearning)
by hsash
Applying 'Marching Cubes' algorithm to DICOM
 
hi all, i would really appreciate any guidance and help in this. basically i need to open a series of DICOM files (medical imaging format) which are binar...
[2 replies] Last: How do you plan to threshhold? And what does the data look like after ... (by turbozedd)
by CD4
doubt with structures and pointers..
 
#include<stdio.h> # include<stdlib.h> struct manager { char name ; int age; int salary; }biocon,panacea,serum; manager *p; int opt; int main() { p...
[1 reply] : You are redeclaring manager *p multiple times within the switch. You ... (by jRaskell)
reading binary file problem
 
The problem is that it is reading the records more than what is written and keeps repeating them again and again..please tell me the problem ... i am unable to ...
[3 replies] Last: Use while(stream) rather than while(!stream.eof()) ... (by kbw)
Problem In Syntax Porting my code from Borland C++ to VC++ 6.0
 
Hi I am having problem in porting my code from borland C++ to visual C++ 6.0 As i understand there are two type of Bool one for c and one for C++ named as bool...
[1 reply] : Wrong. C does not have a distinct Boolean type, logical expressions... (by kbw)
How do I friend the class within a namespace?
 
//class groups::BaseGroup; class Base{ public: //friend class groups::BaseGroup; private: }; /*----*/ namespace groups{ class BaseGroup{ ...
[3 replies] Last: cool thanks, that worked. (by AlwaysLearning)
updname() cant execute
 
i have problems with executing my updname();, can u guys help me check errors? its already running but updname() is malfunctioning... thanks! #include <st...
[2 replies] Last: Prompt the user for the number of consultants for each consultant, ... (by icko718)
AVL tree insert not working
 
deleted
[no replies]
by mar11
structure
 
Hi all, if i have the following code: struct test{ bool v0; bool v1; bool v2; bool v3; .... }; foo(const test T0, const test T1){ // ...
[3 replies] Last: Use a std::bitset, or use unsigned ints and bitmasks instead of bools.... (by PanGalactic)
by alias
Change Machine Code
 
I'm writing a code for a change machine, in which the user input the cost of their purchase, then the amount of cash that is given for the purchase, and then th...
[1 reply] : Say you have $3.52 in change that needs to be returned. Easiest way ... (by jRaskell)
Clarify on these questions, please?
 
I came up with a couple of questions to check that I know about pointers and memory allocation and what not; could someone tell me if my answers are right, and ...
[14 replies] Last: Ok, thanks :) http://linux.die.net/man/2/ptrace That looks do-ab... (by chrisname)
by fares
Answer this c++ Q i have a exam?
 
write a program to add two large integers with up to 300 digits one approcah is to treat each number as al list each of whose element is a block of digit of the...
[10 replies] Last: Okay; when I make an array; how will I put every 3 digit block in the... (by chrisname)
C++ problem using quadratics
 
Exercise 5: Two roots of the quadratic equation is calculated by using the formula: Where a, b and c are real values. The term is called discriminant. ...
[1 reply] : Where exactly in your code are you having problems? (by Zhuge)
resize
 
Hi, If anyone can help me.I got problem with image size when i want to combine surf in my program.(image size 87 x 87 to same size = ok, but if 87 x 87 to b...
[1 reply] : I suggest that you format your code properly (no tabs) and then paste ... (by kempofighter)
solution to error C2593: 'operator *' is ambiguous"
 
My C++ program as follows : # include "iostream.h" # include "stdlib.h" class CMatrix { double *p; int i,j; public : CMatrix(){i=0;...
[1 reply] : You did not overload operator* for the matrix class. I recommend that... (by kempofighter)
sorting string array with bubble sort
 
Ok, well, the 1st line of code basically explains what it does ( 500 worst passwords). I'm doing a lab assignment for my programming class. We have only 1 class...
[2 replies] Last: Thanks... works fine. (by ansline6788)
by heyyo
Function pointers in class scope: Problem!
 
I have a problem: I write a class. There is a function, member of this class. There is another function, member of this class, takes a “function poin...
[3 replies] Last: Thanks Abramus and Dennis. My mistake was at the 18th line. (by heyyo)
convert/cast a reverse_iterator to an iterator
 
Is it possible to convert a reverse_operator from a std::list to a "normal" iterator? All my trials failed and google couldn't help me.
[2 replies] Last: Thank you for your reply. I finally expected something like that. Too... (by blueshark)
C - Char Array problem
 
I have to design a program that converts any base from 3 - 36 to binary. The problem I am having is the argument passed into my function keeps telling me that ...
[4 replies] Last: I feel dumb Don't worry about it dude. We've all done it. :-] ... (by kevinchkin)
October 2009 Pages: 1... 1112131415... 17
  Archived months: [sep2009] [nov2009]

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