General C++ Programming - April 2011 (Page 30)

global static vars problem
 
Hi all, I'm trying to put a few function pointers in a header file so that I can use those function pointers as any other function by including the header fi...
[7 replies] Last: static variables in the global scope make them local to the file the... (by firedraco)
by Zanib
Very Important Project Help needed
 
Here is project which i need to complete in 36hours.Please help me, i am even willing to pay if someone will do this project.It is kind of matter of life and de...
[1 reply] : There is an actual "jobs" section on this site, you may get a better r... (by Computergeek01)
how to hide http://.......com in source
 
hello, and i hope i become a help here i have c++ source they make http:// connection , i compile it, its ok, but when i edit the file.SO with hex editor i c...
[5 replies] Last: What does it matter to you whether the user edits the http address or ... (by hanst99)
To prevent inheritance
 
Hi, I got following question from one of friend,Could anyone provide me some input. can we write a class whic can be inherit only by respective category. ...
[12 replies] Last: Why? Nobody likes trolls. (by filipe)
by perr
machine epsilon
 
Hi all, I need high precision for my numerical calculations. As a test, I compute machine precision ("machine epsilon" (?)) for "float", "double" and "long...
[6 replies] Last: The overall precision will very much depend on the absolute values of ... (by rapidcoder)
Random name selection
 
I have a list of 1000+ names in a text file and would like it to select names at random. It does not matter if it repeats, and chances are it will not anyways...
[2 replies] Last: I apologize for pretty much DOING it for you, but this could b... (by desoxena)
Split string
 
Hi i am new here I was wondering can someone help me I need to split string like below: C:\Windows\ File1.exe C:\Windows\File 2.exe Basicly what I want i...
[2 replies] Last: Thanks that just what i needed. (by BenJones)
need to add colon in time
 
i have char eventTime and read in a 4 digit number to it. i need to take that 4 digit number as 24 hour time check it against the rules of 24 hr time and then...
[2 replies] Last: What code do you have so far? What exactly do you need help with? (by lordmat)
by rcorcs
GNU (MinGW) Assembler and Linker
 
Hello, I'd like to assemble and link using the gnu assembler (as) and linker (ld), without calling GCC. Does anybody know how can I do that? thanks ...
[no replies]
Hamiltonian Question
 
Hi there, I've got a question to ask regarding Hamiltonian problem. I'm doing on a simple question below: State equations ODE:- dy/dx (t) = x2(t) d^...
[no replies]
warning: deprecated conversion from string constant to 'char*'| (1,2)
 
Help me out guys. The code I have shows this warning a lot when using gcc. No other compiler for this code does this warning. So I am wandering what a Quoted ...
[22 replies] Last: Your CString::Find has a buffer overflow. The while should test for *p... (by imi)
Nesting Structs
 
Did some looking and i found some great resources here for doing this but I'm having issues. my predicament: I made a program that parses through severa...
[2 replies] Last: Maybe with a global variable PIDS of type Pidstruct*, that you would a... (by bartoli)
by vivmen
strenge behaviour
 
#include <iostream> #include <exception> using namespace std; class CBase { virtual void dummy() {} }; class CDerived: public CBase { int a; public...
[5 replies] Last: is it because of int x ? Yes. That's what guestgulkan tried to explan... (by coder777)
const overloaded operator
 
1 #include <iostream> 2 3 4 using namespace std; 5 6 class A 7 { 8 private: 9 int val; 12 public: 13 explicit A(int x){val...
[2 replies] Last: You don't need A A::operator*(A &rhs) . static_cast<const A&>(tmp);... (by coder777)
Complex matrix
 
I have a exercise, i can't do it.Please help me: "Multiply 2 complex matrix" Thank alot!
[5 replies] Last: Don't forget to check your duplicate thread in the beginners section: ... (by closed account D80DSL3A)
Sort numbers smallest to greatest
 
Hey, I'm writing a program for class and it needs to accept input of numbers from three different files and sort them from smallest to largest. I'm not allowed ...
[3 replies] Last: If I didn't have an array I would be using. CS140 doesn't tell me any... (by Azagaros)
C++ String Tokenizer equivalent?
 
I recently fell in love with the String Tokenizer in Java while working on an assignment for my Java course. I was just wondering if there are any equivalents o...
[5 replies] Last: filipe, thanks. I'll make sure to read that. (by packetpirate)
by ToniAz
Is C\C++ on the Verge of Extinction?
 
Hello Everyone! I have been wondering lately, with all the serious progress in multicore processors and parallelism, whether C\C++ can still make it? I've h...
[2 replies] Last: Programming languages come and go, but C and its succesor C++ seem to ... (by mof)
Primes Class
 
I can't seem to get my friend function to work. I looked at the tutorial and I think I got the syntax correct, but I'm getting this compiler error: 59 `plist' ...
[2 replies] Last: Friend functions don't have normal scope rules for accessing the class... (by Azagaros)
by ichigo
Math issue
 
I just started c++ Today. I have been working on a simple calculator. When i leave out all if statements but 1, it works fine. When I put in other if statements...
[3 replies] Last: thank you. Than helped alot (by ichigo)
April 2011 Pages: 1... 2829303132... 37
  Archived months: [mar2011] [may2011]

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