49,761 Topics
| |
Hi, i'm new here and this is my first tread. I'm a computer student and trying to gain usefull that may be valuable latter on, so... Is there anyway to make a counter in c++? I've been looking and i've found none yet(similar but no what i want). What i … | |
Hey guys I was wondering, I like to try to improve my skills by seeking formulas and programming them into code, like currency formulas BMI formulas time formulas, hell even speed of light formulas, do you guys know any sites that have a list of formulas to program for kits … | |
hi i am yuvaraj doing final year in engineering i need to know how to create a os using c or c++ . i know how to make an application program using c or c++. but the function of os is to control hardware .i dont know the c++ instructions … | |
Hi Guys, I need to make remote app control via network where I can lock a computer and terminate all applications running. currently I don't have any technical direction on how to lock and terminate. I have no problem where to start on network and sockets! please point me to … | |
Hi all, I am trying to match an image of size 64 X 64 inside a 512 X 512 image. I have successfully coded the spatial normalized cross correlation (NCC) but it is taking too much time (8 sec.) I want to perform the NCC in frequency domain. I know … | |
Hi guys, As some of you may know im working on learning more c++ and trying to become a good programmer, iv got things like classes, function pointers and template classes under the belt as far as i can see (although to be honest i have never found a place … | |
I decided to just try and make a program that would identify what KIND of expression you entered, not even evaluate it. Just for it to say: “You entered an addition equation. ” when you enter an equation with a value, a plus sign, then another value … and so … | |
I am new to C++. i want to write a program that finds factors of a no. and puts them in array and prints it. i have written a program but it is wrong. PLease correct it.Thank you. [CODE]#include<iostream> using namespace std; int main() { int b,c,i; int myarray= [10]; … | |
hi can anyone help me with my code, im trying to write a bigInt multiply function but this function got some bugs(it prints additional zero at the left side) input: 3 2 output 06 and ... [code] #include <cstring> #include <iostream> using namespace std; const int mmax = 10000; char … | |
Hello and good evening I'm trying to make a a program that will take text from a input file to a variable in main then use that variable with nested while loops to count all the spaces in the text then display it using cout. I been at this for … | |
Hello, I am trying to create a function that accepts an integer and a double and squares both values. I have to pass the values by reference. I am new to c++ and don't understand this and I do not understand functions very much when trying to pass more than … | |
I need help trying to write the c++ code on the following algorithm. Can anyone please help! I am totally confused on what to do. // Set TotalTax to 0 // Set TotalGrossEarnings to 0 // Set TotalMedicalLevy to 0 // Set TotalEarnings to 0 // Display Heading // Read … | |
I am new to C++ so I am trying to understand why the program behaves differently if you do this [CODE] #include <fstream> #include <iostream> #include <cstdlib> using namespace std; int main() { ifstream fin; ofstream fout; fin.open("getfromthisfile.txt"); if(fin.fail()) { cout << "Input file opening failed.\n"; exit(1); } fout.open("sendtothisfile.txt"); if(fin.fail()) … | |
i need to submit a car racing in C language using graphic functioins and to derive a track on which i have to run a car in particular time.. in short i have to make a game in C having the phenomenon to beat the clock | |
hello guys i have some questions and i want you to help me 1- how to find a factorial for a number e.g. input 5 = 5x4x3x2x1 so the is output 120, now please see my code [CODE]int fac = 0 ; int count = 0; int num; cout <<"Please … | |
Ok people, I understand stacks and heaps, but when it comes to recursivity and binary trees, i have a major problem trying to understand this. if someone peopl explain me, how this recur. stuff works, I would be happy! For example, where the value goes, wich function is called and … | |
I'm actually trying to do this in objective c, but I belive the theory probarbly are the same for C++. Heres an example of what I want to do with a simple, working, example using an integer: [CODE=c]void func2(int *i) { *i = 2; } void func1() { int i … | |
Hello, i've tried to use Windows sockets not in my LAN and i've noticed that every time my program starts it gets CPU overflowed weirdly [code=c] ProgramConfig myConfig = ExecuteServerConfig("config.ini"); WSAData wData; if(WSAStartup(MAKEWORD(2,2),&wData) == -1)return 0; sockaddr_in serveraddr; int sock = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); serveraddr.sin_port = htons(myConfig.Port); serveraddr.sin_addr.s_addr = inet_addr(myConfig.Server); serveraddr.sin_family = … | |
Hi, I'm new to C/C++ but have worked with PHP for years and want to make a program to tie in with my web applications. I want to write a program that listens on port 80 for incoming HTTP/HTTPS traffic to a web browser. Then checks HTTP headers from a … | |
Hi everyone, I think I nearly have this program running right except for printing the adjacency matrix. Here's the code I have: [CODE]#include <iostream> #include <string> #include <memory.h> using namespace std; class Graph { public: static const int MAX_ROWS = 6; static const int MAX_COLS = 6; Graph(); ~Graph() { … | |
| #include <iostream> #include <stdio.h> using namespace std ; int main () { char c ; c = cin.get () ; do { cout.put (toupper (c)) ; c = cin.get () ; } while ( !cin.eof () ) ; } How can I make this capitalize only the first letter of … |
hello everyone Q1-see this equation [url]http://www.daniweb.com/forums/attachment.php?attachmentid=15688&stc=1&d=1278298959[/url] is this the correct code for this Q1? [code]#include<iostream> using namespace std; int main() { float s=0,p; int i,j; float x; cout<<"x="; cin>>x; for(j=1;j<=6;j++) { p=1; for(i=1;i<=j;i++) p*=x; if(j%2==0) s+=(-p/j); else s+=(p/j); } cout<<"ln("<<x+1<<")="<<s<<endl; system("pause"); return 0; } [/code] *** Q2- i want to … | |
Hello, could someone be so kind as to give me a short tutorial on how to use a function that accepts multiples values and parameters using references. I need to create a function that accepts an int and a double and squares both values by using references. I'm not sure … | |
Hi, How to explore libraries, by that i mean open and look at its source code? I am using Embarcadero RAD Studio 2010. For example i want to see functions inside #include <list>. | |
| I've searched the C++ forums and cannot find anything that relates to my question. I am writing a program (for class) that opens a txt file and reads doubles from the file, then computes the standard deviation of the numbers in the file. In order to do this, I am … |
Hello everyone, I am trying to pre-allocate a certain number of nodes to a linked list, I allocate 10 nodes at first and, if I have more data to store, I'll need to resize it by adding half of the total number of nodes, sort of like 10, second time … | |
hello I'm writing a program. this program needs to create a few files & use them. where should it create the fils? the program should not create the files in the same folder as itself. because it will be in C:\Program Files where Windows Seven won't allow to create files … | |
The recent assignment I was given in my programming class had me utilize a structure. Structures are not covered for another 10 chapters in our textbooks, however I did read up on them as much as I could to try to figure this thing out. I am still unsure on … | |
I want to do a double linked list that has has in each element one operator(+-*/) and one value of type double. I am having trouble in defining the class of the list. Should I use C++ Class Template Specialization or what? [CODE] include<iostream> using namespace std; template <typename T> … | |
Hi Guys, My name is Rahul and I own a tech consulting firm in NYC. My office is on 37th between 5th and 6th. I am in constant need for good resources. Most of my clients are direct. Currently I am looking for about 10 C++ developers. Its a 6 … |
The End.