49,761 Topics
| |
Hello! So recently I have written a lexer/tokenizer and am working on a parser for a language with a friend. At this point everything is going great but I'm beginning to think about how I want to do code generation. Are there languages or systems that generate for example C … | |
HI I am trying to make a dll file that performs its tasks using CUDA library. Here is a simple version of my code: CUDADll.cu ` #include <iostream> #include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" __global__ void test(int a, int b, int* c) { *c = a+b; } extern "C" __declspec(dllexport) … | |
Hello! I am having a bit of a hard time figure out how to code this thing.. I have just started coding by using windows form application and need some help.. I have successfully coded so that I can open a txt file without any problem, but it is reading … | |
Hi, I am trying to call the borland C++ DLL from VS 2005 .But its giving Linking Error. Tried teh below one still its not working , Extract the DEF file from DLL converted the DEF to LIB file. Any one have any idea ? Thanks, Angelin | |
So I'm trying to validate dates and I have this else if "bool" that always returns false. I've written this at least 10 times and can't get it to work. When I comment everything out and only try one if at a time they all work. I know it's semantics, … | |
Hi. how do you make a registration system using turbo C++? like for example: when i run the program i will register my username and password and my information(user and pass) will be saved. So that when i log in. i will just input my user and pass, and i … | |
> I want to create a program that will calculate the day easter will be on. The user will type in a year and then the program should calculate the day easter will be on. I'm having trouble understanding the if/else and how i can use that with the code … | |
i really need your help and really fast. i've been working on this project where i am supposed to create a simulation of conway's game of life. A cell can only be in one of two states: alive or dead. There are two kinds of cells: ConwayCells and FredkinCells. Live … | |
Hey Guys! I have to read data from a text file, load it into an array and then bubble sort it! Here is my code: #include <iostream> #include <string> #include <fstream> using namespace std; void Bubble_Sort(string arr[], int length); int main() { int length; length=10,000; ifstream MyFile; ofstream out; string … | |
Hey guys, this is my solution to a simple problem and I was looking for some feedback on my code. Please post any criticism you may have about it. //Test project for string to binary conversion// #include <iostream> #include <string> using namespace std; void binConvert(string ConvertMe){ int ArraySize = ConvertMe.length(); … | |
Factorials get large very rapidly. The factorial of 13 is !13 = 1*2*3*4*5*6*7*8*9*10*11*12*13 = 6227020800. This number already exceeds the unsigned long integer, and gets into the real money as the politicians say! This program uses an array of characters to store the factorial as a numeric string. Go ahead, … | |
i am getting result of average in int instead of float, tell me where i have made mistake. this is the code. #include<iostream> using namespace std; void getData (int a[], int s); int numbersSum (int a[], int s); float average (int sum, int size); int main() { int size=0; int … | |
Hello, I'm currently trying to figure out how I could go about taking a getline putting the one line into an array and then putting the first value aka array[o] into a command variable and then all the next values on the line into seperate variables of integer for key … | |
how to test if a num is a square root? ex: 9 is square root 3 is not square root ///////////////////////////////////////////// //do not worry about sytax. int x = 0; //always start at 0 int y = 101010; //is this a square root? square(x, y){ if((x*x) >= y){ //not a … | |
I am doing a school project which is an airplane collision detection system. Can anyone show me a few examples or pseudocode of implementation of closest pair algorithm O(n^2), O(n log^2 n), O(n log n)? | |
if(company[i][j] < 0) { loss = loss++; } else //Im trying to Get the number of losses and not the actual input numbers"for example loike 1 loss, 2 loss etc | |
Hi I got an assignment from my instructor with this exact instruction: "Your main function should call the function int getUserOption() *to display the option menu to the user*. The function should **return an int value** indicating the option selected by the user, and the main function should use this … | |
I need help with this two questions, its not hard for experts I guess, here it is: Determine the time of executing the following algorithm fragment: a) if (x == 0) then for i = 1 to n do a[i] = i; b) i = 1; repeat a[i] = b[i] … | |
**Ok the problem is this. I have the groups I want added to the administrator, and remote desktop users group on the local machine, and all that works fine. If you hit windowsKey+pause , or right click on "My Computer" and go to advanced settings, remote tab. At the top … | |
hello everyone! i have a quiz about 2D Arrays. and i don't know how the questions might be, can you help me :) thank you. PS:please correct my grammar mistakes if you see any, i'm here to learn. thank you | |
Hey everyone. I am working on learning how to make some different controls with win32 and at the moment I amt trying to make a combobox with small images next to each option. However when I run my code the options are there but the images are missing. Can anyone … | |
Hey guys, I've been working on a little project of mine, and part of it requires sorting. I'm using bubble sort and before I put the algorithm in the code, the program ran fine. void ranking(){ int count = getcount("all"); // get total members and save value to count int* … | |
I am trying to create a simple transparent window where I can draw with Direct2D. So far what I have done: 1. Created window 2. Set style to **WS_EX_LAYERED** 3. Set alpha color key as #FFF 4. Draw using Windows Graphics a white rectangle 5. Now window is transparent with … | |
Please help me to perform this code! I'm beginner and want to know how it's look like! thank you To create abstract data type (structure) - vector that comprises a pointer to the target and the number of elements. To define initialization functions, the removal of a vector, set / … | |
I'm a bit lost. I am trying to take an input file and use the data inside as a command as well as the data. So my input file would look like this: *B 127.2 Hi 183.2 Someone 23.8 Lost* Where "B" would call the specific function it is attached … | |
Hey guys! I wan't to write a facial recognition software in C++ My platform is on a MAC. Please Suggest some good examples Thank you.. | |
Ok, so, I've been scrounging around the internet looking for a decent C++ Keylogger that is able to be hidden (Not showing a console window) and have been very unsuccessful, I need help building one or finding one that works PROPERLY. I use Codeblocks compiler, similar to Dev-Cpp. Any help … | |
| CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on … |
for those people who are good in making a visual studio C++ program.. I need some help for my project about creating a program that will convert dollar value into peso and vice versa. | |
Hi I need help to draw a circle using c++. I have never used any programming before and have to do computer science to become a Maths Teacher. My first task is to write a program to draw a circle with the user inputing two x,y coordinates and the centre … |
The End.