Beginners - May 2014 (Page 35)

by quayda
If/Else statement
 
Just trying to work out these kinks in my code. I'm mostly referencing lines 43-46 here. I think my syntax is wrong for my if statement where I wrote (( size ...
[2 replies] Last: Thanks a million. I've updated my code, and it now looks like: #incl... (by quayda)
adding object in a view
 
hello , please how can i add an object which display a data in a view of a frame in a MFC application
[no replies]
mfc application
 
hello , i want to devise the frame into 3 views, how can i do it
[no replies]
by quayda
ERROR: expected primary-expression
 
I'm getting expected primary-expression before '=' token for lines 40 and 43, sum and sumHits. I don't know what I'm doing wrong :/. Why am I not getting the ...
[2 replies] Last: I think my rookie is showing. Thanks!! (by quayda)
by quayda
invalid types `char[int]'
 
Hi. I'm trying to have this program count the number of letters input by the user as response to line 18's request, "\nEnter the player's batting record: " . Th...
[5 replies] Last: Easy way to do this is probably make size a string and then just do s... (by Void life)
by quayda
Enum
 
Can I use enum to define a set of variables and later have the compiler read them as a string and sum their values?? For example, If I have: enum alph {A = ...
[1 reply] : Also, this may be a stupid question, but can I define two vales at onc... (by quayda)
Need help on my game
 
I have finally got a final idea of a project I want to do. I am trying to make a game were the @ sign moves around the games board when the user puts in one of ...
[3 replies] Last: A conio.h adaption: #include <iostream> #include <conio.h> using name... (by closed account j3Rz8vqX)
by binf
Expecting your tips&hints
 
I want to write a code where will be given n integer numbers.The program will print the two numbers whose difference is the closest.It will show any two, if the...
[4 replies] Last: that was your code, I just indent it properly. (by ne555)
non static members
 
I am having a little trouble understanding how members work in C/C++ and am especially prone to accessing non static members. I am starting again from the begin...
[3 replies] Last: > PP2D is a Derived Template when used in case 2. "template class der... (by ne555)
Conlang Notepad: Recommend Me Some Libraries...
 
Firstly, a short introduction. This is my first post and it seems proper to me. [quote=Intro]I've had a fascination with scripts and programming all my life. I...
[no replies]
by ohad
hello
 
i sopuse to make this string = "eeevv" into this string = 3e2v why its not working for me? thank u #include<iostream> using namespace std; char chaf(c...
[2 replies] Last: thank u!! the bigest mistak of me was the while (*ch = s) insted of wh... (by ohad)
When to startup on second language?
 
Hi guys, as said in title. When would you recommend starting up on another language? I'm doing some arduino and would like to get more into embedded system. ...
[no replies]
by mrb
GPA Calculator Program (1,2)
 
I have an assignment to make a GPA Calculator using four functions, here is the program coded the way the Professor wants it to look: (I will post my code that ...
[39 replies] Last: Congrats - glad you got it working :) (by wildblue)
by h4ever
Error: cannot convert parameter 2 from 'char *' to 'LPCTSTR'
 
Can you help to fix this problem? try { control = new Controller (hwnd); } catch (WinException e) { MessageBox (0, e.GetMessage (), _T("Exception")...
[11 replies] Last: > In that case... There couldn't have been any other case. It is o... (by JLBorges)
Trying to Build a Tokenizer, problem defining Token class
 
I'm trying to make a vector to store all the tokens inside a .java file. What I've got so far is a class to define the type Token as a collection of 2 strings (...
[1 reply] : expected ':' before string at both variable definitions So put a co... (by norm b)
Fraction Class HELP!
 
I don't have any syntax error, however it pops up a windows of "Fraction.cpp Has stopped" why? can you tell me whats wrong? and when I declare the second fracti...
[2 replies] Last: it is supposed to give me the gcf of the numerator and denominator. Bt... (by closed account ivDwAqkS)
by zinat
char * to char array
 
how to copy content of character pointer to character array in c programming..
[1 reply] : Assuming the array is large enough to contain the entire string, you'd... (by Disch)
by mimito
Gauss Seidel iterative method HELP
 
Hello everyone , I have a problem with the algorithm of Gauss Seidel iterative method . Here's my code . It prints results but they aren't true . Here's wha...
[2 replies] Last: the program incorrectly prints : 1 iteration: x1= 0,5 x2 = 1,625 x3 =... (by mimito)
do while.... What the??
 
Why the heck does my while here think that my do input is always negative????????? int main() { int n; do { cout << "Enter a non-negative integer: "; ...
[11 replies] Last: that works, but I tend to agree, I'm not sure that's what he's looking... (by mebruler)
Rand() help
 
Ok so I have been working with rand and here is what i dont get, the book for our school does not explai it well so I need some of you to explain if you do not...
[11 replies] Last: You can sort your array before you print it to produce what you may be... (by closed account j3Rz8vqX)
May 2014 Pages: 1... 3334353637... 55
  Archived months: [apr2014] [jun2014]

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