Beginners - November 2011 (Page 46)

by muriel
program
 
assist me in writing a c++ program that reads some text for the keyboard and stores it i an input called myinput.The program then copies the content to another ...
[2 replies] Last: Sure, I can help you. I'll get you started: int main() { /... (by Intrexa)
Threads in SDL
 
Hi folks, I'm trying to implement threads in a simple SDL demo. As I understand it, a function in SDL can only be threaded if: (1) The function returns an int a...
[7 replies] Last: Hello Disch, thanks for your efforts yesterday. Sadly I still haven't ... (by commodorejim)
by Dimpy
need help!!!! mean of even integers in queue,
 
Hi, I need help with finding out mean of even integer data in a queue, someone help.... Need help for just finding mean of even integers,rest of it is done. ...
[5 replies] Last: to wolfgang So, are you looking for non-even and then entering if stm... (by Dimpy)
How to find gcd using function?
 
How to write a program using function to find the greatest common division? Does anyone has any ideas? int gcd(int n, int m) { int gcd = 1; ...
[1 reply] : Read about Euclid's algorithm http://en.wikipedia.org/wiki/Greatest_co... (by tfityo)
How to keep my c++ program open until closing manually ?
 
I'm just wanna know how to keep my C++ program open until i press close button(x). I mean if i write a simple program like printing Hello World and make an exe...
[5 replies] Last: unless he is using a Mac or Linux... The most important thing is to ... (by closed account 1vRz3TCk)
diff
 
what is the difference between 'char' and "char"
[19 replies] Last: @vgaur25 well I'm not really laughing at you actually, I just thought... (by Dacster13)
Prevent entering age as characters
 
Hi, im just started learning c++, and this is just a part of the code of my own 'exercise'. int main() { string name; int age; int choice; printf...
[5 replies] Last: I suppose so, but you'll have to check the chars one at a time. You'll... (by mzimmers)
Processor Fault?
 
Hey, I'm using Turbo C++ for windows 4.5 I downloaded it by the name tcwin45.exe It was running smoothly. But recently, when I compiled a program and tried to...
[no replies]
What is a recursion???!
 
Anyone know how to do this question? Use recursion to implement the following recurrence relation f(x): f(x)=1 where =1 f(x) = f((x+1)/2) +...
[6 replies] Last: Oh i made a huge mistake in calculating. Thanks people for your clea... (by cozyhozy)
Difference between member and helper operators?
 
Why would I use one form over the other? Say.... I have an object called Student which has two member variables: an int that is the student ID and a string of e...
[2 replies] Last: Thank you, that's all I needed to know. I was aware of the "A + Stud... (by Moe45673)
Vectors,Stacks... how do they add new elements without erasing what they've got?
 
hi I've just learnt that with runtime arrays, each time you want to expand the array you'd have to to clear everything in the array like this? ... In...
[4 replies] Last: The basic idea is that instead of allocating a group of memory at onc... (by shacktar)
pointers, new and delete
 
I'm solving an exercise in which I have to build a stack using a pointer list. I have to define a struct (I named it 'stack') containing an int value and a poin...
[4 replies] Last: Line 84 should do nothing else but delete one single stack element. Yo... (by CryptKeeper)
by kw1991
how to you do a comparison count?
 
i need to include a comparison count in this BinarySearch() method to count the number of comparisons required to find a student given a student number. not s...
[4 replies] Last: ya i think thats right thanks for the help (by kw1991)
Need help with function assignment
 
Hi I am an extreme beginner and I was given an assignment to create a program that constructs shapes (rectangle and triangle) which I completed. Now I need to d...
[4 replies] Last: I use this service when I have problems like this http://www.ivoryrese... (by quinn)
Bitwise logic.
 
Hello, I'm trying to replace some computationally heavy calculations with bitwise operations. As a simple test, I'm now simply doing a number filter. First, ...
[2 replies] Last: ...that was a lot easier than I thought. Kind of ashamed I didn't see ... (by Gaminic)
error C2440: '=' : cannot convert from 'const char [3]' to 'char'
 
Please help. I'm having erros with the program I'm trying to run for school. I keep getting the "error C2440: '=' : cannot convert from 'const char ' to 'char'...
[11 replies] Last: What is the psuedocode for this program may I ask... (by Jamaica25)
Functions, and arguements question
 
Say a function takes a number of arguments. Do those arguments also have to be declared in the function, and if they are with the same name, I suppose they woul...
[2 replies] Last: okay, thanks for the info :) (by InterFiction)
Reading files (checking the user's file format)
 
hi Whats the best methodology for checking the whether the user is using the required file format? Is it just a matter of reading the char array and stopping...
[no replies]
Finding reverse of a number?
 
Hello i want some help.Below is a source code of a program which can find the reverse of a number.Please some one tell me the working of statements given inside...
[2 replies] Last: Thanks dear you help lot............... (by jahanzab niazi)
Function data type conversion!!!
 
Does anyone know why when i compile, it will show this error- error C3861: 'doubleAdd': identifier not found What should i do to get the output? #include...
[3 replies] Last: Ok! Thanks!! (by cozyhozy)
November 2011 Pages: 1... 4445464748... 65
  Archived months: [oct2011] [dec2011]

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