49,757 Topics

Member Avatar for
Member Avatar for moorekwl92

Hey i'm [B]trying[/B] to write code for a word utility program for a uni project and it is bugging the hell out of me. [CODE]#include <stdio.h> #include <string> #include <iostream> #include <fstream> #include <Windows.h> #include <string.h> #include <cctype> #include <algorithm> #include <vector> using namespace std; const int size=300; int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,i1,option,Mirrorimage,spacenumber=0,characternumber=0,averagelength=0,Uppercase; …

Member Avatar for rubberman
0
170
Member Avatar for errorlog2

Hello Programers, web designers, reverse engineers, coders, game coders [COLOR="Red"]other...[/COLOR] What Language Do i First learn to master all? i have a small knowledge in VB6 and vb.net but what do i need to learn first to master all language im dedicated to study hard and master the languages and …

Member Avatar for ntrncx
0
188
Member Avatar for msnasiri

Hello, I need to a webservice that could be use in c++ and php and easily work on linux and windows compilers (my windows compiler is visual c++ 6) can anyone help me on this?

Member Avatar for msnasiri
0
118
Member Avatar for android_sylph
Member Avatar for JB Audio

Hi all. I hope this is the right place to post this. I am a music technology student and I've recently picked up learning C++ as it would greatly help my career knowing a programming language, especially this one since it is used in the video games industry. Anyways onto …

Member Avatar for rubberman
0
632
Member Avatar for jambul_16

please some one can give the idea... what kind of program can i make by using this contains at least 4 techniques (array, function, pointer, structures, file processing, object-oriented) by using c++.... PLEASE I NEED IdEa...

Member Avatar for rubberman
-1
105
Member Avatar for jshoot

Hi everyone, My question is: I have two vectors, for example vectorA and vectorB, vectorA is filled with randomics values, like 23, 43, 54, etc, and its have 1000 members, like vectorA[0], vectorA[1], etc. My vectorB descending of vectorA, I use the "push_back" function to take the values of vectorA, …

Member Avatar for jshoot
0
265
Member Avatar for margeaux54

Hello. I have a two [B][COLOR="Red"]structure[/COLOR][/B] arrays that are sorted. ı wanted to put these arrays into third array as a sorted. and then ı wanted to put these values into the file. into my array one and array two , there is no same number so ı thought something …

Member Avatar for margeaux54
0
243
Member Avatar for sparkthesunoff

So i have a matrix. (n rows, m cols), and my program has to count the number of rows, where all the cols were >0. For eg. there are n cities, and m bird species. The program has to count the number of cities, where all the bird species (m) …

Member Avatar for jonsca
0
100
Member Avatar for Swiftle

Hello, I need a way to wait for threads and I don't think that pthread_join works in my case. Here's the problem. I'm currently working on a very basic space game. We have vehicles that collect resources and must bring them back to the HQ. In order to do this …

Member Avatar for L7Sqr
0
112
Member Avatar for rajeevpareek

Hi, I am trying to pass a string to a MACRO using -D option in gcc. I am not getting desired output, below is snippet, please let me know what I am missing. $ gcc -o finame -D CORE="op1_log.txt" finame.c [CODE] #define STR(x) x int main() { FILE *fp; char …

Member Avatar for thekashyap
0
7K
Member Avatar for C.Cen

Hey guys, I need to make a program that lists out an average, highest and lowest stock price over a one month period. I'm focusing on the average first but it's already giving me problems. [url]http://omg.wthax.org/error_4.png[/url] Here's what I have so far. [CODE] # include <iostream> using namespace std; int …

Member Avatar for DHEERESSAA
0
240
Member Avatar for sreekiranws

Hello I need to do a line by line compare between two Msword 07 documents. I've tried the conventional way of using getline and compare but it doesnt work. While step by step execution, the program is unable to recognise the format of the sentences in the word document. I …

Member Avatar for jonsca
0
211
Member Avatar for liphoso

I would like to write function that takes the input from the user and stores it in an array. my problem is that i do not know how long the input is going to be. i read up on dynamic arrays and pointers but got very confused. e.g. if the …

Member Avatar for liphoso
0
144
Member Avatar for opawix

heres my code: [CODE]#include<iostream> using namespace std; int main() { int x; for(x=3; x<=47; x++) { cout<<x; } system("pause"); return 0; } [/CODE] i just want a little help with this problem: this code cout counts from 3 to 47 but i want to cout 3 then adding 2 to …

Member Avatar for opawix
0
87
Member Avatar for salty11

