C :: Finding Most Frequent Symbol With Markow Algorithm
Jan 30, 2013
I have such task. There is such alpahbet as {a, b} in markow algorithm concept. So I need to find out which letters (a or b) are more in word "p". If a then to retrieve the word with letter a, if-b-then word with letter "b", if there is equal quantity then 0. How to do it. Where to find such example, at least some clues how to begin.
View 1 Replies
ADVERTISEMENT
Mar 5, 2013
I have program. I need programing one game.
char girl;
char computer;
cout << "Girl choose one of symbol x or o";
so girl choose x.
problem : i need random symbol genetation. so if random symbol are x, than girl start play. if random symbol ar o, than computer start game. who to do this?
View 1 Replies
View Related
Jan 25, 2013
Whats the symbol for divide In C++
View 10 Replies
View Related
Dec 17, 2014
I want to get the occurence of the symbol ';' for each line of this C program. I type the name of the file Source.c and try to count the occuring symbol, but i am getting the value for ALL of the ';' for each line.
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>/* For exit() function */
int main()
{
char file_name[150];
FILE *file2 = 0;
gets(file_name);
[code]....
View 2 Replies
View Related
Nov 26, 2013
Why is this correct?
Code:
char str[10];
scanf("%s",&str);
I knew that when we have strings we should not use & in scanf()...
View 1 Replies
View Related
Feb 10, 2015
here is the code i have so far, basically you have ti enter a price in pounds and it will convert it to euros. i have got the conversion working i am just unsure how to get the euro symbol for the out put.
#include <iostream>
#include <iomanip>
#include <cassert>
using namespace std;
int main() {
char answer;
float sumInEuros;
int numberOfPrices;
[code]....
View 2 Replies
View Related
Aug 28, 2014
I am completely baffled by bin file read/write and positioning. Here I wish to search a chemical name info by symbol. Here is my struct
struct chemicalElement {
int atomicNumber;
char name[118];
char symbol[3];
float mass;
};
I successfully wrote to file.dat as binary but having problem in reading and searching...here is my func...
void searchSymbol(char sym, chemicalElement chemEl[]){
ifstream binFile;
unsigned short int i=0;
binFile.open("chemicalEl.dat", ios::binary);
if(binFile.good())
cout<<"File read for search"<<endl;
[Code]..
View 5 Replies
View Related
Apr 10, 2013
I'm doing a homework assignment where I have to calculate monthly interest from a starting balance. I've pulled several sections of the code from various parts of the book. So my problem may be that I'm not combining them correctly.
I'm getting the following error:
Error1error LNK2019: unresolved external symbol "public: __thiscall SavingsAccount::SavingsAccount(void)" (??0SavingsAccount@@QAE@XZ) referenced in function _main
The ios flags are new to me and that may be part of the problem. As soon as I can get a working program, I'm going to make the starting balance and interest rate user inputs. But I get seem to get past this error.
// Savings.cpp
// Chapter 10_Problem 10.7
#include <iostream>
[Code].....
View 12 Replies
View Related
Mar 10, 2014
Need to create a program in c++ to generate a symbol table of given assembly language program?
View 1 Replies
View Related
Nov 10, 2013
I am writing a linked list for a symbol table, but im getting a vast amount of errors.
Token.hpp:
#ifndef _Token_hpp
#define _Token_hpp
#include <string>
using std::string;
class Token {
string Type = "",
Name = "";
[Code] .....
View 6 Replies
View Related
Sep 16, 2014
I am trying to find the best way to detect a small symbol such as :
Just for testing features I tried to load these into SURF example that comes with EMGU and it does not pick it up... And I think the technology used for SURF is better for objects with more details and color gradients...
View 8 Replies
View Related
Jan 14, 2015
This is a file called namespaces.h
#pragma once
namespace mycode {
void foo();
}
This is a file called source.cpp
#include <iostream>
#include "namespaces.h"
namespace mycode {
void foo() {
std::cout << "foo() called in the mycode namespace" << std::endl;
}
}
When I try to run this code i keep getting these errors;
Error1error LNK2019: unresolved external symbol "void __cdecl mycode::foo(void)" (?foo@mycode@@YAXXZ) referenced in function _mainC:UsersHomeDesktopgameDevWin32Project1Win32Project1Source1.objWin32Project1
Error2error LNK1120: 1 unresolved externalsC:UsersHomeDesktopgameDevWin32Project1DebugWin32Project1.exeWin32Project1
this is a win32 console application, like the books says, the book i am working from that is.
View 11 Replies
View Related
Sep 19, 2013
I'm building a cross-platform library which links to some other 3rd party libraries at run time (i.e. on Windows, the other libs will be available as DLLs whereas on Linux / OS-X etc they'd be shared objects, which are similar). For the sake of argument, one of those libraries is called "jack".
Obviously, our app can't guarantee which version of the other libs will be on the user's system (or even that they'll be installed at all). So our code is littered with statements like this:-
Code:
if (!jack_port_type_get_buffer_size) {
warning << _("This version of JACK is old - you should upgrade to a newer version") << endmsg;
} else {
some_var = jack_port_type_get_buffer_size();
}
We link to the latest version of jack, where that symbol is declared like so:-
Code:
size_t jack_port_type_get_buffer_size();
One problem is that it doesn't even seem to be an exported symbol (although that wouldn't affect the other platform builds). But apart from that, our customer might have an old copy of jack installed or even no copy! We seem to be making the assumption that if our customer has an up-to-date version, jack_port_type_get_buffer_size will be set to a valid address - but in all other case it'll be magically set to zero (there's nothing in our code that sets it to zero).
View 5 Replies
View Related
Nov 27, 2013
If there are two projects A and B. A is created as .dll, while B is created as static library.
project A has a class "classA"
classA: public classB {
public:
testA();
};
project B has a class "classB"
classB {
public:
testB();
} ;
I want to make a symbol of classB::testB() in A.exp (like ?testB@classB@@QAEXXZ), can I do it by using __declspec(dllexport)?
Also if I make classB as a template class, can the symbol of classB::testB() be generated automatically in A.exp when building project A?
View 2 Replies
View Related
May 28, 2013
Here is the error I am getting:
1>d: estprojectgdiplusrenderer.h(61): error C2872: 'Font' : ambiguous symbol
1> could be 'c:program files (x86)microsoft visual studio 10.0vcincludecomdef.h(312) : Font'
1> or 'c:program files (x86)microsoft sdkswindowsv7.0aincludegdiplusheaders.h(244) : Gdiplus::Font'
How can I fix this issue?
View 2 Replies
View Related
Feb 25, 2014
My code is rather short, but when I compile it, I get 1 error about an unresolved external symbol, it probably has something to do with the file processing. . .
Just a basic keylogger using SDL
Keylogger.h
#ifndef KEYLOGGER_H
#define KEYLOGGER_H
#include <fstream>
#include <SDL.h>
using namespace std;
class Keylogger{
[Code] .....
Errors
Error1error LNK2019: unresolved external symbol __imp___CrtDbgReportW referenced in function "public: char const & __thiscall std::_String_const_iterator<class std::_String_val<struct std::_Simple_types<char> > >::operator*(void)const " (??D?$_String_const_iterator@V?$_String_val@U?$_Simple_types@D@std@@@std@@@std@@QBEABDXZ)C:Usersaviedocumentsvisual studio 2013ProjectsPracticePracticeKeylogger.objPractice
View 3 Replies
View Related
May 28, 2014
Im programming a roguelike game using visual c++ Microsoft express 2010 and i made a multidimensional array for my first map. I have the walls as # and was wondering how i could turn those into ascii symbol 219. Also i need to know how to turn specific text certain colors.
View 5 Replies
View Related
Apr 17, 2014
I'm writting program and need to convert int ot char array without simbol. I have tryed snprintf , but his returns array full of simbols if it is initilized elsware return full of garbidge. Is there any elegent way to aceave this? What I'm trying to aceave is liek this:
char buffer[10];
int temp = 1231423;
// Do conversation...
// After conversation char array should look like this
// 1 2 3 1 4 2 3 _ _ _
// without simbol
View 2 Replies
View Related
Feb 27, 2013
I am currently working on an Account login system and when I run the program I receive this error message:
error LNK2019: unresolved external symbol
If you want to see the full code of the source file just ask
const int NUM_OF_ACCOUNTS = 1;
Account *account = new Account[NUM_OF_ACCOUNTS];
int AccountSearch(int number, string password);
foundAccount = AccountSearch(aNumSearch, passSearch);
int AccountSearch(int n, string p); {
int x = 0;
[code]....
View 7 Replies
View Related
Apr 13, 2014
I am currently having problems with defining an array of objects. I am getting 'redeclared as different kind of symbol' error message. The code is below
//MissionPlan.cpp
#include <iostream>
#include <string>
#include "MissionPlan.h"
#include "PointTwoD.h"
using namespace std;
//MissionPlan class implementation
[code]....
View 7 Replies
View Related
Jul 1, 2014
So even though I have so many issues with linking libraries, I apparently became the go-to person for a fellow college friend of mine for a sql library. He's using the mysql connector/c++ and his team has had quite a few issues getting it set up. I've solved two out of three issues:
1st issue I solved was that they didn't know how to build boost, I just linked it and they were good to go.
2nd issue I solved was that they were missing libmysql.lib, I just installed the mysql server onto their computer and linked that up. 3rd issue is where I am now stumped at, as they get a compile error: LNK2001 unresolved external symbol: _get_driver_instance().
View 6 Replies
View Related
Apr 4, 2014
// polynomial header file
#ifndef POLY_H
#define POLY_H
#include<iostream>
using namespace std;
class Polynomial {
friend ostream &operator<<( ostream &out, const Polynomial &rhside);
friend istream &operator>>( istream &in, Polynomial &rhside);
[code]....
View 3 Replies
View Related
May 2, 2013
I'm trying to use the find string to erase a ' ' from the end of a word. I tried something along the lines of:
if (SecondSide.find('
')!= string::npos)
SecondSide.erase(SecondSide.find('
'));
but it had no effect.
View 7 Replies
View Related
Jan 21, 2013
how to create a symbol table for an assembly language and high level language program in c++
View 1 Replies
View Related
Jan 10, 2014
I am working on my project of gesture recognition using c++ and open cv and i am also designing GUI simultaneously. I am using system namespace for GUI part and cv namespace for gestures.
After compiling i am getting error as Ambiguous symbol String is used.
This the link for msdn error support : [URL] .....
View 5 Replies
View Related
Jan 17, 2013
When I try to compile a program from a C book I am following I am getting these errors, I have looked for ways to resolve it but I wasn't able to.
Errors:
Error3error LNK2001: unresolved external symbol _druk_instructiesC:UsersIvoDocumentsVisual Studio 2012ProjectsConsoleApplication2ConsoleApplication2Handspel.objConsoleApplication2
Error4error LNK2001: unresolved external symbol _speler_keuzeC:UsersIvoDocumentsVisual Studio 2012ProjectsConsoleApplication2ConsoleApplication2Handspel.objConsoleApplication2
Error5error LNK2001: unresolved external symbol _machine_keuzeC:UsersIvoDocumentsVisual Studio
[Code] .....
The .h file:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string>
#ifdef __cplusplus
extern "C"
[Code] .....
View 2 Replies
View Related