General C++ Programming - February 2012 (Page 18)

Constructors and consts
 
I can't tell exactly what is going on with this code. Its supposed to make the warrior structures lower each others strength (which is held inside the weapon cl...
[1 reply] : What do you mean, give example inputs. if (w1Str > w2Str){ enemy.... (by clanmjc)
Char Array CONFUSION!
 
I am having a hard time understanding something essential about character arrays and pointers. I know the subject in itself especially for arrays is confusing ...
[1 reply] : I cannot help but reach the conclusion that you cannot directly calcu... (by Moschops)
Sieve of Eratosthenes
 
Hello there. Im working on a euler project problem. I'm attempting to use the "sieve of eratosthenes" (on wikipedia) pseudo code. Here's my interpretation: //...
[2 replies] Last: updated: int i,j,sum=0; const int n=2000000; bool list ; no impr... (by jwroblewski)
Reading XML attributes using Boost and FOREACH
 
So I've got code that works if I treat what I want to be attributes as elements. Here is an example of what I'm talking about. SomeFile.xml //... <Node...
[1 reply] : For anyone that needs to know I figured this out (And I'm slapping mys... (by clanmjc)
Intro to C++ student
 
Hey guys, I am new to this website, and fairly new to programming. However, I am more than just enjoying programming. I have one question, that may se...
[3 replies] Last: @OP: Yes. Until about your junior year, the code won't be specific eno... (by ciphermagi)
STACK OPERATIONS IN C++
 
guys can you share some knowledge you know about stack operations. ! please help me guys!
[3 replies] Last: http://bit.ly/xfIE16 (by therockon7throw)
What am I doing wrong??? Function help (1,2)
 
I am writing a function calculateTaxes() that calculates and returns the amount of city income tax and the amount of federal income tax to be withheld from an e...
[22 replies] Last: But I am trying to explicitly cause private behaviour. ^.^ (by ciphermagi)
EBNF to C++
 
Hello out there, I'd like to know how I could get best from EBNF number=[-]{cypherNotZero}cypher to C++. I would be very glad if someone could answer this qu...
[no replies]
Creating a Circular List (STL/Scratch)
 
I want to create a circular linked list (forward or doubly linked). I'm not certain how to do this. I understand in concept, the linked list (forward and doubl...
[8 replies] Last: Okay. So. Sorry I didn't get back to this sooner. I tried, but two tim... (by blindedhunter)
Nested if statements and output are not what should be diplayed
 
I am extremely new to the concept of computer programming for C++. How my current assignment I'm asked to do three separate times. The first part seems to funct...
[2 replies] Last: for one, quick tip, save your self time and possible logic errors (the... (by jmadsen)
Please Help-Problem with program
 
Can someone please help me with the following program. I got a question for homework and i tried to make a program but this give the wrong output. The questi...
[3 replies] Last: Thank you so much. :) I changed it and got it right. (by priyanshm)
+ problem!!!
 
Hi, I am trying to make an application who will read a file (app.in) and run what it ask for, for example if in app.in i write: 2 2 + chap it will add 2 in s...
[5 replies] Last: Wow Thx , didn't even notice that Working now Thx (by Sajjad Heydari)
by nrst87
problem with loading HDR image using pbrt
 
Hi everyone I'm trying to load an HDR image into my program using pbrt libaray( 3rdparty), I include the associated libraries in "Additional include directorie...
[no replies]
HELP PLS OFFERING 100 GBP
 
Hi guys, im will and i currently just opened game private server for last chaos, i have it all set but i have one problem ! the game opens with 5 windows , Conn...
[no replies]
OUTPUT???
 
#include<conio.h> #include<stdio.h> int fun(int r,int *ptr) { printf("%d %d\n",r,r=(char)r); printf("%d %d",(*(char*)ptr),(*((char*)ptr+1))); } void ...
[2 replies] Last: okie even if i make it void ...i find that in line 6...ptr+1 will poin... (by Sibendu Dey)
by ordana
Class method declaration from a different context
 
Hi guys, I have a question about class method declaration of externally defined object... it's quite difficult to explain so here is an example of my situation:...
[5 replies] Last: This is exactly what I was looking for! So I can use it as general MFC... (by ordana)
ISCAS NETLIST parsing
 
hi all, I am working on C++ coding of fault simulation algorithm of a digital circuit . The first step involves parsing of netlist files. The sample netlist...
[2 replies] Last: it is not possible to point to multiple, but you could create a struc... (by clanmjc)
Function to find Absolute Frequency of words in paragraphs
 
Hi my friends, I come with another challenge. I have a function that take a paragraph and line by line analyze the frequency of a "X" word. The problem I have w...
[18 replies] Last: Well, finally the "isalpha" fuction solved the problem, not perfectly... (by MacGregor)
by Marv94
Asio multiple request
 
If i use this code for setting up a simple web browser, i can acess it once with firefox. now i want acess it multiple, can somebody help me? #include <boos...
[3 replies] Last: yes, multiple request works now, but if i use this code http://www.boo... (by Marv94)
Having random issues
 
I wanted to get some general practice in C++ so I decided to try to make the game Rock Paper Scissors. The following is the first part of my code. The rand al...
[5 replies] Last: No. Just copy my line as posted and paste it at the start of main(). ... (by Disch)
February 2012 Pages: 1... 1617181920... 43
  Archived months: [jan2012] [mar2012]

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