49,761 Topics

Member Avatar for
Member Avatar for cwarn23

I've followed a tutorial for making php extensions in C++ and although there are no compilation errors, the extension just won't communicate with php. The tutorial is at [URL="http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions"]http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions[/URL] and my code is as follows: main.cpp [code=c++]#include "stdafx.h" ZEND_FUNCTION(fetch_talkphp_links); zend_function_entry talkphp_ext_functions[] = { ZEND_FE(fetch_talkphp_links, NULL) {NULL, NULL, NULL} }; zend_module_entry …

Member Avatar for Muhammad_137
0
1K
Member Avatar for can-mohan

Hi All, In below code i am getting ouput of process (based on name) memory and cpu utilization % using command "ps -C gnome-terminal -o %cpu,%mem | tail -n +2" .Here gnome-terminal is name of process for that i am printing these values. Now i want to implement the same …

0
149
Member Avatar for Sam_20

Hello, I have to create a program that uses the ‘new’ operator to create a dynamic array in heap of the program. The program creates and populates its dynamic array one (int) elements at a time for each input data (cin). Key parts of the assignment. Hello, I have to …

Member Avatar for rubberman
0
370
Member Avatar for Sherwin_4

Good evening everyone, Does any one have a reference/videos/tutorials on how to use recursion effecitely in C++? v/r

Member Avatar for Chris_38
0
356
Member Avatar for Haris_5

I am creating mfc antivirus application, but i am struct in between , i have completed till scanning directory but how to detect the antivirus in it,is there anyone to help?

Member Avatar for rubberman
0
242
Member Avatar for Sherwin_4

Good morning everyone, The library will be home, 0800 till 2100. I've been working on trying my loops in my hailstone sequence into recursions. It seem recursion can easrier to do, instead of creating loops. I say seem, because now I have come to halt on my progress. The halt …

Member Avatar for JamesCherrill
0
781
Member Avatar for toneranger

Hi All, All of my programming was done in Visual Studio Express 2008 version. Thinking of upgrading to 2015 now that I have a Win 10 machine and given that I want to start learning some of the new functionality re C++ 11 and 14. Any tips/thoughts on how to …

Member Avatar for rproffitt
0
180
Member Avatar for John_145

Does anyone have any tips on how to get better at C++ programming? I have a basic at best knowledge of C++ but find myslef lost in my second semester C++ programming class. Are there any resources that I can use or projects that I can work on that will …

Member Avatar for rubberman
0
391
Member Avatar for Raman_6

Need some help. I have the below hardware details. attached Intel Core i7-3770 @ 3.40GHz 4 Cores 8 Logical Ivy Bridge-DT 4 x (32 + 32 + 256) + 8M Cache Features enabled MMX SSE SSE-2 SSE-3 SSSE-3 SSE4.1 SSE4.2 AVX DEP VMX SMX SMEP EM64T EIST TM1 TM2 HTT …

Member Avatar for rubberman
0
322
Member Avatar for eel

Currently writing a program for an OOP course on encapsulation. The program is required to instantiate **only one object in main**, but then instantiate multiple objects, within the first object, to perform calculations on arrays (`Values`)held within each object. I have been taught that I should ensure that objects are …

1
118
Member Avatar for Agata_1

I need help trying to create a loop to calculate asset depreciation within these paramaters. Part 3) Calculate Depreciation by declining balance. In a company, fixed assets such as equipment lose their value over time and this charge is called depreciation. Equipment is rarely valued as worthless ie $0, even …

Member Avatar for rubberman
0
1K
Member Avatar for Sherwin_4

Good afternoon everyone, I'm currently working towards to provide the following output for my code: What number shall i start with? 7 The hailstone sequence starting at 7 is: 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1 The length of the …

Member Avatar for Sherwin_4
0
2K
Member Avatar for Sukhdeep_1

i have just installed c builder and i was doing a simple program and when i set to run it is giving me this error: [Linker Fatal Error] Fatal: Could not open C:\Program Files (x86)\Borland\CBuilder6\Projects\Project1.exe (error code 5) . i read some comments and i saw that i have to …

Member Avatar for rproffitt
0
491
Member Avatar for Tre Sivileo

I am coding a roman to arabic console program for class been having issue with it I am not sure how to get the next char after the the first char I have tried everything I am not allowed to use cin.peek(). Also my output loop generates p = 0 …

Member Avatar for tinstaafl
0
300
Member Avatar for Rehana_1

Hello could you help me win 12 slot keno...masslottery.com... I am trying so hard to understand your keno code online.. Could you please break it down for me...how do I beat the computer...

