49,761 Topics

Member Avatar for
Member Avatar for NardCake

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 …

Member Avatar for mark5rockzz_1
0
353
Member Avatar for 9tontruck

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) …

Member Avatar for mark5rockzz_1
0
2K
Member Avatar for Xakzi

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 …

Member Avatar for Xakzi
0
4K
Member Avatar for angelinrajeesha

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

Member Avatar for Ancient Dragon
0
265
Member Avatar for mc3330418

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, …

Member Avatar for Ketsuekiame
0
122
Member Avatar for Grandiago

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 …

Member Avatar for alicante09
0
882
Member Avatar for joester007

> 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 …

Member Avatar for AndrisP
0
4K
Member Avatar for ??!!

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 …

0
155
Member Avatar for waqas.zafar.125

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 …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for Sci3nc3F1cti0n

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(); …

Member Avatar for tinstaafl
0
784
Member Avatar for vegaseat

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, …

Member Avatar for vegaseat
0
1K
Member Avatar for kamalashraf

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 …

Member Avatar for Ancient Dragon
0
322
Member Avatar for Ravic85

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 …

Member Avatar for rubberman
0
223
Member Avatar for android_gl

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 …

Member Avatar for cwarn23
0
324
Member Avatar for kal_crazy

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)?

Member Avatar for DawnofanewEra
0
517
Member Avatar for maurice.tracey.7

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

Member Avatar for maurice.tracey.7
0
164
Member Avatar for Wireboy

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 …

Member Avatar for Moschops
0
211
Member Avatar for filipgothic

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] …

Member Avatar for filipgothic
0
262
Member Avatar for CodyOebel

**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 …

Member Avatar for CodyOebel
0
773
Member Avatar for Khalessi

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

Member Avatar for Khalessi
0
215
Member Avatar for TheNewKid

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 …

Member Avatar for mitrmkar
0
339
Member Avatar for Sci3nc3F1cti0n

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* …

Member Avatar for Sci3nc3F1cti0n
0
588
Member Avatar for bluejamesbond

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 …

0
188
Member Avatar for iana.bancila

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 / …

Member Avatar for NathanOliver
0
203
Member Avatar for Ravic85

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 …

Member Avatar for Ancient Dragon
0
218
Member Avatar for FazeLessWhite

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..

Member Avatar for rubberman
0
248
Member Avatar for Shft

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 …

Member Avatar for triumphost
-1
291
Member Avatar for andrew.mendonca.967

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 …

Member Avatar for phorce
0
4K
Member Avatar for iamsponge

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.

Member Avatar for rubberman
0
261
Member Avatar for Tyra

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 …

Member Avatar for CarminPolitano
0
233

The End.