Beginners - April 2013 (Page 46)

At wit's end-Beginner problem
 
I have solved some of this problem but not all of it and have spent so much time already my laptop w...
[6 replies] Last: what i do for this is quite complicated. and something like this mayb... (by Lim Boon Jye)
I don't understand why I am getting the largest value repeated
 
Hi. I am trying to get an array of random numbers from 1-100 divisible by 11 with a for loop, so I d...
[3 replies] Last: I've shown you how to generate numbers that divide equally by 11 witho... (by Zaita)
Right Justified Numbers
 
I'm trying to figure out how to output some digits that are all right justified without using setw()...
[no replies]
Please help with rand function
 
I need to design a program that generates 100 random numbers and keeps a count of how many of those ...
[4 replies] Last: Thank You. You are awesome :) (by hanhthai)
Creating a read/write database.
 
I have a question. I can't seem to find any specifics. I won't to create a code where a use can inpu...
[2 replies] Last: You write a text file that looks like this: Full Name, Tele-phon-e--N... (by closed account 18hRX9L8)
Strange result of using delete char in class
 
Welcome! I have a problem with use of destructor in my program. If I am using delete *char in dest...
[5 replies] Last: It is not, you are just unlucky. As I said before temp->sign = new ch... (by ne555)
Why is this person using pointers?
 
I am just getting back into C++, but I have been programming for quite some time. I decided to jump...
[6 replies] Last: Sweet! Thanks guys! I notice the guy does that for most of the poin... (by DoctorWhy)
Function
 
How to include a function incx to increment the value of x by one?
[2 replies] Last: const static unsigned short int Increment(const static unsigned short... (by Pickle Gunner)
Overloading functions on c++
 
Hello, does this code seem avoid a duplication of code in each of these functions? I need to call on...
[1 reply] : This is as efficient as you will need it, Btw though - Test if all 3 n... (by Pickle Gunner)
Matrix Product
 
Here is my code so far, but I dont know what to do now. I am trying to write a function that takes 3...
[1 reply] : Use code tags: http://www.cplusplus.com/articles/jEywvCM9/ You should... (by eklavya sharma 2)
Algorithm puzzle
 
I am currently taking a cs class and have this assignment. I am completely lost, so any help would b...
[no replies]
scanf(...)
 
Hello all, I have a problem interpreting the code. I know that scanf will pass stdin into the se...
[9 replies] Last: g=*(buffer+nextc++); Does this mean: g=buffer ; nextc++; ? ... (by knowNothing)
order of operations
 
Hey all I have a quick question how would a computer read this process. If a = 52, b = 13, c = 4, a...
[1 reply] : You need to consult a C++ operator precedence table: http://en.cpprefe... (by Catfish3)
Trouble with obtaining strings from console.
 
void Result::Input() { system("cls"); std::cout<<"ENTER STUDENT'S ROLL. NO.: "; std:...
[1 reply] : you need to catch the newline. void Result::Input() { system("cl... (by Yanson)
The cost of an algorithm
 
how i can calculate The cost of this algorithm? for(int i=1 ; i<=n ; i++) { sumi +...
[7 replies] Last: In the inner loop you've got j increasing and n decreasing. It ends wi... (by ne555)
power function instead of pow function
 
i have to make power function instead of pow function ex: x^y it's easy if y is integer but it's to ...
[2 replies] Last: yes it's premitted i will try it thank you ^_^ . (by medo sayed)
I am struggling on the "Password Verification" problem
 
I have been working on this problem for a while and I cannot get the program to accept my arguments....
[3 replies] Last: Ok thanks for the advice! (by solemnservant)
Shuffle Card Deck
 
We had a 10 minute lecture then were given this problem. Write a program to simulate a deck of 52...
[no replies]
Converting char array into int array
 
i am having trouble finding a way to convert a char array into an int array. say i had a char arr...
[no replies]
Help using "strtok" in C
 
I need to tokenize a string and have an array of pointers point to each word. If somebody could plea...
[no replies]
April 2013 Pages: 1... 4445464748... 83
  Archived months: [mar2013] [may2013]

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