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

Need help in generating a list of all its prime factors
 
I am a beginner of C programming and I would like to know how to deal with this task: Write a C program, when inputing an integer, a list of all its prime fa...
[5 replies] Last: ok you're wright I will discontinue doing this in the future. sorry ^^ (by sasanet)
Logical Problem with Arrays, please need some assistance
 
Write a few lines of code (not a separate function) to do the following: 1. Ask the user for 9 integers as the entries of a 3 x 3 table. 2. Fill the ...
[9 replies] Last: nvm i just got it basically what i did was removed the cout part so it... (by NYCrealist123)
c++ timer and enter key localising
 
so i wanna make a timer which counts up to when the user presses enter key. any idea on how that could happen if i'm using int wait(int seconds) { clock_t ...
[14 replies] Last: Well, most of us in the Western Hemisphere measure time since the year... (by Duthomhas)
by snaz
How to create a 0 & x's using C language not C++
 
i'm stragling with thus project i'm busy with of creating this game( NAUGHTS & CROSSES) using C language not C++. i need help and advise on how to do it using c...
[2 replies] Last: thanx 4 the advice bt we where intructed to use C language only. than... (by snaz)
Counting Days Between two dates
 
I'm trying to count the days between two dates. So far I am using an overloaded operator function so when it subracts it performs a series of calculations as we...
[2 replies] Last: There is also the method of the julian day number. Convert your two da... (by bartoli)
Is static an OOP feature?
 
Do static class members (fields and methods) belong to OOP paradigm, or not?
[4 replies] Last: Agreed it is not really relevant, because C++ is not pure OOP, with or... (by rapidcoder)
Need help with a flowchart
 
I need help with a flowchart in a question I'm doing. I've completed the programming code but just have no idea on flowcharts if anyone can give me an idea on h...
[1 reply] : Each of the steps where you do something like Enter num1 goes in a r... (by kbw)
Concav or Convex
 
Hello folks. im trying to code a program. and here is the simple algoritm: N:number of points in polygon (keyboard input) for i=0;i<N { input x ,y //array...
[4 replies] Last: Algebra ( u x v )_z = |u| |v| sin(theta) (by ne555)
by nogy
need help urgently!!!
 
the question says : The C++ programming course has 250 students. As each students needs his/her heavy textbook in class and lab, lockers are to be assigned to...
[1 reply] : If 0 =='open' and 1=='closed' after 1st pass all locker doors are open... (by buffbill)
by rhyed
notepad database
 
I'm currently working on c++ program that uses notepad us database. My problem is that how can i delete data from the notepad when i make any changes in the sto...
[3 replies] Last: If it's finding the characters (position in a string) to remove, you c... (by closed account Lv0f92yv)
copy integer array into string array
 
Stack.cpp: In copy constructor ‘Stack::Stack(const Stack&)’: Stack.cpp:48: error: cannot convert ‘int*’ to ‘char*’ for argument ‘1’ to ‘char*...
[3 replies] Last: after Zhuge: a ={1,2,3,4,5,6,7,8,9}; b ={0}; for(int i=0;i<10;i++) b ... (by buffbill)
check signature, how?
 
Hi, i have file_data(xml format) and file_signature(ASN1 DER), and also have certificate(X509 ASN1 DER). I want to check if file_data is correct, but I have som...
[no replies]
help with random presses generator
 
I don't know how to write program with funcion generate random keyboard presses (no writing keys, but presses keyboard. If i using DEVC++ it dont knows couple o...
[no replies]
Array multiplication problem
 
int arr = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; Write a few lines of code (not a separate function) that will find the product of rows 0 and 1 of arr. Print...
[6 replies] Last: You're welcome. Glad that was enough to solve the problem. (by closed account D80DSL3A)
Need some help here....
 
Hey guys, First of all, love the boards. They have definetly helped me through some tough times this semester. That being said, I need some help here. I a...
[10 replies] Last: Sorry. I won't supply a complete solution. Maybe someone else will. I'... (by closed account D80DSL3A)
sorting list
 
1)add function to sort the list in ascending order of values. 2)Use the same print function to now print the values in ascending order. this is where im st...
[1 reply] : this is where im stuck Where are you stuck? What is not working righ... (by closed account D80DSL3A)
variable parameters
 
void vMerge(vector<int> *dest, vector<int> v2, ...) { va_list param; va_start(param,v2); // dest <- v2 dest->insert(dest->end(),v2.begin(),...
[2 replies] Last: Also, don't use variadic argument lists with non-POD types. (by Duthomhas)
Trouble reading from .dat file....plz help!
 
I've created a programm where some1 can choose between entering or printing (on the screen) the name,surname and code of students.These are written in a file i ...
[6 replies] Last: umm...no.i type for example Alba,and press Enter button.Then it just d... (by strawhat)
2d animation
 
Any ideas on how this could be coded? For example, a knight riding at another knight then stabbing him. I was thinking "taking apart" the graphics. i.e. I wo...
[12 replies] Last: Brilliant! Good job! (by Duthomhas)
brute force recursive sudoku solver
 
Dear All, Could anyone help with this Sudoku brute force recursive solver? (shown below): It gets caught in a loop I think. I've also included the algorithm ...
[no replies]
April 2011 Pages: 1... 1920212223... 37
  Archived months: [mar2011] [may2011]

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