Member Avatar for ddanbe
0
181
Member Avatar for vedmack

Heya i want to use ShowWindow(hWnd, SW_HIDE); to hide some application, The problem is that the code i wrote works perfectly for any application except the one i need it for heres the code [CODE] HWND hWnd = FindWindow(NULL, sName); if(hWnd) { ShowWindow(hWnd, SW_HIDE); } [/CODE] it does execute the …

Member Avatar for Gustav_1
0
10K
Member Avatar for Aromal

what should be the conditon used for checking whether the string is a palindrome or not by using 2 variables in a for loop ?

Member Avatar for JamesCherrill
0
83
Member Avatar for Eugene_8

hi guys im new to c++ can i have some assist ? The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets box, sideline, premium, and general admission. After each game, data is …

Member Avatar for rproffitt
0
617
Member Avatar for sweety

This is a program..to implement stack operations..it is working fine..but a warning message is being displayed..as " Functions containing for are not expanded inline". I would be glad if anyone can tell me the reason for this. Thanks for all the support. #include<iostream.h> #include<conio.h> #include<stdlib.h> #define max 5 [CODE]class stack …

Member Avatar for Tiger_3
0
15K
Member Avatar for Mirwais_2

>..... Write a Program code to Overload The following Operators in C++. < (greater than) && (logical AND) % (Reaminder).

Member Avatar for rproffitt
-3
79
Member Avatar for 고시퍼

#include <stdio.h> int main(void) int movieChoice; int seatNum; int seatPlan[5][10] = { 0 }; int rows, cols; char space; void seatDisplay(int a[][10]); void seatNew(int n[][10]); void seatDisplay(int a[][10]) { //this function shows the seat plan for (int i = 0; i<5; i++) { for (int j = 0; j<10; j++) …

Member Avatar for David W
0
549
Member Avatar for irbaaz

cout << "What is your name?" << "\n" << endl; cin >> name; cout << "Have you got a full drivers license?" "\n" << endl; cin >> drivinglicense; cout << "what is your address?" << "\n" << endl; cin >> address; cout << "what is your telephone number?"<< "\n" << …

Member Avatar for rubberman
0
277
Member Avatar for David_94

Hi, I am writing a library that does some heavy computation, and so I have been trying to speed things up with some low level parallelism. My machine runs Ubuntu 16.04, and is an old i7, but has four virtual cores. I tried to use openMP, and while it runs …

0
156
Member Avatar for Qayyum_1

write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT. get the input from user may include -Bank balance -Amount invested in business -Amount given to other business partners as loan and -Amount payable to others

Member Avatar for neon_2
0
4K
Member Avatar for Peter_36

I made a prime number finder, it finds the nearest prime that is above and below any integer (Does not work that well with giant numbers.) Made this in cpp.sh Why would I need the x=y+1-1;? x=y; just doesnt seem to work Why is this? And I know my coding …

Member Avatar for JamesCherrill
0
489
Member Avatar for vegaseat

A little calculator written in BCX basic and then translated to C code and modified to compile with Dev C++ (GCC/G++). Once you find your way past the standard GUI gibberish you can figure it out. For those who need some hand holding with the Dev C++ IDE: In the …

Member Avatar for rproffitt
1
6K
Member Avatar for William Hemsworth
Member Avatar for Uchenna_1
0
9K
Member Avatar for Sam_31

#include <iostream> using namespace std; void enterData(double firstMatrix[][10], double secondMatrix[][10], int rowSecondFirst, int columnCountFirst, int rowCountSecond, int columnCountSecond); void multiplyMatrices(double firstMatrix[][10], double secondMatrix[][10], double result[][10], int rowCountFirst, int columnCountFirst, int rowCountSecond, int columnCountSecond); void display(double mult[][10], double rowFirst, double columnSecond); int i, j, k; int main() { double firstMatrix[10][10], secondMatrix[10][10], …

Member Avatar for AssertNull
0
286
Member Avatar for DeanMSands3

Hi, Daniweb. I have this hobby project I'm playing with where I need to generate data for a MonteCarlo simulation. The data needs to fit within a bell-curve around a given mean with a standard-deviation. I'm trying to figure out which random distribution system I need to use and how …

Member Avatar for DeanMSands3
0
384
Member Avatar for Dean_5

So... I've slept since college - meaning I've forgotten a few things. I need to do an inner-join on two large-ish sorted vectors. Thought about converting them to unsorted sets and walking through "find-ing", but I'm pretty sure this is the fastest way to do it - and still accurately. …

Member Avatar for StuXYZ
0
2K

The End.