this code is meant to input words from file, and output to file the amount of letters in them and how many words there are [CODE]#include<iostream> #include<iomanip> #include<fstream> #include<cmath> #include<conio.h> #define in_file "data.txt"//input file name #define out_file "result.txt"//output file name using namespace std; void inputwords(int&, int&); void outputwords(int, int); ifstream …

Member Avatar for WaltP
0
633
Member Avatar for vishalgupta9x

[CODE] ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_DIALOG1 DIALOGEX 0, 0, 316, 180 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Dialog" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "OK",IDOK,205,159,50,14 PUSHBUTTON "Cancel",IDCANCEL,259,159,50,14 END[/CODE] [CODE] case WM_INITDIALOG: RECT rc; GetClientRect(hwnd,&rc); break; [/CODE] I am …

0
46
Member Avatar for lochnessmonster

i recently asked a on a forum how to handle the problem if a user pushes onto a full stack or pops from an empty stack on how to handle this problem..... my question is could anyone give a accurate example code of the first example he gave me below? …

Member Avatar for WaltP
0
92
Member Avatar for maybnxtseasn

when you make a .cpp file with just functions and call it your library, is it still proper to provide a .h file with it that has the functions prototypes in it?

Member Avatar for rubberman
0
55
Member Avatar for sdr001

I am trying to make a binary tree. I have a node with a field for data, yes and no. The problem I am having is that I need the yes and the no to point to a different node but I do not believe it is doing that. In …

Member Avatar for rubberman
0
96
Member Avatar for subith86

Hi friends, I was understanding the concept of friend functions. I read in my book that there are two possible ways of "making friendship":cool: 1. Make a class a friend. 2. Make the method in a class a friend. I am able to write a code for the first point. …

Member Avatar for jonsca
0
2K
Member Avatar for winecoding

I am trying to learn operator overloading by working on overloading >> for a matrix class to enable the key-board based input for a matrix by calling sth such as [CODE]Matrix M1; cin >> M1; [/CODE] The operator overloading part is given in the following [CODE]istream &operator>>(istream &in, Matrix &m) …

Member Avatar for rubberman
0
228
Member Avatar for amari ♥

i need to place the correct functions .. the goal is to be able to add, delete, display dota heroes [CODE]#include<stdio.h> #include<conio.h> #include<string.h> #define N 3 typedef struct{ /*Place fields here.*/ }name; typedef struct{ /*Place fields here.*/ }hero; typedef struct{ /*Place fields here.*/ }hero_info; typedef struct{ /*Place fields here.*/ }hero_rec; …

Member Avatar for rubberman
0
125
Member Avatar for scarlettmoon

Hello, I would really appreciate if someone could tell me what is wrong with this function. When I execute the program it returns the memory address and not the calculated average. I have not included the entire program, there is a sort function and scores are entered by the user …

Member Avatar for mike_2000_17
0
378
Member Avatar for subith86

Hi friends, One of my class member function is supposed to return an array of integers. Here's the function. [CODE]int* MyClass::getallVars() { int* a = new int; int b[] = { GetparentVar1(), GetparentVar2(), GetchildVar1(), GetchildVar2(), }; a=b; return a; }[/CODE] Is there anyway I can do this without the use …

Member Avatar for subith86
0
174
Member Avatar for newwbee

my assignment is to figure out the output but im bot sure i got it right here is the Q A variable x globally defined in your program is assigned the integer value 3. A variable x defined in a function named f_name is assigned the integer value 5. Answer …

Member Avatar for jonsca
0
191
Member Avatar for BTW8892

I'm trying to create a program where it reads in the high and low temperatures for each month of the year using a 2D array. However, I cannot seem to get it working correctly. It outputs a bunch of strange numbers. [code] #include <iostream> #include <iomanip> using namespace std; const …

Member Avatar for vmanes
0
112
Member Avatar for sirko

I need to make a program run just one copy of it using Mutex. But I coudn't find anything on using Mutex in c++.

Member Avatar for rubberman
0
189
Member Avatar for jackmaverick1

Hi! I read the clearing input buffer article on the top of the c++ forum but I don't really get it, and it doesn't work. This is my problem, I know that cin is just like a file in that it has a buffer (correct me if I'm wrong, I …

Member Avatar for jackmaverick1
0
203
Member Avatar for sdr001

Hello, I am trying to test my binary tree, but I am getting errors: The error occurs when I try to call a template function. For example: tree.insertNode(inp);. I get this error: request for member âinsertNodeâ in âtreeâ, which is of non-class type âmain()::binaryTree ()()â . I have defined my …

Member Avatar for sdr001
0
113

The End.